aboutsummaryrefslogtreecommitdiff
path: root/include/hw/acpi/erst.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/acpi/erst.h')
-rw-r--r--include/hw/acpi/erst.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/acpi/erst.h b/include/hw/acpi/erst.h
index 9d637179fe..b747fe7739 100644
--- a/include/hw/acpi/erst.h
+++ b/include/hw/acpi/erst.h
@@ -16,4 +16,9 @@ void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev,
#define TYPE_ACPI_ERST "acpi-erst"
+/* returns NULL unless there is exactly one device */
+static inline Object *find_erst_dev(void)
+{
+ return object_resolve_path_type("", TYPE_ACPI_ERST, NULL);
+}
#endif