pcihp: acpi: ignore coldplugged bridges when composing hotpluggable slots
[qemu.git] / hw / display / acpi-vga.c
blobf0e9ef1fcf8ee6a46320fe7bae0b60a3978bb593
1 #include "qemu/osdep.h"
2 #include "hw/acpi/acpi_aml_interface.h"
3 #include "hw/pci/pci.h"
4 #include "vga_int.h"
6 void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope)
8 int s3d = 0;
9 Aml *method;
11 if (object_dynamic_cast(OBJECT(adev), "qxl-vga")) {
12 s3d = 3;
15 method = aml_method("_S1D", 0, AML_NOTSERIALIZED);
16 aml_append(method, aml_return(aml_int(0)));
17 aml_append(scope, method);
19 method = aml_method("_S2D", 0, AML_NOTSERIALIZED);
20 aml_append(method, aml_return(aml_int(0)));
21 aml_append(scope, method);
23 method = aml_method("_S3D", 0, AML_NOTSERIALIZED);
24 aml_append(method, aml_return(aml_int(s3d)));
25 aml_append(scope, method);