1 #ifndef __HOST_IPMI_OPENPOWEROEM_HANDLER_H__ 2 #define __HOST_IPMI_OPENPOWEROEM_HANDLER_H__ 3 4 #include <stdint.h> 5 #include <host-ipmid/ipmid-api.h> 6 7 8 // IPMI commands for net functions. 9 enum ipmi_netfn_oem_cmds 10 { 11 IPMI_CMD_PREP_FW_UPDATE = 0x10, 12 IPMI_CMD_PESEL = 0xF0, 13 IPMI_CMD_OCC_RESET = 0x0E, 14 }; 15 16 17 18 ipmi_ret_t ipmi_ibm_oem_partial_esel(ipmi_netfn_t netfn, ipmi_cmd_t cmd, 19 ipmi_request_t request, ipmi_response_t response, 20 ipmi_data_len_t data_len, ipmi_context_t context); 21 22 23 struct esel_request_t { 24 uint16_t resid; 25 uint16_t selrecord; 26 uint16_t offset; 27 uint8_t progress; 28 } __attribute__ ((packed)) ; 29 30 31 32 #endif 33