mce-internal.h 657 B

123456789101112131415161718192021222324252627282930
  1. #include <linux/sysdev.h>
  2. #include <asm/mce.h>
  3. enum severity_level {
  4. MCE_NO_SEVERITY,
  5. MCE_KEEP_SEVERITY,
  6. MCE_SOME_SEVERITY,
  7. MCE_AO_SEVERITY,
  8. MCE_UC_SEVERITY,
  9. MCE_AR_SEVERITY,
  10. MCE_PANIC_SEVERITY,
  11. };
  12. #define ATTR_LEN 16
  13. /* One object for each MCE bank, shared by all CPUs */
  14. struct mce_bank {
  15. u64 ctl; /* subevents to enable */
  16. unsigned char init; /* initialise bank? */
  17. struct sysdev_attribute attr; /* sysdev attribute */
  18. char attrname[ATTR_LEN]; /* attribute name */
  19. };
  20. int mce_severity(struct mce *a, int tolerant, char **msg);
  21. struct dentry *mce_get_debugfs_dir(void);
  22. extern int mce_ser;
  23. extern struct mce_bank *mce_banks;