diff options
author | Igor Mammedov | 2021-09-24 14:27:41 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2021-10-05 23:30:57 +0200 |
commit | 43dde1705c610710389491e5989ae6f5b5cf6fb9 (patch) | |
tree | 8dae5d2d3e79e19085f850dd8db4190d82c840ae /include/hw/acpi/acpi-defs.h | |
parent | acpi: x86: build_dsdt: use acpi_table_begin()/acpi_table_end() instead of bui... (diff) | |
download | qemu-43dde1705c610710389491e5989ae6f5b5cf6fb9.tar.gz qemu-43dde1705c610710389491e5989ae6f5b5cf6fb9.tar.xz qemu-43dde1705c610710389491e5989ae6f5b5cf6fb9.zip |
acpi: build_hpet: use acpi_table_begin()/acpi_table_end() instead of build_header()
it replaces error-prone pointer arithmetic for build_header() API,
with 2 calls to start and finish table creation,
which hides offsets magic from API user.
while at it convert build_hpet() to endian agnostic
build_append_FOO() API
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20210924122802.1455362-15-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi/acpi-defs.h')
-rw-r--r-- | include/hw/acpi/acpi-defs.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/hw/acpi/acpi-defs.h b/include/hw/acpi/acpi-defs.h index f6d2ca172b..4d8f8b34b0 100644 --- a/include/hw/acpi/acpi-defs.h +++ b/include/hw/acpi/acpi-defs.h @@ -359,19 +359,6 @@ struct AcpiGenericTimerTable { typedef struct AcpiGenericTimerTable AcpiGenericTimerTable; /* - * HPET Description Table - */ -struct Acpi20Hpet { - ACPI_TABLE_HEADER_DEF /* ACPI common table header */ - uint32_t timer_block_id; - struct AcpiGenericAddress addr; - uint8_t hpet_number; - uint16_t min_tick; - uint8_t page_protect; -} QEMU_PACKED; -typedef struct Acpi20Hpet Acpi20Hpet; - -/* * SRAT (NUMA topology description) table */ |