]>
Commit | Line | Data |
---|---|---|
cfead313 IM |
1 | #include "qemu/osdep.h" |
2 | #include "hw/acpi/acpi_aml_interface.h" | |
3 | #include "hw/pci/pci.h" | |
4 | #include "vga_int.h" | |
5 | ||
6 | void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope) | |
7 | { | |
8 | int s3d = 0; | |
9 | Aml *method; | |
10 | ||
11 | if (object_dynamic_cast(OBJECT(adev), "qxl-vga")) { | |
12 | s3d = 3; | |
13 | } | |
14 | ||
15 | method = aml_method("_S1D", 0, AML_NOTSERIALIZED); | |
16 | aml_append(method, aml_return(aml_int(0))); | |
17 | aml_append(scope, method); | |
18 | ||
19 | method = aml_method("_S2D", 0, AML_NOTSERIALIZED); | |
20 | aml_append(method, aml_return(aml_int(0))); | |
21 | aml_append(scope, method); | |
22 | ||
23 | method = aml_method("_S3D", 0, AML_NOTSERIALIZED); | |
24 | aml_append(method, aml_return(aml_int(s3d))); | |
25 | aml_append(scope, method); | |
26 | } |