diff options
author | Patrick Venture <venture@google.com> | 2018-08-31 11:55:55 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-07 23:45:41 +0000 |
commit | 0b02be925a29357f69abbc9e9a58e7c5aaed2eab (patch) | |
tree | c1b39f817d98ffda7b987f9e3f864f576e3bf9ea /chassishandler.h | |
parent | 26f80ab2cc41deadc913190d906f71266c4ed224 (diff) | |
download | phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.tar.gz phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.zip |
add .clang-format
Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'chassishandler.h')
-rw-r--r-- | chassishandler.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/chassishandler.h b/chassishandler.h index fa7ad5d..edbac89 100644 --- a/chassishandler.h +++ b/chassishandler.h @@ -2,21 +2,22 @@ #define __HOST_IPMI_CHASSIS_HANDLER_H__ #include <stdint.h> + #include <cstddef> // IPMI commands for Chassis net functions. enum ipmi_netfn_chassis_cmds { - IPMI_CMD_GET_CHASSIS_CAP = 0x00, + IPMI_CMD_GET_CHASSIS_CAP = 0x00, // Chassis Status - IPMI_CMD_CHASSIS_STATUS = 0x01, + IPMI_CMD_CHASSIS_STATUS = 0x01, // Chassis Control - IPMI_CMD_CHASSIS_CONTROL = 0x02, - IPMI_CMD_CHASSIS_IDENTIFY = 0x04, + IPMI_CMD_CHASSIS_CONTROL = 0x02, + IPMI_CMD_CHASSIS_IDENTIFY = 0x04, // Get capability bits IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08, IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09, - IPMI_CMD_GET_POH_COUNTER = 0x0F, + IPMI_CMD_GET_POH_COUNTER = 0x0F, }; // Command specific completion codes @@ -36,24 +37,24 @@ enum ipmi_generic_return_codes // Various Chassis operations under a single command. enum ipmi_chassis_control_cmds : uint8_t { - CMD_POWER_OFF = 0x00, - CMD_POWER_ON = 0x01, - CMD_POWER_CYCLE = 0x02, - CMD_HARD_RESET = 0x03, - CMD_PULSE_DIAGNOSTIC_INTR = 0x04, - CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05, + CMD_POWER_OFF = 0x00, + CMD_POWER_ON = 0x01, + CMD_POWER_CYCLE = 0x02, + CMD_HARD_RESET = 0x03, + CMD_PULSE_DIAGNOSTIC_INTR = 0x04, + CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05, }; enum class BootOptionParameter : size_t { - BOOT_INFO = 0x4, - BOOT_FLAGS = 0x5, - OPAL_NETWORK_SETTINGS = 0x61 + BOOT_INFO = 0x4, + BOOT_FLAGS = 0x5, + OPAL_NETWORK_SETTINGS = 0x61 }; enum class BootOptionResponseSize : size_t { - BOOT_FLAGS = 5, - OPAL_NETWORK_SETTINGS = 50 + BOOT_FLAGS = 5, + OPAL_NETWORK_SETTINGS = 50 }; #endif |