diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-x86_64/nmi.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-x86_64/nmi.h')
-rw-r--r-- | include/asm-x86_64/nmi.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/asm-x86_64/nmi.h b/include/asm-x86_64/nmi.h new file mode 100644 index 000000000000..21d56b086b9d --- /dev/null +++ b/include/asm-x86_64/nmi.h | |||
@@ -0,0 +1,57 @@ | |||
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 | #ifdef CONFIG_PM | ||
29 | |||
30 | /** Replace the PM callback routine for NMI. */ | ||
31 | struct pm_dev * set_nmi_pm_callback(pm_callback callback); | ||
32 | |||
33 | /** Unset the PM callback routine back to the default. */ | ||
34 | void unset_nmi_pm_callback(struct pm_dev * dev); | ||
35 | |||
36 | #else | ||
37 | |||
38 | static inline struct pm_dev * set_nmi_pm_callback(pm_callback callback) | ||
39 | { | ||
40 | return 0; | ||
41 | } | ||
42 | |||
43 | static inline void unset_nmi_pm_callback(struct pm_dev * dev) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | #endif /* CONFIG_PM */ | ||
48 | |||
49 | extern void default_do_nmi(struct pt_regs *); | ||
50 | extern void die_nmi(char *str, struct pt_regs *regs); | ||
51 | |||
52 | #define get_nmi_reason() inb(0x61) | ||
53 | |||
54 | extern int panic_on_timeout; | ||
55 | extern int unknown_nmi_panic; | ||
56 | |||
57 | #endif /* ASM_NMI_H */ | ||