]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - include/acpi/ghes.h
68f088a92398eb8303945732ca3a141796e02520
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
17 struct acpi_hest_generic
*generic
;
18 struct acpi_hest_generic_v2
*generic_v2
;
20 struct acpi_hest_generic_status
*estatus
;
24 struct list_head list
;
25 struct timer_list timer
;
30 struct ghes_estatus_node
{
31 struct llist_node llnode
;
32 struct acpi_hest_generic
*generic
;
36 struct ghes_estatus_cache
{
39 struct acpi_hest_generic
*generic
;
40 unsigned long long time_in
;
46 GHES_SEV_CORRECTED
= 0x1,
47 GHES_SEV_RECOVERABLE
= 0x2,
51 /* From drivers/edac/ghes_edac.c */
53 #ifdef CONFIG_EDAC_GHES
54 void ghes_edac_report_mem_error(struct ghes
*ghes
, int sev
,
55 struct cper_sec_mem_err
*mem_err
);
57 int ghes_edac_register(struct ghes
*ghes
, struct device
*dev
);
59 void ghes_edac_unregister(struct ghes
*ghes
);
62 static inline void ghes_edac_report_mem_error(struct ghes
*ghes
, int sev
,
63 struct cper_sec_mem_err
*mem_err
)
67 static inline int ghes_edac_register(struct ghes
*ghes
, struct device
*dev
)
72 static inline void ghes_edac_unregister(struct ghes
*ghes
)