Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
err_ev7.h
Go to the documentation of this file.
1 #ifndef __ALPHA_ERR_EV7_H
2 #define __ALPHA_ERR_EV7_H 1
3 
4 /*
5  * Data for el packet class PAL (14), type LOGOUT_FRAME (1)
6  */
17 };
18 
19 /*
20  * Data for el packet class PAL (14), type EV7_PROCESSOR (4)
21  */
48 };
49 
50 /*
51  * Data for el packet class PAL (14), type EV7_ZBOX (5)
52  */
81 };
82 
83 /*
84  * Data for el packet class PAL (14), type EV7_RBOX (6)
85  */
104 };
105 
106 /*
107  * Data for el packet class PAL (14), type EV7_IO (7)
108  */
121 };
122 
138 };
139 
140 /*
141  * Environmental subpacket. Data used for el packets:
142  * class PAL (14), type AMBIENT_TEMPERATURE (10)
143  * class PAL (14), type AIRMOVER_FAN (11)
144  * class PAL (14), type VOLTAGE (12)
145  * class PAL (14), type INTRUSION (13)
146  * class PAL (14), type POWER_SUPPLY (14)
147  * class PAL (14), type LAN (15)
148  * class PAL (14), type HOT_PLUG (16)
149  */
155  u8 unit_id; /* unit reporting condition */
157  u8 condition; /* condition reported */
158 };
159 
160 /*
161  * Convert environmental type to index
162  */
163 static inline int ev7_lf_env_index(int type)
164 {
166  || (type > EL_TYPE__PAL__ENV__HOT_PLUG));
167 
169 }
170 
171 /*
172  * Data for generic el packet class PAL.
173  */
175  union {
176  struct ev7_pal_logout_subpacket logout; /* Type 1 */
177  struct ev7_pal_processor_subpacket ev7; /* Type 4 */
178  struct ev7_pal_zbox_subpacket zbox; /* Type 5 */
179  struct ev7_pal_rbox_subpacket rbox; /* Type 6 */
180  struct ev7_pal_io_subpacket io; /* Type 7 */
181  struct ev7_pal_environmental_subpacket env; /* Type 10-16 */
182  u64 as_quad[1]; /* Raw u64 */
183  } by_type;
184 };
185 
186 /*
187  * Struct to contain collected logout from subpackets.
188  */
190  struct ev7_pal_logout_subpacket *logout; /* Type 1 */
191  struct ev7_pal_processor_subpacket *ev7; /* Type 4 */
192  struct ev7_pal_zbox_subpacket *zbox; /* Type 5 */
193  struct ev7_pal_rbox_subpacket *rbox; /* Type 6 */
194  struct ev7_pal_io_subpacket *io; /* Type 7 */
195  struct ev7_pal_environmental_subpacket *env[7]; /* Type 10-16 */
196 
197  unsigned int io_pid;
198 };
199 
200 #endif /* __ALPHA_ERR_EV7_H */
201 
202