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.
This commit is contained in:
Peter Wemm 2007-11-30 21:45:07 +00:00
parent 585484b918
commit 3e3d9737c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174116
3 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ COM_ESP opt_sio.h
COM_MULTIPORT opt_sio.h
CONSPEED opt_sio.h
GDBSPEED opt_sio.h
COM_NO_ACPI opt_sio.h
VGA_ALT_SEQACCESS opt_vga.h
VGA_DEBUG opt_vga.h

View File

@ -80,6 +80,7 @@ COM_ESP opt_sio.h
COM_MULTIPORT opt_sio.h
CONSPEED opt_sio.h
GDBSPEED opt_sio.h
COM_NO_ACPI opt_sio.h
VGA_ALT_SEQACCESS opt_vga.h
VGA_DEBUG opt_vga.h

View File

@ -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