Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 1 | #pragma once |
Lei YU | 8a454c5 | 2020-09-23 16:52:46 +0800 | [diff] [blame^] | 2 | #include <cstdint> |
Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 3 | |
| 4 | enum ipmi_inspur_net_fns |
| 5 | { |
| 6 | NETFN_OEM_INSPUR = 0x3c, |
| 7 | }; |
| 8 | |
| 9 | enum inspur_oem_cmds |
| 10 | { |
| 11 | CMD_OEM_ASSET_INFO = 0x01, |
| 12 | }; |
Lei YU | 8a454c5 | 2020-09-23 16:52:46 +0800 | [diff] [blame^] | 13 | |
| 14 | struct AssetInfoHeader |
| 15 | { |
| 16 | uint8_t rwFlag; |
| 17 | uint8_t deviceType; |
| 18 | uint8_t infoType; |
| 19 | uint8_t maskAllPresentLen; |
| 20 | uint8_t enableStatus; |
| 21 | uint8_t maskPresent; |
| 22 | uint8_t maskAllPresent; |
| 23 | uint8_t allInfoDone; |
| 24 | uint16_t totalMessageLen; |
| 25 | } __attribute__((packed)); |