edac_mce.h 698 B

12345678910111213141516171819202122232425262728293031
  1. /* Provides edac interface to mcelog events
  2. *
  3. * This file may be distributed under the terms of the
  4. * GNU General Public License version 2.
  5. *
  6. * Copyright (c) 2009 by:
  7. * Mauro Carvalho Chehab <mchehab@redhat.com>
  8. *
  9. * Red Hat Inc. http://www.redhat.com
  10. */
  11. #if defined(CONFIG_EDAC_MCE) || \
  12. (defined(CONFIG_EDAC_MCE_MODULE) && defined(MODULE))
  13. #include <asm/mce.h>
  14. #include <linux/list.h>
  15. struct edac_mce {
  16. struct list_head list;
  17. void *priv;
  18. int (*check_error)(void *priv, struct mce *mce);
  19. };
  20. int edac_mce_register(struct edac_mce *edac_mce);
  21. void edac_mce_unregister(struct edac_mce *edac_mce);
  22. int edac_mce_parse(struct mce *mce);
  23. #else
  24. #define edac_mce_parse(mce) (0)
  25. #endif