5 * One struct ghes is created for each generic hardware error source.
6 * It provides the context for APEI hardware error timer/IRQ/SCI/NMI
9 * estatus: memory buffer for error status block, allocated during
12 #define GHES_TO_CLEAR 0x0001
13 #define GHES_EXITING 0x0002
16 struct acpi_hest_generic *generic;
17 struct acpi_hest_generic_status *estatus;
21 struct list_head list;
22 struct timer_list timer;
27 struct ghes_estatus_node {
28 struct llist_node llnode;
29 struct acpi_hest_generic *generic;
33 struct ghes_estatus_cache {
36 struct acpi_hest_generic *generic;
37 unsigned long long time_in;
43 GHES_SEV_CORRECTED = 0x1,
44 GHES_SEV_RECOVERABLE = 0x2,
48 /* From drivers/edac/ghes_edac.c */
50 #ifdef CONFIG_EDAC_GHES
51 void ghes_edac_report_mem_error(struct ghes *ghes, int sev,
52 struct cper_sec_mem_err *mem_err);
54 int ghes_edac_register(struct ghes *ghes, struct device *dev);
56 void ghes_edac_unregister(struct ghes *ghes);
59 static inline void ghes_edac_report_mem_error(struct ghes *ghes, int sev,
60 struct cper_sec_mem_err *mem_err)
64 static inline int ghes_edac_register(struct ghes *ghes, struct device *dev)
69 static inline void ghes_edac_unregister(struct ghes *ghes)