2 * linux/include/asm-i386/nmi.h
13 * Check to see if a callback exists and execute it. Return 1
14 * if the handler exists and was handled successfully.
16 int do_nmi_callback(struct pt_regs *regs, int cpu);
20 /** Replace the PM callback routine for NMI. */
21 struct pm_dev * set_nmi_pm_callback(pm_callback callback);
23 /** Unset the PM callback routine back to the default. */
24 void unset_nmi_pm_callback(struct pm_dev * dev);
28 static inline struct pm_dev * set_nmi_pm_callback(pm_callback callback)
33 static inline void unset_nmi_pm_callback(struct pm_dev * dev)
37 #endif /* CONFIG_PM */
39 extern void default_do_nmi(struct pt_regs *);
40 extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);
42 #define get_nmi_reason() inb(0x61)
44 extern int panic_on_timeout;
45 extern int unknown_nmi_panic;
46 extern int nmi_watchdog_enabled;
48 extern int check_nmi_watchdog(void);
49 extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
50 extern int avail_to_resrv_perfctr_nmi(unsigned int);
51 extern int reserve_perfctr_nmi(unsigned int);
52 extern void release_perfctr_nmi(unsigned int);
53 extern int reserve_evntsel_nmi(unsigned int);
54 extern void release_evntsel_nmi(unsigned int);
56 extern void setup_apic_nmi_watchdog (void *);
57 extern void stop_apic_nmi_watchdog (void *);
58 extern void disable_timer_nmi_watchdog(void);
59 extern void enable_timer_nmi_watchdog(void);
60 extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason);
62 extern void nmi_watchdog_default(void);
63 extern int setup_nmi_watchdog(char *);
65 extern atomic_t nmi_active;
66 extern unsigned int nmi_watchdog;
67 #define NMI_DEFAULT -1
70 #define NMI_LOCAL_APIC 2
75 extern int proc_nmi_enabled(struct ctl_table *, int , struct file *,
76 void __user *, size_t *, loff_t *);
78 extern int unknown_nmi_panic;
80 #endif /* ASM_NMI_H */