• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/
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) || (defined(CONFIG_EDAC_MCE_MODULE) && defined(MODULE))
13
14#include <asm/mce.h>
15#include <linux/list.h>
16
17struct edac_mce {
18	struct list_head list;
19
20	void *priv;
21	int (*check_error)(void *priv, struct mce *mce);
22};
23
24int edac_mce_register(struct edac_mce *edac_mce);
25void edac_mce_unregister(struct edac_mce *edac_mce);
26int edac_mce_parse(struct mce *mce);
27
28#else
29#define edac_mce_parse(mce) (0)
30#endif
31