/root/src/xen/xen/include/acpi/apei.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * apei.h - ACPI Platform Error Interface |
3 | | */ |
4 | | |
5 | | #ifndef ACPI_APEI_H |
6 | | #define ACPI_APEI_H |
7 | | |
8 | | #include <xen/acpi.h> |
9 | | #include <xen/cper.h> |
10 | | |
11 | 0 | #define APEI_ERST_INVALID_RECORD_ID 0xffffffffffffffffULL |
12 | | |
13 | 2 | #define FIX_APEI_RANGE_MAX 64 |
14 | | |
15 | | typedef int (*apei_hest_func_t)(const struct acpi_hest_header *, void *); |
16 | | int apei_hest_parse(apei_hest_func_t, void *); |
17 | | |
18 | | int erst_write(const struct cper_record_header *record); |
19 | | ssize_t erst_get_record_count(void); |
20 | | int erst_get_next_record_id(u64 *record_id); |
21 | | ssize_t erst_read(u64 record_id, struct cper_record_header *record, |
22 | | size_t buflen); |
23 | | ssize_t erst_read_next(struct cper_record_header *record, size_t buflen); |
24 | | int erst_clear(u64 record_id); |
25 | | |
26 | | void __iomem *apei_pre_map(paddr_t paddr, unsigned long size); |
27 | | |
28 | | int apei_pre_map_gar(struct acpi_generic_address *reg); |
29 | | int apei_post_unmap_gar(struct acpi_generic_address *reg); |
30 | | |
31 | | int apei_read(u64 *val, struct acpi_generic_address *reg); |
32 | | int apei_write(u64 val, struct acpi_generic_address *reg); |
33 | | |
34 | | #endif |