[SeaBIOS] [PATCH 18/20] acpi: move isa devices to separate file

Gerd Hoffmann kraxel at redhat.com
Wed Nov 28 07:59:49 CET 2012


  Hi,

> On second thought - maybe a better solution is to just inject the
> field definitons into \_SB.PCI0.ISA and \_SB.PCI0.LPC.
> 
> The OperationRegion has to be in the proper device (eg, PX13), but the
> Field() can go anywhere.  So, if the PIIX dsdt code had something
> like:
> 
>        Scope (\_SB.PCI0.ISA) {
>            Field (\_SB.PCI0.PX13.P13C, AnyAcc, NoLock, Preserve)
>            {
>                 Offset(0x5f),
>                , 7,
>                LPEN, 1,         // LPT
>                 Offset(0x67),
>                , 3,
>                CAEN, 1,         // COM1
>                , 3,
>                CBEN, 1,         // COM2
>            }
>        }
>
> then the isa devices could just access LPEN/CAEN/etc without requiring
> an explicit path.

Nice, thanks for the idea.

/me tried to find something like this without success before going the
macro route.

cheers,
  Gerd



More information about the SeaBIOS mailing list