]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - include/linux/edac_mce.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into...
[mirror_ubuntu-zesty-kernel.git] / include / linux / edac_mce.h
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
12 #if defined(CONFIG_EDAC_MCE) || \
13 (defined(CONFIG_EDAC_MCE_MODULE) && defined(MODULE))
14
15 #include <asm/mce.h>
16 #include <linux/list.h>
17
18 struct edac_mce {
19 struct list_head list;
20
21 void *priv;
22 int (*check_error)(void *priv, struct mce *mce);
23 };
24
25 int edac_mce_register(struct edac_mce *edac_mce);
26 void edac_mce_unregister(struct edac_mce *edac_mce);
27 int edac_mce_parse(struct mce *mce);
28
29 #else
30 #define edac_mce_parse(mce) (0)
31 #endif