From: Kevin O'Connor Date: Sun, 2 Dec 2012 06:40:07 +0000 (-0500) Subject: ACPI: Delineate q35 ACSP DSL code into sections. X-Git-Tag: rel-1.7.2~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f0cd3a9f4bc68a97ac54c21f9ae90b244dad0c1f;p=seabios.git ACPI: Delineate q35 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. This is the q35 equivalent of e9fe15b86c6e98a91b30511d005ecdcc8a3e578d. Signed-off-by: Kevin O'Connor --- diff --git a/src/q35-acpi-dsdt.dsl b/src/q35-acpi-dsdt.dsl index 18dfafa..2fd79cc 100644 --- a/src/q35-acpi-dsdt.dsl +++ b/src/q35-acpi-dsdt.dsl @@ -48,7 +48,11 @@ DefinitionBlock ( Store(Arg0, \PICF) } - /* PCI Bus definition */ + +/**************************************************************** + * PCI Bus definition + ****************************************************************/ + Scope(\_SB) { Device(PCI0) { Name(_HID, EisaId("PNP0A08")) @@ -116,6 +120,11 @@ DefinitionBlock ( #include "acpi-dsdt-pci-crs.dsl" #include "acpi-dsdt-hpet.dsl" + +/**************************************************************** + * VGA + ****************************************************************/ + Scope(\_SB.PCI0) { Device(VGA) { Name(_ADR, 0x00010000) @@ -129,7 +138,14 @@ DefinitionBlock ( Return (0x00) } } + } + +/**************************************************************** + * LPC ISA bridge + ****************************************************************/ + + Scope(\_SB.PCI0) { /* PCI D31:f0 LPC ISA bridge */ Device(ISA) { /* PCI D31:f0 */ @@ -173,7 +189,11 @@ DefinitionBlock ( #include "acpi-dsdt-isa.dsl" - /* PCI IRQs */ + +/**************************************************************** + * PCI IRQs + ****************************************************************/ + Scope(\_SB) { Scope(PCI0) { #define prt_slot_lnk(nr, lnk0, lnk1, lnk2, lnk3) \ @@ -380,6 +400,11 @@ DefinitionBlock ( #include "acpi-dsdt-cpu-hotplug.dsl" + +/**************************************************************** + * General purpose events + ****************************************************************/ + Scope(\_GPE) { Name(_HID, "ACPI0006")