blob: 174da061cf116a5a303a76962ba3e6700d24ec84 [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_GET_SEL_INFO = 0x40,
9 IPMI_CMD_RESERVE_SEL = 0x42,
10 IPMI_CMD_ADD_SEL = 0x44,
Adriana Kobylak8e30f2a2015-10-20 10:23:51 -050011 IPMI_CMD_GET_SEL_TIME = 0x48,
12 IPMI_CMD_SET_SEL_TIME = 0x49,
Chris Austenb4f5b922015-10-13 12:44:43 -050013
14};
15
Chris Austen41a4b312015-10-25 03:45:42 -050016struct ipmi_add_sel_request_t {
17
18 uint8_t recordid[2];
19 uint8_t recordtype;
20 uint8_t timestampe[4];
21 uint8_t generatorid[2];
22 uint8_t evmrev;
23 uint8_t sensortype;
24 uint8_t sensornumber;
25 uint8_t eventdir;
26 uint8_t eventdata[3];
27};
Chris Austenb4f5b922015-10-13 12:44:43 -050028#endif