blob: 1c8a97e284c63f68cfe07b29a7bc744a89155ece [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,
13};
14
15
16
Patrick Williams24fa5a92015-10-30 14:53:57 -050017ipmi_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 Austen4d98c1e2015-10-13 14:33:50 -050019 ipmi_data_len_t data_len, ipmi_context_t context);
20
21
22struct esel_request_t {
Nan Li8a0807a2016-05-24 16:59:24 +080023 uint16_t resid;
24 uint16_t selrecord;
25 uint16_t offset;
Chris Austen4d98c1e2015-10-13 14:33:50 -050026 uint8_t progress;
27} __attribute__ ((packed)) ;
28
29
30
31#endif