| #include "hw/acpi/acpi_aml_interface.h" |
| void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope) |
| if (object_dynamic_cast(OBJECT(adev), "qxl-vga")) { |
| method = aml_method("_S1D", 0, AML_NOTSERIALIZED); |
| aml_append(method, aml_return(aml_int(0))); |
| aml_append(scope, method); |
| method = aml_method("_S2D", 0, AML_NOTSERIALIZED); |
| aml_append(method, aml_return(aml_int(0))); |
| aml_append(scope, method); |
| method = aml_method("_S3D", 0, AML_NOTSERIALIZED); |
| aml_append(method, aml_return(aml_int(s3d))); |
| aml_append(scope, method); |