diff options
author | julian <julian@FreeBSD.org> | 2000-11-12 10:46:38 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2000-11-12 10:46:38 +0000 |
commit | 3f9f11197b532359072084e17c48fa9301ac4669 (patch) | |
tree | 1f9f1c0408fe6f9ada54661e884635bb8030f53a /share/examples/drivers | |
parent | 0837a683d3c73e14365144dcf8a288ab3897a050 (diff) | |
download | FreeBSD-src-3f9f11197b532359072084e17c48fa9301ac4669.zip FreeBSD-src-3f9f11197b532359072084e17c48fa9301ac4669.tar.gz |
Share one devclass between ISA and PCI sections
This will ensure unit numbers will co-ordinate between them
Diffstat (limited to 'share/examples/drivers')
-rwxr-xr-x | share/examples/drivers/make_device_driver.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh index f2b668f..597e1a8 100755 --- a/share/examples/drivers/make_device_driver.sh +++ b/share/examples/drivers/make_device_driver.sh @@ -234,6 +234,8 @@ static struct cdevsw ${1}_cdevsw = { /* flags */ 0, /* bmaj */ -1 }; + +static devclass_t ${1}_devclass; /*****************************************\ * ISA Attachment structures and functions @@ -263,7 +265,6 @@ static driver_t ${1}_isa_driver = { sizeof (struct ${1}_softc) }; -static devclass_t ${1}_devclass; DRIVER_MODULE(${1}, isa, ${1}_isa_driver, ${1}_devclass, 0, 0); @@ -537,9 +538,8 @@ static driver_t ${1}_pci_driver = { sizeof(struct ${1}_softc), }; -static devclass_t ${1}_pci_devclass; -DRIVER_MODULE(${1}, pci, ${1}_pci_driver, ${1}_pci_devclass, 0, 0); +DRIVER_MODULE(${1}, pci, ${1}_pci_driver, ${1}_devclass, 0, 0); static struct _pcsid { |