mirror of https://github.com/xemu-project/xemu.git
pc: acpi: q35: move PCI0 device definition 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>
This commit is contained in:
parent
f97a88a85e
commit
afa06e1828
|
@ -1983,11 +1983,15 @@ build_ssdt(GArray *table_data, GArray *linker,
|
||||||
build_piix4_pci0_int(ssdt);
|
build_piix4_pci0_int(ssdt);
|
||||||
} else {
|
} else {
|
||||||
sb_scope = aml_scope("_SB");
|
sb_scope = aml_scope("_SB");
|
||||||
scope = aml_scope("PCI0");
|
dev = aml_device("PCI0");
|
||||||
aml_append(scope, aml_name_decl("SUPP", aml_int(0)));
|
aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A08")));
|
||||||
aml_append(scope, aml_name_decl("CTRL", aml_int(0)));
|
aml_append(dev, aml_name_decl("_CID", aml_eisaid("PNP0A03")));
|
||||||
aml_append(scope, build_q35_osc_method());
|
aml_append(dev, aml_name_decl("_ADR", aml_int(0)));
|
||||||
aml_append(sb_scope, scope);
|
aml_append(dev, aml_name_decl("_UID", aml_int(1)));
|
||||||
|
aml_append(dev, aml_name_decl("SUPP", aml_int(0)));
|
||||||
|
aml_append(dev, aml_name_decl("CTRL", aml_int(0)));
|
||||||
|
aml_append(dev, build_q35_osc_method());
|
||||||
|
aml_append(sb_scope, dev);
|
||||||
aml_append(ssdt, sb_scope);
|
aml_append(ssdt, sb_scope);
|
||||||
|
|
||||||
build_hpet_aml(ssdt);
|
build_hpet_aml(ssdt);
|
||||||
|
|
|
@ -42,17 +42,4 @@ DefinitionBlock (
|
||||||
PCIB, 8,
|
PCIB, 8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************
|
|
||||||
* PCI Bus definition
|
|
||||||
****************************************************************/
|
|
||||||
Scope(\_SB) {
|
|
||||||
Device(PCI0) {
|
|
||||||
Name(_HID, EisaId("PNP0A08"))
|
|
||||||
Name(_CID, EisaId("PNP0A03"))
|
|
||||||
Name(_ADR, 0x00)
|
|
||||||
Name(_UID, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue