1 #include "qemu/osdep.h"
2 #include "hw/acpi/acpi_aml_interface.h"
3 #include "hw/pci/pci.h"
6 void build_vga_aml(AcpiDevAmlIf
*adev
, Aml
*scope
)
11 if (object_dynamic_cast(OBJECT(adev
), "qxl-vga")) {
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
);