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_GET_SEL_INFO = 0x40, |
| 9 | IPMI_CMD_RESERVE_SEL = 0x42, |
Tom Joseph | a495339 | 2017-06-30 19:09:47 +0530 | [diff] [blame] | 10 | IPMI_CMD_GET_SEL_ENTRY = 0x43, |
Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 11 | IPMI_CMD_ADD_SEL = 0x44, |
Tom Joseph | 8f4a2aa | 2017-06-30 19:12:49 +0530 | [diff] [blame] | 12 | IPMI_CMD_DELETE_SEL = 0x46, |
Tom Joseph | 2f05bb5 | 2017-06-30 19:14:49 +0530 | [diff] [blame] | 13 | IPMI_CMD_CLEAR_SEL = 0x47, |
Adriana Kobylak | 8e30f2a | 2015-10-20 10:23:51 -0500 | [diff] [blame] | 14 | IPMI_CMD_GET_SEL_TIME = 0x48, |
| 15 | IPMI_CMD_SET_SEL_TIME = 0x49, |
Chris Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 16 | |
| 17 | }; |
| 18 | |
Chris Austen | 41a4b31 | 2015-10-25 03:45:42 -0500 | [diff] [blame] | 19 | struct 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 Austen | b4f5b92 | 2015-10-13 12:44:43 -0500 | [diff] [blame] | 31 | #endif |