acpi_interface.c should only register QOM interfaces. Move the qbus_build_aml() function to aml-build.c with the other AML build-related helpers. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20260225035739.42848-4-philmd@linaro.org>
25 lines
675 B
C
25 lines
675 B
C
#include "qemu/osdep.h"
|
|
#include "hw/acpi/acpi_dev_interface.h"
|
|
#include "hw/acpi/acpi_aml_interface.h"
|
|
#include "qemu/module.h"
|
|
|
|
static void register_types(void)
|
|
{
|
|
static const TypeInfo acpi_dev_if_info = {
|
|
.name = TYPE_ACPI_DEVICE_IF,
|
|
.parent = TYPE_INTERFACE,
|
|
.class_size = sizeof(AcpiDeviceIfClass),
|
|
};
|
|
static const TypeInfo acpi_dev_aml_if_info = {
|
|
.name = TYPE_ACPI_DEV_AML_IF,
|
|
.parent = TYPE_INTERFACE,
|
|
.class_size = sizeof(AcpiDevAmlIfClass),
|
|
};
|
|
|
|
|
|
type_register_static(&acpi_dev_if_info);
|
|
type_register_static(&acpi_dev_aml_if_info);
|
|
}
|
|
|
|
type_init(register_types)
|