Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 1 | #ifndef __HOST_IPMI_STORAGE_HANDLER_H__ |
| 2 | #define __HOST_IPMI_STORAGE_HANDLER_H__ |
| 3 | |
Adriana Kobylak | 8e30f2a | 2015-10-20 10:23:51 -0500 | [diff] [blame] | 4 | // IPMI commands for Storage net functions. |
Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 5 | enum ipmi_netfn_storage_cmds |
| 6 | { |
| 7 | // Get capability bits |
Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 8 | 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 Kobylak | 8e30f2a | 2015-10-20 10:23:51 -0500 | [diff] [blame] | 12 | IPMI_CMD_GET_SEL_TIME = 0x48, |
| 13 | IPMI_CMD_SET_SEL_TIME = 0x49, |
Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 14 | |
| 15 | }; |
| 16 | |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 17 | struct 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 Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 29 | #endif |