Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 3 | #include <ipmid/api.hpp> |
| 4 | |
Patrick Williams | b8c9244 | 2022-08-04 13:27:05 -0500 | [diff] [blame] | 5 | #include <cstdint> |
| 6 | |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 7 | namespace ipmi |
| 8 | { |
| 9 | |
| 10 | using NetFn = uint8_t; |
Patrick Williams | b8c9244 | 2022-08-04 13:27:05 -0500 | [diff] [blame] | 11 | using Cmd = uint8_t; |
| 12 | using Cc = uint8_t; |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 13 | |
| 14 | constexpr NetFn netfnKunlunOem = netFnOemSix; |
| 15 | namespace cmd |
| 16 | { |
Patrick Williams | b8c9244 | 2022-08-04 13:27:05 -0500 | [diff] [blame] | 17 | constexpr Cmd cmdSetCpuInfo = 0x0; |
| 18 | constexpr Cmd cmdGetCpuInfo = 0x1; |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 19 | } // namespace cmd |
| 20 | |
| 21 | RspType<> setCpuInfo(uint8_t index, std::vector<char> info); |
| 22 | RspType<std::vector<char>> getCpuInfo(uint8_t index); |
| 23 | |
| 24 | } // namespace ipmi |