mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 15:03:33 +08:00
cfead31326
NB: We do not expect any functional change in any ACPI tables with this change. It's only a refactoring. NB2: Some targets (or1k) do not support acpi and CONFIG_ACPI is off for them. However, modules are reused between all architectures so CONFIG_ACPI is on. For those architectures, dummy stub function definitions help to resolve symbols. This change uses more of these and so it adds a couple of dummy stub definitions so that symbols for those can be resolved. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20221017102146.2254096-2-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Ani Sinha <ani@anisinha.ca> CC: Bernhard Beschow <shentey@gmail.com> Signed-off-by: Ani Sinha <ani@anisinha.ca> Message-Id: <20221107152744.868434-1-ani@anisinha.ca>
27 lines
686 B
C
27 lines
686 B
C
#include "qemu/osdep.h"
|
|
#include "hw/acpi/acpi_aml_interface.h"
|
|
#include "hw/pci/pci.h"
|
|
#include "vga_int.h"
|
|
|
|
void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope)
|
|
{
|
|
int s3d = 0;
|
|
Aml *method;
|
|
|
|
if (object_dynamic_cast(OBJECT(adev), "qxl-vga")) {
|
|
s3d = 3;
|
|
}
|
|
|
|
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);
|
|
}
|