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 /arch/alpha/kernel/err_impl.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 'arch/alpha/kernel/err_impl.h')
-rw-r--r-- | arch/alpha/kernel/err_impl.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/arch/alpha/kernel/err_impl.h b/arch/alpha/kernel/err_impl.h new file mode 100644 index 000000000000..64e9b73809fa --- /dev/null +++ b/arch/alpha/kernel/err_impl.h | |||
@@ -0,0 +1,85 @@ | |||
1 | /* | ||
2 | * linux/arch/alpha/kernel/err_impl.h | ||
3 | * | ||
4 | * Copyright (C) 2000 Jeff Wiedemeier (Compaq Computer Corporation) | ||
5 | * | ||
6 | * Contains declarations and macros to support Alpha error handling | ||
7 | * implementations. | ||
8 | */ | ||
9 | |||
10 | union el_timestamp; | ||
11 | struct el_subpacket; | ||
12 | struct ev7_lf_subpackets; | ||
13 | |||
14 | struct el_subpacket_annotation { | ||
15 | struct el_subpacket_annotation *next; | ||
16 | u16 class; | ||
17 | u16 type; | ||
18 | u16 revision; | ||
19 | char *description; | ||
20 | char **annotation; | ||
21 | }; | ||
22 | #define SUBPACKET_ANNOTATION(c, t, r, d, a) {NULL, (c), (t), (r), (d), (a)} | ||
23 | |||
24 | struct el_subpacket_handler { | ||
25 | struct el_subpacket_handler *next; | ||
26 | u16 class; | ||
27 | struct el_subpacket *(*handler)(struct el_subpacket *); | ||
28 | }; | ||
29 | #define SUBPACKET_HANDLER_INIT(c, h) {NULL, (c), (h)} | ||
30 | |||
31 | /* | ||
32 | * Manipulate a field from a register given it's name. defines | ||
33 | * for the LSB (__S - shift count) and bitmask (__M) are required | ||
34 | * | ||
35 | * EXTRACT(u, f) - extracts the field and places it at bit position 0 | ||
36 | * GEN_MASK(f) - creates an in-position mask for the field | ||
37 | */ | ||
38 | #define EXTRACT(u, f) (((u) >> f##__S) & f##__M) | ||
39 | #define GEN_MASK(f) ((u64)f##__M << f##__S) | ||
40 | |||
41 | /* | ||
42 | * err_common.c | ||
43 | */ | ||
44 | extern char *err_print_prefix; | ||
45 | |||
46 | extern void mchk_dump_mem(void *, size_t, char **); | ||
47 | extern void mchk_dump_logout_frame(struct el_common *); | ||
48 | extern void el_print_timestamp(union el_timestamp *); | ||
49 | extern void el_process_subpackets(struct el_subpacket *, int); | ||
50 | extern struct el_subpacket *el_process_subpacket(struct el_subpacket *); | ||
51 | extern void el_annotate_subpacket(struct el_subpacket *); | ||
52 | extern void cdl_check_console_data_log(void); | ||
53 | extern int cdl_register_subpacket_annotation(struct el_subpacket_annotation *); | ||
54 | extern int cdl_register_subpacket_handler(struct el_subpacket_handler *); | ||
55 | |||
56 | /* | ||
57 | * err_ev7.c | ||
58 | */ | ||
59 | extern struct ev7_lf_subpackets * | ||
60 | ev7_collect_logout_frame_subpackets(struct el_subpacket *, | ||
61 | struct ev7_lf_subpackets *); | ||
62 | extern void ev7_register_error_handlers(void); | ||
63 | extern void ev7_machine_check(u64, u64, struct pt_regs *); | ||
64 | |||
65 | /* | ||
66 | * err_ev6.c | ||
67 | */ | ||
68 | extern void ev6_register_error_handlers(void); | ||
69 | extern int ev6_process_logout_frame(struct el_common *, int); | ||
70 | extern void ev6_machine_check(u64, u64, struct pt_regs *); | ||
71 | |||
72 | /* | ||
73 | * err_marvel.c | ||
74 | */ | ||
75 | extern void marvel_machine_check(u64, u64, struct pt_regs *); | ||
76 | extern void marvel_register_error_handlers(void); | ||
77 | |||
78 | /* | ||
79 | * err_titan.c | ||
80 | */ | ||
81 | extern int titan_process_logout_frame(struct el_common *, int); | ||
82 | extern void titan_machine_check(u64, u64, struct pt_regs *); | ||
83 | extern void titan_register_error_handlers(void); | ||
84 | extern int privateer_process_logout_frame(struct el_common *, int); | ||
85 | extern void privateer_machine_check(u64, u64, struct pt_regs *); | ||