Path: blob/master/arch/alpha/include/asm/err_ev7.h
15126 views
#ifndef __ALPHA_ERR_EV7_H1#define __ALPHA_ERR_EV7_H 123/*4* Data for el packet class PAL (14), type LOGOUT_FRAME (1)5*/6struct ev7_pal_logout_subpacket {7u32 mchk_code;8u32 subpacket_count;9u64 whami;10u64 rbox_whami;11u64 rbox_int;12u64 exc_addr;13union el_timestamp timestamp;14u64 halt_code;15u64 reserved;16};1718/*19* Data for el packet class PAL (14), type EV7_PROCESSOR (4)20*/21struct ev7_pal_processor_subpacket {22u64 i_stat;23u64 dc_stat;24u64 c_addr;25u64 c_syndrome_1;26u64 c_syndrome_0;27u64 c_stat;28u64 c_sts;29u64 mm_stat;30u64 exc_addr;31u64 ier_cm;32u64 isum;33u64 pal_base;34u64 i_ctl;35u64 process_context;36u64 cbox_ctl;37u64 cbox_stp_ctl;38u64 cbox_acc_ctl;39u64 cbox_lcl_set;40u64 cbox_gbl_set;41u64 bbox_ctl;42u64 bbox_err_sts;43u64 bbox_err_idx;44u64 cbox_ddp_err_sts;45u64 bbox_dat_rmp;46u64 reserved[2];47};4849/*50* Data for el packet class PAL (14), type EV7_ZBOX (5)51*/52struct ev7_pal_zbox_subpacket {53u32 zbox0_dram_err_status_1;54u32 zbox0_dram_err_status_2;55u32 zbox0_dram_err_status_3;56u32 zbox0_dram_err_ctl;57u32 zbox0_dram_err_adr;58u32 zbox0_dift_timeout;59u32 zbox0_dram_mapper_ctl;60u32 zbox0_frc_err_adr;61u32 zbox0_dift_err_status;62u32 reserved1;63u32 zbox1_dram_err_status_1;64u32 zbox1_dram_err_status_2;65u32 zbox1_dram_err_status_3;66u32 zbox1_dram_err_ctl;67u32 zbox1_dram_err_adr;68u32 zbox1_dift_timeout;69u32 zbox1_dram_mapper_ctl;70u32 zbox1_frc_err_adr;71u32 zbox1_dift_err_status;72u32 reserved2;73u64 cbox_ctl;74u64 cbox_stp_ctl;75u64 zbox0_error_pa;76u64 zbox1_error_pa;77u64 zbox0_ored_syndrome;78u64 zbox1_ored_syndrome;79u64 reserved3[2];80};8182/*83* Data for el packet class PAL (14), type EV7_RBOX (6)84*/85struct ev7_pal_rbox_subpacket {86u64 rbox_cfg;87u64 rbox_n_cfg;88u64 rbox_s_cfg;89u64 rbox_e_cfg;90u64 rbox_w_cfg;91u64 rbox_n_err;92u64 rbox_s_err;93u64 rbox_e_err;94u64 rbox_w_err;95u64 rbox_io_cfg;96u64 rbox_io_err;97u64 rbox_l_err;98u64 rbox_whoami;99u64 rbox_imask;100u64 rbox_intq;101u64 rbox_int;102u64 reserved[2];103};104105/*106* Data for el packet class PAL (14), type EV7_IO (7)107*/108struct ev7_pal_io_one_port {109u64 pox_err_sum;110u64 pox_tlb_err;111u64 pox_spl_cmplt;112u64 pox_trans_sum;113u64 pox_first_err;114u64 pox_mult_err;115u64 pox_dm_source;116u64 pox_dm_dest;117u64 pox_dm_size;118u64 pox_dm_ctrl;119u64 reserved;120};121122struct ev7_pal_io_subpacket {123u64 io_asic_rev;124u64 io_sys_rev;125u64 io7_uph;126u64 hpi_ctl;127u64 crd_ctl;128u64 hei_ctl;129u64 po7_error_sum;130u64 po7_uncrr_sym;131u64 po7_crrct_sym;132u64 po7_ugbge_sym;133u64 po7_err_pkt0;134u64 po7_err_pkt1;135u64 reserved[2];136struct ev7_pal_io_one_port ports[4];137};138139/*140* Environmental subpacket. Data used for el packets:141* class PAL (14), type AMBIENT_TEMPERATURE (10)142* class PAL (14), type AIRMOVER_FAN (11)143* class PAL (14), type VOLTAGE (12)144* class PAL (14), type INTRUSION (13)145* class PAL (14), type POWER_SUPPLY (14)146* class PAL (14), type LAN (15)147* class PAL (14), type HOT_PLUG (16)148*/149struct ev7_pal_environmental_subpacket {150u16 cabinet;151u16 drawer;152u16 reserved1[2];153u8 module_type;154u8 unit_id; /* unit reporting condition */155u8 reserved2;156u8 condition; /* condition reported */157};158159/*160* Convert environmental type to index161*/162static inline int ev7_lf_env_index(int type)163{164BUG_ON((type < EL_TYPE__PAL__ENV__AMBIENT_TEMPERATURE)165|| (type > EL_TYPE__PAL__ENV__HOT_PLUG));166167return type - EL_TYPE__PAL__ENV__AMBIENT_TEMPERATURE;168}169170/*171* Data for generic el packet class PAL.172*/173struct ev7_pal_subpacket {174union {175struct ev7_pal_logout_subpacket logout; /* Type 1 */176struct ev7_pal_processor_subpacket ev7; /* Type 4 */177struct ev7_pal_zbox_subpacket zbox; /* Type 5 */178struct ev7_pal_rbox_subpacket rbox; /* Type 6 */179struct ev7_pal_io_subpacket io; /* Type 7 */180struct ev7_pal_environmental_subpacket env; /* Type 10-16 */181u64 as_quad[1]; /* Raw u64 */182} by_type;183};184185/*186* Struct to contain collected logout from subpackets.187*/188struct ev7_lf_subpackets {189struct ev7_pal_logout_subpacket *logout; /* Type 1 */190struct ev7_pal_processor_subpacket *ev7; /* Type 4 */191struct ev7_pal_zbox_subpacket *zbox; /* Type 5 */192struct ev7_pal_rbox_subpacket *rbox; /* Type 6 */193struct ev7_pal_io_subpacket *io; /* Type 7 */194struct ev7_pal_environmental_subpacket *env[7]; /* Type 10-16 */195196unsigned int io_pid;197};198199#endif /* __ALPHA_ERR_EV7_H */200201202203204