summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2007-11-30 21:45:07 +0000
committerpeter <peter@FreeBSD.org>2007-11-30 21:45:07 +0000
commitb629181a3df55f7f94227715d44156a27585142b (patch)
tree5fcdff03ccb79a676e6081c02998e85920aea5ba /sys/dev/sio
parent66c7617de3c3025108ee7548eb6660d637fbbc6a (diff)
downloadFreeBSD-src-b629181a3df55f7f94227715d44156a27585142b.zip
FreeBSD-src-b629181a3df55f7f94227715d44156a27585142b.tar.gz
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.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio_isa.c4
1 files changed, 4 insertions, 0 deletions
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 <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_sio.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
@@ -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
OpenPOWER on IntegriCloud