1 #include <linux/device.h>
16 /* One object for each MCE bank, shared by all CPUs */
18 u64 ctl
; /* subevents to enable */
19 unsigned char init
; /* initialise bank? */
20 struct device_attribute attr
; /* device attribute */
21 char attrname
[ATTR_LEN
]; /* attribute name */
24 int mce_severity(struct mce
*a
, int tolerant
, char **msg
);
25 struct dentry
*mce_get_debugfs_dir(void);
29 extern struct mce_bank
*mce_banks
;
31 #ifdef CONFIG_ACPI_APEI
32 int apei_write_mce(struct mce
*m
);
33 ssize_t
apei_read_mce(struct mce
*m
, u64
*record_id
);
34 int apei_check_mce(void);
35 int apei_clear_mce(u64 record_id
);
37 static inline int apei_write_mce(struct mce
*m
)
41 static inline ssize_t
apei_read_mce(struct mce
*m
, u64
*record_id
)
45 static inline int apei_check_mce(void)
49 static inline int apei_clear_mce(u64 record_id
)