2009-07-09 06:31:43 +08:00
|
|
|
#include <linux/sysdev.h>
|
2009-05-28 03:56:54 +08:00
|
|
|
#include <asm/mce.h>
|
|
|
|
|
|
|
|
enum severity_level {
|
|
|
|
MCE_NO_SEVERITY,
|
2009-05-28 03:56:57 +08:00
|
|
|
MCE_KEEP_SEVERITY,
|
2009-05-28 03:56:54 +08:00
|
|
|
MCE_SOME_SEVERITY,
|
2009-05-28 03:56:57 +08:00
|
|
|
MCE_AO_SEVERITY,
|
2009-05-28 03:56:54 +08:00
|
|
|
MCE_UC_SEVERITY,
|
2009-05-28 03:56:57 +08:00
|
|
|
MCE_AR_SEVERITY,
|
2009-05-28 03:56:54 +08:00
|
|
|
MCE_PANIC_SEVERITY,
|
|
|
|
};
|
|
|
|
|
2009-07-09 06:31:43 +08:00
|
|
|
#define ATTR_LEN 16
|
|
|
|
|
|
|
|
/* One object for each MCE bank, shared by all CPUs */
|
|
|
|
struct mce_bank {
|
|
|
|
u64 ctl; /* subevents to enable */
|
|
|
|
unsigned char init; /* initialise bank? */
|
|
|
|
struct sysdev_attribute attr; /* sysdev attribute */
|
|
|
|
char attrname[ATTR_LEN]; /* attribute name */
|
|
|
|
};
|
|
|
|
|
2009-05-28 03:56:54 +08:00
|
|
|
int mce_severity(struct mce *a, int tolerant, char **msg);
|
2009-05-28 03:56:57 +08:00
|
|
|
|
|
|
|
extern int mce_ser;
|
2009-07-09 06:31:43 +08:00
|
|
|
|
|
|
|
extern struct mce_bank *mce_banks;
|
|
|
|
|