[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 66/74] pc: acpi: q35: move _PRT() into SSDT
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 66/74] pc: acpi: q35: move _PRT() into SSDT |
Date: |
Thu, 10 Dec 2015 00:42:00 +0100 |
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/i386/acpi-build.c | 21 +++++++++++++++++++++
hw/i386/q35-acpi-dsdt.dsl | 12 ------------
2 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 876605d..744f047 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1553,7 +1553,28 @@ static void build_piix4_pci0_int(Aml *table)
static void build_q35_pci0_int(Aml *table)
{
Aml *field;
+ Aml *method;
Aml *sb_scope = aml_scope("_SB");
+ Aml *pci0_scope = aml_scope("PCI0");
+
+ method = aml_method("_PRT", 0, AML_NOTSERIALIZED);
+ {
+ Aml *if_ctx;
+ Aml *else_ctx;
+
+ /* PCI IRQ routing table, example from ACPI 2.0a specification,
+ section 6.2.8.1 */
+ /* Note: we provide the same info as the PCI routing
+ table of the Bochs BIOS */
+ if_ctx = aml_if(aml_equal(aml_name("PICF"), aml_int(0)));
+ aml_append(if_ctx, aml_return(aml_name("PRTP")));
+ aml_append(method, if_ctx);
+ else_ctx = aml_else();
+ aml_append(else_ctx, aml_return(aml_name("PRTA")));
+ aml_append(method, else_ctx);
+ }
+ aml_append(pci0_scope, method);
+ aml_append(sb_scope, pci0_scope);
field = aml_field("PCI0.ISA.PIRQ", AML_BYTE_ACC, AML_NOLOCK, AML_PRESERVE);
aml_append(field, aml_named_field("PRQA", 8));
diff --git a/hw/i386/q35-acpi-dsdt.dsl b/hw/i386/q35-acpi-dsdt.dsl
index b01d4de..f265583 100644
--- a/hw/i386/q35-acpi-dsdt.dsl
+++ b/hw/i386/q35-acpi-dsdt.dsl
@@ -238,18 +238,6 @@ DefinitionBlock (
prt_slot_gsiA(0x001f)
})
-
- Method(_PRT, 0, NotSerialized) {
- /* PCI IRQ routing table, example from ACPI 2.0a specification,
- section 6.2.8.1 */
- /* Note: we provide the same info as the PCI routing
- table of the Bochs BIOS */
- If (LEqual(\PICF, Zero)) {
- Return (PRTP)
- } Else {
- Return (PRTA)
- }
- }
}
External(LNKA, DeviceObj)
--
1.8.3.1
- Re: [Qemu-devel] [PATCH 45/74] pc: acpi: move HPET from DSDT to SSDT, (continued)
[Qemu-devel] [PATCH 51/74] pc: acpi: move LPT device from DSDT to SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 60/74] pc: acpi: piix4: acpi move PCI0 device to SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 70/74] pc: acpi: q35: move PCI0._OSC() method into SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 71/74] pc: acpi: q35: move PCI0 device definition into SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 72/74] pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 63/74] pc: acpi: q35: move IQCR() into SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 47/74] pc: acpi: move RTC device from DSDT to SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 44/74] pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 66/74] pc: acpi: q35: move _PRT() into SSDT,
Igor Mammedov <=
[Qemu-devel] [PATCH 67/74] pc: acpi: q35: move PRTA routing table into SSDT, Igor Mammedov, 2015/12/09
[Qemu-devel] [PATCH 74/74] pc: acpi: remove unused ASL templates and related blobs/utils, Igor Mammedov, 2015/12/09
Re: [Qemu-devel] [PATCH 00/74] pc: acpi: convert DSDT to AML API and drop ASL templates support, Marcel Apfelbaum, 2015/12/10
Re: [Qemu-devel] [PATCH 00/74] pc: acpi: convert DSDT to AML API and drop ASL templates support, Igor Mammedov, 2015/12/10
Re: [Qemu-devel] [PATCH 00/74] pc: acpi: convert DSDT to AML API and drop ASL templates support, Michael S. Tsirkin, 2015/12/19