aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/acpi-common.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-05-20 15:19:47 +0200
committerMichael S. Tsirkin <mst@redhat.com>2020-06-12 10:17:06 -0400
commiteb66ffabc00a7b062b2c73b9178eb2679328813b (patch)
tree00934a1297352a1b9d5d45acf1c4c6afa0820575 /hw/i386/acpi-common.h
parent1dc32f9aeb127d995efd52a29f57460c011780da (diff)
acpi: create acpi-common.c and move madt code
We'll need madt support for microvm. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20200520132003.9492-7-kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/acpi-common.h')
-rw-r--r--hw/i386/acpi-common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/i386/acpi-common.h b/hw/i386/acpi-common.h
new file mode 100644
index 0000000000..c30e461f18
--- /dev/null
+++ b/hw/i386/acpi-common.h
@@ -0,0 +1,14 @@
+#ifndef HW_I386_ACPI_COMMON_H
+#define HW_I386_ACPI_COMMON_H
+#include "include/hw/acpi/acpi_dev_interface.h"
+
+#include "include/hw/acpi/bios-linker-loader.h"
+#include "include/hw/i386/x86.h"
+
+/* Default IOAPIC ID */
+#define ACPI_BUILD_IOAPIC_ID 0x0
+
+void acpi_build_madt(GArray *table_data, BIOSLinker *linker,
+ X86MachineState *x86ms, AcpiDeviceIf *adev);
+
+#endif