diff --git a/sys/amd64/isa/atpic.c b/sys/amd64/isa/atpic.c index 0eef53640629..3dfb125587d9 100644 --- a/sys/amd64/isa/atpic.c +++ b/sys/amd64/isa/atpic.c @@ -53,7 +53,11 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef PC98 +#include +#else #include +#endif #include #define MASTER 0 @@ -396,7 +400,9 @@ static driver_t atpic_driver = { static devclass_t atpic_devclass; DRIVER_MODULE(atpic, isa, atpic_driver, atpic_devclass, 0, 0); +#ifndef PC98 DRIVER_MODULE(atpic, acpi, atpic_driver, atpic_devclass, 0, 0); +#endif /* * Return a bitmap of the current interrupt requests. This is 8259-specific diff --git a/sys/i386/isa/atpic.c b/sys/i386/isa/atpic.c index 0eef53640629..3dfb125587d9 100644 --- a/sys/i386/isa/atpic.c +++ b/sys/i386/isa/atpic.c @@ -53,7 +53,11 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef PC98 +#include +#else #include +#endif #include #define MASTER 0 @@ -396,7 +400,9 @@ static driver_t atpic_driver = { static devclass_t atpic_devclass; DRIVER_MODULE(atpic, isa, atpic_driver, atpic_devclass, 0, 0); +#ifndef PC98 DRIVER_MODULE(atpic, acpi, atpic_driver, atpic_devclass, 0, 0); +#endif /* * Return a bitmap of the current interrupt requests. This is 8259-specific