Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
/*
2
 *  linux/include/asm-i386/nmi.h
3
 */
4
#ifndef ASM_NMI_H
5
#define ASM_NMI_H
6
 
7
#include <linux/pm.h>
8
 
9
struct pt_regs;
10
 
11
typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu);
12
 
13
/**
14
 * set_nmi_callback
15
 *
16
 * Set a handler for an NMI. Only one handler may be
17
 * set. Return 1 if the NMI was handled.
18
 */
19
void set_nmi_callback(nmi_callback_t callback);
20
 
21
/**
22
 * unset_nmi_callback
23
 *
24
 * Remove the handler previously set.
25
 */
26
void unset_nmi_callback(void);
27
 
28
#endif /* ASM_NMI_H */