summaryrefslogtreecommitdiffstats
path: root/chassishandler.h
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-07 19:26:25 -0700
committerPatrick Venture <venture@google.com>2018-09-25 10:06:33 -0700
commit46470a38d0a3b8f29cd8efc4af8a76adcace524a (patch)
treec3e2df8b2a238889aabb14b6ba4efd76c4607364 /chassishandler.h
parent87651333c451cfa8090273366be5ec62bd1a9eea (diff)
downloadphosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.tar.gz
phosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.zip
rename headers to match style
Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'chassishandler.h')
-rw-r--r--chassishandler.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/chassishandler.h b/chassishandler.h
deleted file mode 100644
index 0c6d5a2..0000000
--- a/chassishandler.h
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef __HOST_IPMI_CHASSIS_HANDLER_H__
-#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,
- // Chassis Status
- IPMI_CMD_CHASSIS_STATUS = 0x01,
- // Chassis Control
- IPMI_CMD_CHASSIS_CONTROL = 0x02,
- IPMI_CMD_CHASSIS_IDENTIFY = 0x04,
- // Set Power Restore Policy
- IPMI_CMD_SET_RESTORE_POLICY = 0x06,
- // Get capability bits
- IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08,
- IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09,
- IPMI_CMD_GET_POH_COUNTER = 0x0F,
-};
-
-// Command specific completion codes
-enum ipmi_chassis_return_codes
-{
- IPMI_OK = 0x0,
- IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
-};
-
-// Generic completion codes,
-// see IPMI doc section 5.2
-enum ipmi_generic_return_codes
-{
- IPMI_OUT_OF_SPACE = 0xC4,
-};
-
-// 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,
-};
-enum class BootOptionParameter : size_t
-{
- BOOT_INFO = 0x4,
- BOOT_FLAGS = 0x5,
- OPAL_NETWORK_SETTINGS = 0x61
-};
-
-enum class BootOptionResponseSize : size_t
-{
- BOOT_FLAGS = 5,
- OPAL_NETWORK_SETTINGS = 50
-};
-
-#endif
OpenPOWER on IntegriCloud