00001 00011 #ifndef _H_RTAS_EVENT_HDRS 00012 #define _H_RTAS_EVENT_HDRS 00013 00014 #include <inttypes.h> 00015 00016 #define RE_V4_SCN_SZ 28 00017 00022 struct rtas_cpu_scn { 00023 struct scn_header shdr; 00024 uint32_t internal:1; 00025 uint32_t intcache:1; 00026 uint32_t extcache_parity:1; 00027 uint32_t extcache_ecc:1; 00029 uint32_t sysbus_timeout:1; 00030 uint32_t io_timeout:1; 00031 uint32_t sysbus_parity:1; 00032 uint32_t sysbus_protocol:1; 00034 uint32_t id:8; 00035 uint32_t element:16; 00037 uint32_t failing_address_hi:32; 00038 uint32_t failing_address_lo:32; 00039 uint32_t try_reboot:1; 00041 uint32_t /* reserved */ :7; 00042 uint32_t /* reserved */ :24; 00043 uint32_t /* reserved */ :32; 00044 uint32_t /* reserved */ :32; 00045 uint32_t /* reserved */ :32; 00046 }; 00047 00052 struct rtas_mem_scn { 00053 struct scn_header shdr; 00054 uint32_t uncorrectable:1; 00055 uint32_t ECC:1; 00056 uint32_t threshold_exceeded:1; 00058 uint32_t control_internal:1; 00060 uint32_t bad_address:1; 00061 uint32_t bad_data:1; 00062 uint32_t bus:1; 00063 uint32_t timeout:1; 00065 uint32_t sysbus_parity:1; 00066 uint32_t sysbus_timeout:1; 00067 uint32_t sysbus_protocol:1; 00070 uint32_t hostbridge_timeout:1; 00071 uint32_t hostbridge_parity:1; 00073 uint32_t /* reserved */:1; 00074 uint32_t support:1; 00075 uint32_t sysbus_internal:1; 00078 uint32_t controller_detected:8; 00080 uint32_t controller_faulted:8; 00083 uint32_t failing_address_hi:32; 00084 uint32_t failing_address_lo:32; 00085 00086 uint32_t ecc_syndrome:16; 00087 uint32_t memory_card:8; 00088 uint32_t /* reserved */:8; 00089 uint32_t sub_elements:32; 00091 uint32_t element:16; 00094 uint32_t /* reserved */:16; 00095 uint32_t /* reserved */:32; 00096 }; 00097 00102 struct rtas_post_scn { 00103 struct scn_header shdr; 00104 uint32_t firmware:1; 00105 uint32_t config:1; 00106 uint32_t cpu:1; 00107 uint32_t memory:1; 00109 uint32_t io:1; 00110 uint32_t keyboard:1; 00111 uint32_t mouse:1; 00112 uint32_t display:1; 00114 uint32_t ipl_floppy:1; 00115 uint32_t ipl_controller:1; 00116 uint32_t ipl_cdrom:1; 00117 uint32_t ipl_disk:1; 00119 uint32_t ipl_net:1; 00120 uint32_t ipl_other:1; 00121 uint32_t /* reserved */ :1; 00122 uint32_t firmware_selftest:1; 00124 char devname[13]; 00125 uint32_t err_code[5]; 00126 uint32_t firmware_rev[3]; 00127 uint32_t loc_code[9]; 00128 }; 00129 00134 struct rtas_ibmsp_scn { 00135 struct scn_header shdr; 00136 char ibm[4]; 00138 uint32_t timeout:1; 00139 uint32_t i2c_bus:1; 00140 uint32_t i2c_secondary_bus:1; 00141 uint32_t memory:1; 00144 uint32_t registers:1; 00145 uint32_t communication:1; 00146 uint32_t firmware:1; 00148 uint32_t hardware:1; 00151 uint32_t vpd_eeprom:1; 00152 uint32_t op_panel:1; 00153 uint32_t power_controller:1; 00154 uint32_t fan_sensor:1; 00156 uint32_t thermal_sensor:1; 00157 uint32_t voltage_sensor:1; 00158 uint32_t /* reserved */ :2; 00159 00160 uint32_t serial_port:1; 00161 uint32_t nvram:1; 00162 uint32_t rtc:1; 00163 uint32_t jtag:1; 00165 uint32_t tod_battery:1; 00167 uint32_t /* reserved */ :1; 00168 uint32_t heartbeat:1; 00170 uint32_t surveillance:1; 00172 uint32_t pcn_connection:1; 00174 uint32_t pcn_node:1; 00176 uint32_t /* reserved */ :2; 00177 uint32_t pcn_access:1; 00179 uint32_t /* reserved */ :3; 00180 00181 uint32_t sensor_token:32; 00182 uint32_t sensor_index:32; 00183 00184 uint32_t /* reserved */:32; 00185 uint32_t /* reserved */:32; 00186 uint32_t /* reserved */:32; 00187 }; 00188 00193 struct rtas_ibm_diag_scn { 00194 struct scn_header shdr; 00195 uint32_t event_id:32; 00196 }; 00197 00202 struct rtas_vend_errlog { 00203 struct scn_header shdr; 00204 char vendor_id[4]; 00205 uint32_t vendor_data_sz; 00206 char *vendor_data; 00207 }; 00208 #endif
1.5.5