This source file includes following definitions.
- ev7_lf_env_index
1
2 #ifndef __ALPHA_ERR_EV7_H
3 #define __ALPHA_ERR_EV7_H 1
4
5
6
7
8 struct ev7_pal_logout_subpacket {
9 u32 mchk_code;
10 u32 subpacket_count;
11 u64 whami;
12 u64 rbox_whami;
13 u64 rbox_int;
14 u64 exc_addr;
15 union el_timestamp timestamp;
16 u64 halt_code;
17 u64 reserved;
18 };
19
20
21
22
23 struct ev7_pal_processor_subpacket {
24 u64 i_stat;
25 u64 dc_stat;
26 u64 c_addr;
27 u64 c_syndrome_1;
28 u64 c_syndrome_0;
29 u64 c_stat;
30 u64 c_sts;
31 u64 mm_stat;
32 u64 exc_addr;
33 u64 ier_cm;
34 u64 isum;
35 u64 pal_base;
36 u64 i_ctl;
37 u64 process_context;
38 u64 cbox_ctl;
39 u64 cbox_stp_ctl;
40 u64 cbox_acc_ctl;
41 u64 cbox_lcl_set;
42 u64 cbox_gbl_set;
43 u64 bbox_ctl;
44 u64 bbox_err_sts;
45 u64 bbox_err_idx;
46 u64 cbox_ddp_err_sts;
47 u64 bbox_dat_rmp;
48 u64 reserved[2];
49 };
50
51
52
53
54 struct ev7_pal_zbox_subpacket {
55 u32 zbox0_dram_err_status_1;
56 u32 zbox0_dram_err_status_2;
57 u32 zbox0_dram_err_status_3;
58 u32 zbox0_dram_err_ctl;
59 u32 zbox0_dram_err_adr;
60 u32 zbox0_dift_timeout;
61 u32 zbox0_dram_mapper_ctl;
62 u32 zbox0_frc_err_adr;
63 u32 zbox0_dift_err_status;
64 u32 reserved1;
65 u32 zbox1_dram_err_status_1;
66 u32 zbox1_dram_err_status_2;
67 u32 zbox1_dram_err_status_3;
68 u32 zbox1_dram_err_ctl;
69 u32 zbox1_dram_err_adr;
70 u32 zbox1_dift_timeout;
71 u32 zbox1_dram_mapper_ctl;
72 u32 zbox1_frc_err_adr;
73 u32 zbox1_dift_err_status;
74 u32 reserved2;
75 u64 cbox_ctl;
76 u64 cbox_stp_ctl;
77 u64 zbox0_error_pa;
78 u64 zbox1_error_pa;
79 u64 zbox0_ored_syndrome;
80 u64 zbox1_ored_syndrome;
81 u64 reserved3[2];
82 };
83
84
85
86
87 struct ev7_pal_rbox_subpacket {
88 u64 rbox_cfg;
89 u64 rbox_n_cfg;
90 u64 rbox_s_cfg;
91 u64 rbox_e_cfg;
92 u64 rbox_w_cfg;
93 u64 rbox_n_err;
94 u64 rbox_s_err;
95 u64 rbox_e_err;
96 u64 rbox_w_err;
97 u64 rbox_io_cfg;
98 u64 rbox_io_err;
99 u64 rbox_l_err;
100 u64 rbox_whoami;
101 u64 rbox_imask;
102 u64 rbox_intq;
103 u64 rbox_int;
104 u64 reserved[2];
105 };
106
107
108
109
110 struct ev7_pal_io_one_port {
111 u64 pox_err_sum;
112 u64 pox_tlb_err;
113 u64 pox_spl_cmplt;
114 u64 pox_trans_sum;
115 u64 pox_first_err;
116 u64 pox_mult_err;
117 u64 pox_dm_source;
118 u64 pox_dm_dest;
119 u64 pox_dm_size;
120 u64 pox_dm_ctrl;
121 u64 reserved;
122 };
123
124 struct ev7_pal_io_subpacket {
125 u64 io_asic_rev;
126 u64 io_sys_rev;
127 u64 io7_uph;
128 u64 hpi_ctl;
129 u64 crd_ctl;
130 u64 hei_ctl;
131 u64 po7_error_sum;
132 u64 po7_uncrr_sym;
133 u64 po7_crrct_sym;
134 u64 po7_ugbge_sym;
135 u64 po7_err_pkt0;
136 u64 po7_err_pkt1;
137 u64 reserved[2];
138 struct ev7_pal_io_one_port ports[4];
139 };
140
141
142
143
144
145
146
147
148
149
150
151 struct ev7_pal_environmental_subpacket {
152 u16 cabinet;
153 u16 drawer;
154 u16 reserved1[2];
155 u8 module_type;
156 u8 unit_id;
157 u8 reserved2;
158 u8 condition;
159 };
160
161
162
163
164 static inline int ev7_lf_env_index(int type)
165 {
166 BUG_ON((type < EL_TYPE__PAL__ENV__AMBIENT_TEMPERATURE)
167 || (type > EL_TYPE__PAL__ENV__HOT_PLUG));
168
169 return type - EL_TYPE__PAL__ENV__AMBIENT_TEMPERATURE;
170 }
171
172
173
174
175 struct ev7_pal_subpacket {
176 union {
177 struct ev7_pal_logout_subpacket logout;
178 struct ev7_pal_processor_subpacket ev7;
179 struct ev7_pal_zbox_subpacket zbox;
180 struct ev7_pal_rbox_subpacket rbox;
181 struct ev7_pal_io_subpacket io;
182 struct ev7_pal_environmental_subpacket env;
183 u64 as_quad[1];
184 } by_type;
185 };
186
187
188
189
190 struct ev7_lf_subpackets {
191 struct ev7_pal_logout_subpacket *logout;
192 struct ev7_pal_processor_subpacket *ev7;
193 struct ev7_pal_zbox_subpacket *zbox;
194 struct ev7_pal_rbox_subpacket *rbox;
195 struct ev7_pal_io_subpacket *io;
196 struct ev7_pal_environmental_subpacket *env[7];
197
198 unsigned int io_pid;
199 };
200
201 #endif
202
203