summaryrefslogtreecommitdiffstats
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorIgor Mammedov2015-12-28 18:02:56 +0100
committerMichael S. Tsirkin2016-01-09 22:20:19 +0100
commit9e4afc0995d1dc6cba55b103cc4e1f7e7516482a (patch)
tree9ec833b8483c7fb149d10a5995dcb25882c6ab19 /hw/i386/acpi-build.c
parentpc: acpi: q35: move PCI0 device definition into SSDT (diff)
downloadqemu-9e4afc0995d1dc6cba55b103cc4e1f7e7516482a.tar.gz
qemu-9e4afc0995d1dc6cba55b103cc4e1f7e7516482a.tar.xz
qemu-9e4afc0995d1dc6cba55b103cc4e1f7e7516482a.zip
pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r--hw/i386/acpi-build.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 609baf4cec..68e40d938f 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1983,6 +1983,16 @@ build_ssdt(GArray *table_data, GArray *linker,
build_piix4_pci0_int(ssdt);
} else {
sb_scope = aml_scope("_SB");
+ aml_append(sb_scope,
+ aml_operation_region("PCST", AML_SYSTEM_IO, 0xae00, 0x0c));
+ aml_append(sb_scope,
+ aml_operation_region("PCSB", AML_SYSTEM_IO, 0xae0c, 0x01));
+ field = aml_field("PCSB", AML_ANY_ACC, AML_NOLOCK, AML_WRITE_AS_ZEROS);
+ aml_append(field, aml_named_field("PCIB", 8));
+ aml_append(sb_scope, field);
+ aml_append(ssdt, sb_scope);
+
+ sb_scope = aml_scope("_SB");
dev = aml_device("PCI0");
aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A08")));
aml_append(dev, aml_name_decl("_CID", aml_eisaid("PNP0A03")));