diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-09-21 19:58:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-10-12 21:06:40 -0400 |
commit | e9fe15b86c6e98a91b30511d005ecdcc8a3e578d (patch) | |
tree | c3b1f6fabc174e6ff1a3adc78332b9f24b2e490c /src/acpi-dsdt.dsl | |
parent | 1fa4adc2085c49341c506aa509eef57f47f13a30 (diff) | |
download | seabios-hppa-e9fe15b86c6e98a91b30511d005ecdcc8a3e578d.zip seabios-hppa-e9fe15b86c6e98a91b30511d005ecdcc8a3e578d.tar.gz seabios-hppa-e9fe15b86c6e98a91b30511d005ecdcc8a3e578d.tar.bz2 |
Delineate ACSP DSL code into sections.
Add comments around major sections of the DSL file. Also, add scope
declarations where needed so that each section only contains one
scope.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/acpi-dsdt.dsl')
-rw-r--r-- | src/acpi-dsdt.dsl | 80 |
1 files changed, 73 insertions, 7 deletions
diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 08412e2..f021b53 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -25,6 +25,12 @@ DefinitionBlock ( 0x1 // OEM Revision ) { + + +/**************************************************************** + * Debugging + ****************************************************************/ + Scope (\) { /* Debug Output */ @@ -50,7 +56,11 @@ DefinitionBlock ( } } - /* PCI Bus definition */ + +/**************************************************************** + * PCI Bus definition + ****************************************************************/ + Scope(\_SB) { Device(PCI0) { Name (_HID, EisaId ("PNP0A03")) @@ -215,7 +225,14 @@ DefinitionBlock ( ,, , AddressRangeMemory, TypeStatic) }) } + } + + +/**************************************************************** + * HPET + ****************************************************************/ + Scope(\_SB) { Device(HPET) { Name(_HID, EISAID("PNP0103")) Name(_UID, 0) @@ -236,6 +253,11 @@ DefinitionBlock ( } } + +/**************************************************************** + * VGA + ****************************************************************/ + Scope(\_SB.PCI0) { Device (VGA) { Name (_ADR, 0x00020000) @@ -261,16 +283,29 @@ DefinitionBlock ( } Method(_RMV) { Return (0x00) } } + } + - /* PIIX3 ISA bridge */ +/**************************************************************** + * PIIX3 ISA bridge + ****************************************************************/ + + Scope(\_SB.PCI0) { Device (ISA) { Name (_ADR, 0x00010000) Method(_RMV) { Return (0x00) } - /* PIIX PCI to ISA irq remapping */ OperationRegion (P40C, PCI_Config, 0x60, 0x04) + } + } + +/**************************************************************** + * SuperIO devices (kbd, mouse, etc.) + ****************************************************************/ + + Scope(\_SB.PCI0.ISA) { /* Real-time clock */ Device (RTC) { @@ -439,9 +474,14 @@ DefinitionBlock ( Return (BUF0) } } - } + } + + +/**************************************************************** + * PIIX4 PM + ****************************************************************/ - /* PIIX4 PM */ + Scope(\_SB.PCI0) { Device (PX13) { Name (_ADR, 0x00010003) @@ -459,6 +499,14 @@ DefinitionBlock ( DRSJ, 32 } } + } + + +/**************************************************************** + * PCI hotplug + ****************************************************************/ + + Scope(\_SB.PCI0) { #define gen_pci_device(name, nr) \ Device(SL##name) { \ @@ -504,7 +552,11 @@ DefinitionBlock ( gen_pci_device(31, 0x001f) } - /* PCI IRQs */ + +/**************************************************************** + * PCI IRQs + ****************************************************************/ + Scope(\_SB) { Field (\_SB.PCI0.ISA.P40C, ByteAcc, NoLock, Preserve) { @@ -736,6 +788,11 @@ DefinitionBlock ( } } + +/**************************************************************** + * Suspend + ****************************************************************/ + /* * S3 (suspend-to-ram), S4 (suspend-to-disk) and S5 (power-off) type codes: * must match piix4 emulation. @@ -762,7 +819,11 @@ DefinitionBlock ( Zero /* reserved */ }) - /* CPU hotplug */ + +/**************************************************************** + * CPU hotplug + ****************************************************************/ + Scope(\_SB) { /* Objects filled in by run-time generated SSDT */ External(NTFY, MethodObj) @@ -834,6 +895,11 @@ DefinitionBlock ( } } + +/**************************************************************** + * General purpose events + ****************************************************************/ + Scope (\_GPE) { Name(_HID, "ACPI0006") |