blob: 9973d14b54e2b598295ea3c7d70e296ee12fb344 [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,
Tom Josepha4953392017-06-30 19:09:47 +053010 IPMI_CMD_GET_SEL_ENTRY = 0x43,
Chris Austenb4f5b922015-10-13 12:44:43 -050011 IPMI_CMD_ADD_SEL = 0x44,
Tom Joseph8f4a2aa2017-06-30 19:12:49 +053012 IPMI_CMD_DELETE_SEL = 0x46,
Tom Joseph2f05bb52017-06-30 19:14:49 +053013 IPMI_CMD_CLEAR_SEL = 0x47,
Adriana Kobylak8e30f2a2015-10-20 10:23:51 -050014 IPMI_CMD_GET_SEL_TIME = 0x48,
15 IPMI_CMD_SET_SEL_TIME = 0x49,
Chris Austenb4f5b922015-10-13 12:44:43 -050016
17};
18
Chris Austen41a4b312015-10-25 03:45:42 -050019struct ipmi_add_sel_request_t {
20
21 uint8_t recordid[2];
22 uint8_t recordtype;
23 uint8_t timestampe[4];
24 uint8_t generatorid[2];
25 uint8_t evmrev;
26 uint8_t sensortype;
27 uint8_t sensornumber;
28 uint8_t eventdir;
29 uint8_t eventdata[3];
30};
Chris Austenb4f5b922015-10-13 12:44:43 -050031#endif