00001 00011 #ifndef _H_RTAS_EVENT_HDRS 00012 #define _H_RTAS_EVENT_HDRS 00013 00014 #include <inttypes.h> 00015 00020 struct rtas_cpu_scn { 00021 uint32_t internal:1; 00022 uint32_t intcache:1; 00023 uint32_t extcache_parity:1; 00024 uint32_t extcache_ecc:1; 00026 uint32_t sysbus_timeout:1; 00027 uint32_t io_timeout:1; 00028 uint32_t sysbus_parity:1; 00029 uint32_t sysbus_protocol:1; 00031 uint32_t id:8; 00032 uint32_t element:16; 00034 uint32_t failing_address_hi:32; 00035 uint32_t failing_address_lo:32; 00036 uint32_t try_reboot:1; 00038 uint32_t /* reserved */ :7; 00039 uint32_t /* reserved */ :24; 00040 uint32_t /* reserved */ :32; 00041 uint32_t /* reserved */ :32; 00042 uint32_t /* reserved */ :32; 00043 }; 00044 00049 struct rtas_epow_scn { 00050 uint32_t sensor_value:32; 00051 uint32_t sensor:1; 00052 uint32_t power_fault:1; 00053 uint32_t fan:1; 00055 uint32_t temp:1; 00056 uint32_t redundancy:1; 00057 uint32_t CUoD:1; 00058 uint32_t /* reserved */ :2; 00059 00060 uint32_t general:1; 00061 uint32_t power_loss:1; 00062 uint32_t power_supply:1; 00063 uint32_t power_switch:1; 00065 uint32_t battery:1; 00066 uint32_t /* reserved */ :3; 00067 uint32_t /* reserved */ :16; 00068 uint32_t sensor_token:32; 00070 uint32_t sensor_index:32; 00071 uint32_t sensor_value2:32; 00072 uint32_t sensor_status:32; 00073 uint32_t /* reserved */ :32; 00074 }; 00075 00080 struct rtas_io_scn { 00081 uint32_t bus_addr_parity:1; 00082 uint32_t bus_data_parity:1; 00083 uint32_t bus_timeout:1; 00084 uint32_t bridge_internal:1; 00086 uint32_t non_pci:1; 00087 uint32_t mezzanine_addr_parity:1; 00088 uint32_t mezzanine_data_parity:1; 00089 uint32_t mezzanine_timeout:1; 00091 uint32_t bridge_via_sysbus:1; 00092 uint32_t bridge_via_mezzanine:1; 00094 uint32_t bridge_via_expbus:1; 00096 uint32_t detected_by_expbus:1; 00098 uint32_t expbus_data_parity:1; 00100 uint32_t expbus_timeout:1; 00101 uint32_t expbus_connection_failure:1; 00102 uint32_t expbus_not_operating:1; 00105 /* PCI Bus Data of the IOA signalling the error */ 00106 uint32_t pci_sig_bus_id:8; 00107 uint32_t pci_sig_busno:8; 00108 uint32_t pci_sig_devfn:8; 00109 uint32_t pci_sig_deviceid:16; 00111 uint32_t pci_sig_vendorid:16; 00114 uint32_t pci_sig_revisionid:8; 00116 uint32_t pci_sig_slot:8; 00119 /* PCI Bus Data of the IOA sending the the error */ 00120 uint32_t pci_send_bus_id:8; 00121 uint32_t pci_send_busno:8; 00122 uint32_t pci_send_devfn:8; 00123 uint32_t pci_send_deviceid:16; 00125 uint32_t pci_send_vendorid:16; 00128 uint32_t pci_send_revisionid:8; 00130 uint32_t pci_send_slot:8; 00133 uint32_t /* reserved */ :16; 00134 uint32_t /* reserved */ :32; 00135 uint32_t /* reserved */ :32; 00136 }; 00137 00142 struct rtas_mem_scn { 00143 uint32_t uncorrectable:1; 00144 uint32_t ECC:1; 00145 uint32_t threshold_exceeded:1; 00147 uint32_t control_internal:1; 00149 uint32_t bad_address:1; 00150 uint32_t bad_data:1; 00151 uint32_t bus:1; 00152 uint32_t timeout:1; 00154 uint32_t sysbus_parity:1; 00155 uint32_t sysbus_timeout:1; 00156 uint32_t sysbus_protocol:1; 00159 uint32_t hostbridge_timeout:1; 00160 uint32_t hostbridge_parity:1; 00162 uint32_t /* reserved */:1; 00163 uint32_t support:1; 00164 uint32_t sysbus_internal:1; 00167 uint32_t controller_detected:8; 00169 uint32_t controller_faulted:8; 00172 uint32_t failing_address_hi:32; 00173 uint32_t failing_address_lo:32; 00174 00175 uint32_t ecc_syndrome:16; 00176 uint32_t memory_card:8; 00177 uint32_t /* reserved */:8; 00178 uint32_t sub_elements:32; 00180 uint32_t element:16; 00182 }; 00183 00188 struct rtas_post_scn { 00189 uint32_t firmware:1; 00190 uint32_t config:1; 00191 uint32_t cpu:1; 00192 uint32_t memory:1; 00194 uint32_t io:1; 00195 uint32_t keyboard:1; 00196 uint32_t mouse:1; 00197 uint32_t display:1; 00199 uint32_t ipl_floppy:1; 00200 uint32_t ipl_controller:1; 00201 uint32_t ipl_cdrom:1; 00202 uint32_t ipl_disk:1; 00204 uint32_t ipl_net:1; 00205 uint32_t ipl_other:1; 00206 uint32_t /* reserved */ :1; 00207 uint32_t firmware_selftest:1; 00209 char devname[12]; 00210 uint32_t code:4; 00211 uint32_t firmware_rev:2; 00212 uint32_t loc_code:8; 00213 }; 00214 00219 struct rtas_ibmsp_scn { 00220 char ibm[4]; 00222 uint32_t timeout:1; 00223 uint32_t i2c_bus:1; 00224 uint32_t i2c_secondary_bus:1; 00225 uint32_t memory:1; 00228 uint32_t registers:1; 00229 uint32_t communication:1; 00230 uint32_t firmware:1; 00232 uint32_t hardware:1; 00235 uint32_t vpd_eeprom:1; 00236 uint32_t op_panel:1; 00237 uint32_t power_controller:1; 00238 uint32_t fan_sensor:1; 00240 uint32_t thermal_sensor:1; 00241 uint32_t voltage_sensor:1; 00242 uint32_t /* reserved */ :1; 00243 uint32_t serial_port:1; 00245 uint32_t nvram:1; 00246 uint32_t rtc:1; 00247 uint32_t jtag:1; 00248 uint32_t tod_battery:1; 00251 uint32_t /* reserved */ :1; 00252 uint32_t heartbeat:1; 00254 uint32_t surveillance:1; 00255 uint32_t pcn_connection:1; 00258 uint32_t pcn_node:1; 00260 uint32_t /* reserved */ :1; 00261 uint32_t pcn_access:1; 00263 uint32_t /* reserved */ :1; 00264 00265 uint32_t sensor_token:32; 00266 uint32_t sensor_index:32; 00267 }; 00268 00273 struct rtas_ibm_diag_scn { 00274 uint32_t event_id:32; 00275 }; 00276 00281 struct rtas_vend_errlog { 00282 char vendor_id[4]; 00283 }; 00284 #endif
1.5.3