Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 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 | { |
Adriana Kobylak | 187bfce | 2016-03-04 11:55:43 -0600 | [diff] [blame] | 11 | IPMI_CMD_PREP_FW_UPDATE = 0x10, |
Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 12 | IPMI_CMD_PESEL = 0xF0, |
| 13 | }; |
| 14 | |
| 15 | |
| 16 | |
Patrick Williams | 24fa5a9 | 2015-10-30 14:53:57 -0500 | [diff] [blame] | 17 | ipmi_ret_t ipmi_ibm_oem_partial_esel(ipmi_netfn_t netfn, ipmi_cmd_t cmd, |
| 18 | ipmi_request_t request, ipmi_response_t response, |
Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 19 | ipmi_data_len_t data_len, ipmi_context_t context); |
| 20 | |
| 21 | |
| 22 | struct esel_request_t { |
| 23 | uint8_t residls; |
| 24 | uint8_t residms; |
| 25 | uint8_t selrecordls; |
| 26 | uint8_t selrecordms; |
| 27 | uint8_t offsetls; |
| 28 | uint8_t offsetms; |
| 29 | uint8_t progress; |
| 30 | } __attribute__ ((packed)) ; |
| 31 | |
| 32 | |
| 33 | |
| 34 | #endif |