2 * linux/include/asm-i386/nmi.h
11 typedef int (*nmi_callback_t
)(struct pt_regs
* regs
, int cpu
);
16 * Set a handler for an NMI. Only one handler may be
17 * set. Return 1 if the NMI was handled.
19 void set_nmi_callback(nmi_callback_t callback
);
24 * Remove the handler previously set.
26 void unset_nmi_callback(void);
30 /** Replace the PM callback routine for NMI. */
31 struct pm_dev
* set_nmi_pm_callback(pm_callback callback
);
33 /** Unset the PM callback routine back to the default. */
34 void unset_nmi_pm_callback(struct pm_dev
* dev
);
38 static inline struct pm_dev
* set_nmi_pm_callback(pm_callback callback
)
43 static inline void unset_nmi_pm_callback(struct pm_dev
* dev
)
47 #endif /* CONFIG_PM */
49 extern void default_do_nmi(struct pt_regs
*);
50 extern void die_nmi(char *str
, struct pt_regs
*regs
);
52 #define get_nmi_reason() inb(0x61)
54 extern int panic_on_timeout
;
55 extern int unknown_nmi_panic
;
57 extern int check_nmi_watchdog(void);
59 #endif /* ASM_NMI_H */