diff options
author | imp <imp@FreeBSD.org> | 2004-12-24 23:03:17 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-12-24 23:03:17 +0000 |
commit | 74b159d49712980d6819e2b6f8b6a1543c2b6ff8 (patch) | |
tree | c53bb4f609438308be1fb33d12d130bb74f2429c /sys/amd64/isa/isa.c | |
parent | 5076ddfeb956d59e3a0a381938bfa73aafc9dde2 (diff) | |
download | FreeBSD-src-74b159d49712980d6819e2b6f8b6a1543c2b6ff8.zip FreeBSD-src-74b159d49712980d6819e2b6f8b6a1543c2b6ff8.tar.gz |
Get rid of #ifdef for legacy system. Move that into the MD code.
Export minimal symbols to allow this to happen.
Diffstat (limited to 'sys/amd64/isa/isa.c')
-rw-r--r-- | sys/amd64/isa/isa.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c index bf1ae4e..dc39a31 100644 --- a/sys/amd64/isa/isa.c +++ b/sys/amd64/isa/isa.c @@ -59,7 +59,9 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/bus.h> +#include <sys/kernel.h> #include <sys/malloc.h> +#include <sys/module.h> #include <machine/bus.h> #include <sys/rman.h> @@ -157,3 +159,8 @@ isa_teardown_intr(device_t bus, device_t child, struct resource *r, { return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie)); } + +/* + * On this platform, isa can also attach to the legacy bus. + */ +DRIVER_MODULE(isa, legacy, isa_driver, isa_devclass, 0, 0); |