This moves the table header definition into pc.h to allow other code to build ACPI tables. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@xxxxxxxxxxx> --- hw/acpi.c | 13 ------------- hw/pc.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 8eb53da..3794f70 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -826,19 +826,6 @@ static int piix4_device_hotplug(PCIDevice *dev, int state) return 0; } -struct acpi_table_header -{ - char signature [4]; /* ACPI signature (4 ASCII characters) */ - uint32_t length; /* Length of table, in bytes, including header */ - uint8_t revision; /* ACPI Specification minor version # */ - uint8_t checksum; /* To make sum of entire table == 0 */ - char oem_id [6]; /* OEM identification */ - char oem_table_id [8]; /* OEM table identification */ - uint32_t oem_revision; /* OEM revision number */ - char asl_compiler_id [4]; /* ASL compiler vendor ID */ - uint32_t asl_compiler_revision; /* ASL compiler revision number */ -} __attribute__((packed)); - char *acpi_tables; size_t acpi_tables_len, acpi_tables_prev_len; diff --git a/hw/pc.h b/hw/pc.h index 0cef140..92954db 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -103,6 +103,19 @@ int ioport_get_a20(void); CPUState *pc_new_cpu(const char *cpu_model); /* acpi.c */ +struct acpi_table_header +{ + char signature [4]; /* ACPI signature (4 ASCII characters) */ + uint32_t length; /* Length of table, in bytes, including header */ + uint8_t revision; /* ACPI Specification minor version # */ + uint8_t checksum; /* To make sum of entire table == 0 */ + char oem_id [6]; /* OEM identification */ + char oem_table_id [8]; /* OEM table identification */ + uint32_t oem_revision; /* OEM revision number */ + char asl_compiler_id [4]; /* ASL compiler vendor ID */ + uint32_t asl_compiler_revision; /* ASL compiler revision number */ +} __attribute__((packed)); + extern int acpi_enabled; extern char *acpi_tables; extern size_t acpi_tables_len; -- 1.6.4.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html