Move commands from ipmi-providers
Many commands were in ipmi-providers and need to be moved into the
active development library (intel-ipmi-oem). This copies wholesale
those commands, even though many need to be rewritten to use the new
ipmi providers API.
Tested-by: build and see that the commands are still present even when
the ipmi-providers library is removed
Change-Id: If326f5d7844adeed7da2d3b7a2f1d3eeeea43b29
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/include/oemcommands.hpp b/include/oemcommands.hpp
index 2d2042d..e0e6903 100644
--- a/include/oemcommands.hpp
+++ b/include/oemcommands.hpp
@@ -366,3 +366,73 @@
maxPwm = 0x3,
cfm = 0x4
};
+
+// FIXME: this stuff needs to be rewritten
+enum IPMI_INTEL_OEM_RETURN_CODES
+{
+ IPMI_CC_OEM_PAYLOAD_ACTIVE = 0x80,
+ IPMI_CC_OEM_INVALID_PCIE_SLOTID = 0x80,
+ IPMI_CC_OEM_PARAMETER_NOT_SUPPORTED = 0x80,
+ IPMI_CC_OEM_PAYLOAD_ALREADY_DEACTIVATED = 0x80,
+ IPMI_CC_OEM_SET_IN_PROCESS = 0x81,
+ IPMI_CC_OEM_PAYLOAD_DISABLE = 0x81,
+ IPMI_CC_OEM_LOST_ARBITRATION = 0x81,
+ IPMI_CC_OEM_INVALID_CABLE_PORT_INDEX = 0x81,
+ IPMI_CC_OEM_HEALTH_STATUS_NOT_AVAILABLE = 0x81,
+ IPMI_CC_OEM_BUS_ERROR = 0x82,
+ IPMI_CC_OEM_READ_ONLY = 0x82,
+ IPMI_CC_OEM_WRITE_ONLY = 0x82,
+ IPMI_CC_OEM_NO_CABLE_PRESENT = 0x82,
+ IPMI_CC_OEM_DATA_COLLECTION_IN_PROGRESS = 0x82,
+ IPMI_CC_OEM_PAYLOAD_ACTIVATION_LIMIT_REACH = 0x82,
+ IPMI_CC_OEM_NACK_ON_WRITE = 0x83,
+ IPMI_CC_OEM_DATA_COLLECTION_FAILED = 0x83,
+ IPMI_CC_OEM_CAN_NOT_ACTIVATE_WITH_ENCRYPTION = 0x83,
+ IPMI_CC_OEM_CAN_NOT_ACTIVATE_WITHOUT_ENCRYPTION = 0x84,
+ IPMI_CC_OEM_INVALID_CHECKSUM = 0x85,
+ IPMI_CC_OEM_NO_CABLED_PCIE_PORTS_AVAILABLE = 0xC2,
+};
+
+enum IPMI_RETURN_CODE_EXT
+{
+ IPMI_CC_INVALID_LUN = 0xC2,
+ IPMI_CC_STORGE_LEAK = 0xC4,
+ IPMI_CC_REQUEST_DATA_TRUNCATED = 0xC6,
+ IPMI_CC_REQUEST_DATA_FIELD_LENGTH_LIMIT_EXCEEDED = 0xC8,
+ IPMI_CC_CANNOT_RETURN_NUMBER_OF_REQUESTED_DATA_BYTES = 0xCA,
+ IPMI_CC_REQUEST_SENSOR_DATA_RECORD_NOT_FOUND = 0xCB,
+ IPMI_CC_DESTINATION_UNAVAILABLE = 0xD3,
+ IPMI_CC_PARAMETER_NOT_SUPPORT_IN_PRESENT_STATE = 0xD5,
+};
+
+constexpr unsigned char NETFUN_INTEL_APP_OEM = 0x3E;
+
+enum IPMI_NETFN_INTEL_OEM_APP_CMD
+{
+ MDR_STATUS = 0x20,
+ MDR_COMPLETE = 0x21,
+ MDR_EVENT = 0x22,
+ MDR_READ = 0x23,
+ MDR_WRITE = 0x24,
+ MDR_LOCK = 0x25,
+ MDRII_AGENT_STATUS = 0x30,
+ MDRII_GET_DIR = 0x31,
+ MDRII_GET_DATA_INFO = 0x32,
+ MDRII_LOCK_DATA = 0x33,
+ MDRII_UNLOCK_DATA = 0x34,
+ MDRII_GET_DATA_BLOCK = 0x35,
+ MDRII_SEND_DIR = 0x38,
+ MDRII_SEND_DATA_INFO_OFFER = 0x39,
+ MDRII_SEND_DATA_INFO = 0x3a,
+ MDRII_DATA_START = 0x3b,
+ MDRII_DATA_DONE = 0x3c,
+ MDRII_SEND_DATA_BLOCK = 0x3d,
+};
+
+enum class IPMINetFnIntelOemGeneralCmds
+{
+ GetSmSignal = 0x14,
+ SetSmSignal = 0x15,
+ BmcControlServices = 0xC0,
+ SetSensorOverride = 0xEE,
+};