Patrick Venture | 46470a3 | 2018-09-07 19:26:25 -0700 | [diff] [blame] | 1 | #pragma once |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 2 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 3 | #include <stdint.h> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 4 | |
Ratan Gupta | fd28dd7 | 2016-08-01 04:58:01 -0500 | [diff] [blame] | 5 | #include <cstddef> |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 6 | |
George Liu | 8f4717c | 2025-07-03 09:22:34 +0800 | [diff] [blame] | 7 | // IPMI Command for a Net Function number as specified by IPMI V2.0 spec. |
| 8 | using Cmd = uint8_t; |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 9 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 10 | // Various Chassis operations under a single command. |
George Liu | 8f4717c | 2025-07-03 09:22:34 +0800 | [diff] [blame] | 11 | constexpr Cmd cmdPowerOff = 0x00; |
| 12 | constexpr Cmd cmdPowerOn = 0x01; |
| 13 | constexpr Cmd cmdPowerCycle = 0x02; |
| 14 | constexpr Cmd cmdHardReset = 0x03; |
| 15 | constexpr Cmd cmdPulseDiagnosticInterrupt = 0x04; |
| 16 | constexpr Cmd cmdSoftOffViaOverTemp = 0x05; |
| 17 | |
Ratan Gupta | fd28dd7 | 2016-08-01 04:58:01 -0500 | [diff] [blame] | 18 | enum class BootOptionParameter : size_t |
| 19 | { |
John Wang | 97c62e1 | 2021-01-19 14:19:55 +0800 | [diff] [blame] | 20 | setInProgress = 0x0, |
Chen Yugang | 86ac499 | 2021-06-25 08:14:52 +0800 | [diff] [blame] | 21 | bootFlagValidClr = 0x3, |
jayaprakash Mutyala | bfd8fc4 | 2020-05-05 22:38:03 +0000 | [diff] [blame] | 22 | bootInfo = 0x4, |
| 23 | bootFlags = 0x5, |
| 24 | opalNetworkSettings = 0x61 |
Ratan Gupta | fd28dd7 | 2016-08-01 04:58:01 -0500 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | enum class BootOptionResponseSize : size_t |
| 28 | { |
huanghe | ab36928 | 2020-10-10 14:40:00 +0800 | [diff] [blame] | 29 | setInProgress = 3, |
jayaprakash Mutyala | bfd8fc4 | 2020-05-05 22:38:03 +0000 | [diff] [blame] | 30 | bootFlags = 5, |
| 31 | opalNetworkSettings = 50 |
Ratan Gupta | fd28dd7 | 2016-08-01 04:58:01 -0500 | [diff] [blame] | 32 | }; |
Yong Li | f4e3851 | 2019-05-21 14:46:55 +0800 | [diff] [blame] | 33 | |
| 34 | enum class ChassisIDState : uint8_t |
| 35 | { |
| 36 | off = 0x0, |
| 37 | temporaryOn = 0x1, |
| 38 | indefiniteOn = 0x2, |
| 39 | reserved = 0x3 |
| 40 | }; |