blob: 539c6d31879d3da8d83bf6e47909da5572b624ab [file] [log] [blame]
Chris Austen4d98c1e2015-10-13 14:33:50 -05001#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.
9enum ipmi_netfn_oem_cmds
10{
Adriana Kobylak187bfce2016-03-04 11:55:43 -060011 IPMI_CMD_PREP_FW_UPDATE = 0x10,
Chris Austen4d98c1e2015-10-13 14:33:50 -050012 IPMI_CMD_PESEL = 0xF0,
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053013 IPMI_CMD_OCC_RESET = 0x0E,
Chris Austen4d98c1e2015-10-13 14:33:50 -050014};
15
16
17
Patrick Williams24fa5a92015-10-30 14:53:57 -050018ipmi_ret_t ipmi_ibm_oem_partial_esel(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
19 ipmi_request_t request, ipmi_response_t response,
Chris Austen4d98c1e2015-10-13 14:33:50 -050020 ipmi_data_len_t data_len, ipmi_context_t context);
21
22
23struct esel_request_t {
Nan Li8a0807a2016-05-24 16:59:24 +080024 uint16_t resid;
25 uint16_t selrecord;
26 uint16_t offset;
Chris Austen4d98c1e2015-10-13 14:33:50 -050027 uint8_t progress;
28} __attribute__ ((packed)) ;
29
30
31
32#endif