1fb1c8f89SEric DeVolder /* 2fb1c8f89SEric DeVolder * ACPI Error Record Serialization Table, ERST, Implementation 3fb1c8f89SEric DeVolder * 4fb1c8f89SEric DeVolder * ACPI ERST introduced in ACPI 4.0, June 16, 2009. 5fb1c8f89SEric DeVolder * ACPI Platform Error Interfaces : Error Serialization 6fb1c8f89SEric DeVolder * 7fb1c8f89SEric DeVolder * Copyright (c) 2021 Oracle and/or its affiliates. 8fb1c8f89SEric DeVolder * 9fb1c8f89SEric DeVolder * SPDX-License-Identifier: GPL-2.0-or-later 10fb1c8f89SEric DeVolder */ 11fb1c8f89SEric DeVolder #ifndef HW_ACPI_ERST_H 12fb1c8f89SEric DeVolder #define HW_ACPI_ERST_H 13fb1c8f89SEric DeVolder 14fb1c8f89SEric DeVolder void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev, 15fb1c8f89SEric DeVolder const char *oem_id, const char *oem_table_id); 16fb1c8f89SEric DeVolder 17fb1c8f89SEric DeVolder #define TYPE_ACPI_ERST "acpi-erst" 18fb1c8f89SEric DeVolder 19*8486f12fSEric DeVolder /* returns NULL unless there is exactly one device */ 20*8486f12fSEric DeVolder static inline Object *find_erst_dev(void) 21*8486f12fSEric DeVolder { 22*8486f12fSEric DeVolder return object_resolve_path_type("", TYPE_ACPI_ERST, NULL); 23*8486f12fSEric DeVolder } 24fb1c8f89SEric DeVolder #endif 25