Subject: Re: ISA direct config of ACPI devices
To: Jared D. McNeill <firstname.lastname@example.org>
From: Andrew Doran <email@example.com>
Date: 11/21/2007 20:53:35
On Wed, Nov 21, 2007 at 03:41:49PM -0500, Jared D. McNeill wrote:
> Heyas folks --
> I would like to attach ISA devices enumerated by ACPI to 'isa0' rather
> than 'acpi0'. The following patch accomplishes this for me:
> With this patch, on a standard GENERIC kernel, I get:
> $ dmesg | grep 'at isa'
> attimer0 at isa0 (PNP0100) port 0x40-0x43 irq 0: AT Timer
> pcppi0 at isa0 (PNP0800) port 0x61
> PNP0303 at isa0 port 0x60,0x64 irq 1 not configured
> IBM0057 (PNP0F13) at isa0 irq 12 not configured
> pckbc0 at isa0 port 0x60-0x64
> Note that I haven't converted pckbc_isa to support direct configuration
> yet, as it needs a bit more work than regular isa drivers. In any case,
> the kernel was smart enough to fall back and use an indirect config
> attachment here. We will be able to remove many of the driver glue in
> dev/acpi/ as a result.
> Also, this will have the side effect of numbering ACPI enumerated com
> devices properly, which many people find annoying.
Nice! One comment:
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ dev/isa/isadevs 21 Nov 2007 20:29:28 -0000
Most of these entries are already in isapnpdevs. Is there a problem with
sharing the tables?