aboutsummaryrefslogtreecommitdiff
path: root/include/hw/acpi
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2016-06-10 04:15:42 -0500
committerMichael S. Tsirkin <mst@redhat.com>2016-06-24 05:13:57 +0300
commit86e91dd713414dda40bb16aabe2f1fc9ba95a3a7 (patch)
treea4d03ce0a965701c3e4b6d65531127fe906502df /include/hw/acpi
parent35658f6e0c3dacfdb22198ee3917c0c28914d81d (diff)
downloadqemu-86e91dd713414dda40bb16aabe2f1fc9ba95a3a7.zip
qemu-86e91dd713414dda40bb16aabe2f1fc9ba95a3a7.tar.gz
qemu-86e91dd713414dda40bb16aabe2f1fc9ba95a3a7.tar.bz2
acpi: Add IPMI table entries
Use the ACPI table construction tools to create an ACPI entry for IPMI. This adds a function called build_acpi_ipmi_devices to add an DSDT entry for IPMI if IPMI is compiled in and an IPMI device exists. It also adds a dummy function if IPMI is not compiled in. This conforms to section "C3-2 Locating IPMI System Interfaces in ACPI Name Space" in the IPMI 2.0 specification. Signed-off-by: Corey Minyard <cminyard@mvista.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r--include/hw/acpi/ipmi.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/hw/acpi/ipmi.h b/include/hw/acpi/ipmi.h
new file mode 100644
index 0000000..ab2bb29
--- /dev/null
+++ b/include/hw/acpi/ipmi.h
@@ -0,0 +1,22 @@
+/*
+ * QEMU IPMI ACPI handling
+ *
+ * Copyright (c) 2015,2016 Corey Minyard <cminyard@mvista.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+#ifndef HW_ACPI_IPMI_H
+#define HW_ACPI_IPMI_H
+
+#include "qemu/osdep.h"
+#include "hw/acpi/aml-build.h"
+
+/*
+ * Add ACPI IPMI entries for all registered IPMI devices whose parent
+ * bus matches the given bus. The resource is the ACPI resource that
+ * contains the IPMI device, this is required for the I2C CRS.
+ */
+void build_acpi_ipmi_devices(Aml *table, BusState *bus);
+
+#endif /* HW_ACPI_IPMI_H */