Merge tag 'pull-request-2022-10-28' of https://gitlab.com/thuth/qemu into staging
[qemu/ar7.git] / include / hw / acpi / erst.h
blobb747fe77395f169c5d724c3911369cd38e3e6504
1 /*
2 * ACPI Error Record Serialization Table, ERST, Implementation
4 * ACPI ERST introduced in ACPI 4.0, June 16, 2009.
5 * ACPI Platform Error Interfaces : Error Serialization
7 * Copyright (c) 2021 Oracle and/or its affiliates.
9 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef HW_ACPI_ERST_H
12 #define HW_ACPI_ERST_H
14 void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev,
15 const char *oem_id, const char *oem_table_id);
17 #define TYPE_ACPI_ERST "acpi-erst"
19 /* returns NULL unless there is exactly one device */
20 static inline Object *find_erst_dev(void)
22 return object_resolve_path_type("", TYPE_ACPI_ERST, NULL);
24 #endif