From b629181a3df55f7f94227715d44156a27585142b Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 30 Nov 2007 21:45:07 +0000 Subject: Allow the sio acpi attachment to be disabled (ie: use hints only). This hack means you can get the units and flags to match up more easily with serial consoles on machines with acpi tables that cause the com ports to be probed in the wrong order (and hence get the wrong sio unit number). This replaces the common alternative hack of editing the code to comment out the acpi attachment. This could go away entirely when device wiring patches are committed. --- sys/dev/sio/sio_isa.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/sio/sio_isa.c') diff --git a/sys/dev/sio/sio_isa.c b/sys/dev/sio/sio_isa.c index afb6fac..da8b61c 100644 --- a/sys/dev/sio/sio_isa.c +++ b/sys/dev/sio/sio_isa.c @@ -25,6 +25,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_sio.h" + #include #include #include @@ -167,4 +169,6 @@ sio_isa_attach(dev) } DRIVER_MODULE(sio, isa, sio_isa_driver, sio_devclass, 0, 0); +#ifndef COM_NO_ACPI DRIVER_MODULE(sio, acpi, sio_isa_driver, sio_devclass, 0, 0); +#endif -- cgit v1.1