blob: 7abefd56abc5fb5653899564606e693bbdec778f [file] [log] [blame]
Chris Austenb4f5b922015-10-13 12:44:43 -05001#ifndef __HOST_IPMI_STORAGE_HANDLER_H__
2#define __HOST_IPMI_STORAGE_HANDLER_H__
3
Adriana Kobylak8e30f2a2015-10-20 10:23:51 -05004// IPMI commands for Storage net functions.
Chris Austenb4f5b922015-10-13 12:44:43 -05005enum ipmi_netfn_storage_cmds
6{
7 // Get capability bits
Chris Austenb4f5b922015-10-13 12:44:43 -05008 IPMI_CMD_WRITE_FRU_DATA = 0x12,
9 IPMI_CMD_GET_SEL_INFO = 0x40,
10 IPMI_CMD_RESERVE_SEL = 0x42,
11 IPMI_CMD_ADD_SEL = 0x44,
Adriana Kobylak8e30f2a2015-10-20 10:23:51 -050012 IPMI_CMD_GET_SEL_TIME = 0x48,
13 IPMI_CMD_SET_SEL_TIME = 0x49,
Chris Austenb4f5b922015-10-13 12:44:43 -050014
15};
16
Chris Austen41a4b312015-10-25 03:45:42 -050017struct ipmi_add_sel_request_t {
18
19 uint8_t recordid[2];
20 uint8_t recordtype;
21 uint8_t timestampe[4];
22 uint8_t generatorid[2];
23 uint8_t evmrev;
24 uint8_t sensortype;
25 uint8_t sensornumber;
26 uint8_t eventdir;
27 uint8_t eventdata[3];
28};
Chris Austenb4f5b922015-10-13 12:44:43 -050029#endif