diff options
author | Saravanan Palanisamy <saravanan.palanisamy@intel.com> | 2019-03-04 18:34:44 +0530 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-04-09 04:29:26 +0000 |
commit | b5a0f16dca8324492a8b2bd69c82f3438e02fa16 (patch) | |
tree | 8a84afd4d7251ede90f904da045b3657af7124d1 /user_channel/channel_layer.hpp | |
parent | bea5392552b3b6445adf093b97c97512d69db160 (diff) | |
download | phosphor-host-ipmid-b5a0f16dca8324492a8b2bd69c82f3438e02fa16.tar.gz phosphor-host-ipmid-b5a0f16dca8324492a8b2bd69c82f3438e02fa16.zip |
Add: Get channel payload support command
Implemented Get Channel Payload Support command (IPMI Spec sec 24.8)
The same is implemented under channel commands, and will be
available for both Host & Net ipmid. Uses channel configuration
to differentiate between session / session-less channel
Tested-by:
1. Verified command executed successfully for session
based channel
ipmitool raw 6 0x4E 0x1 // Command
03 00 15 00 00 00 00 00 // Response
2. Verified sessionless channel error is returned.
Change-Id: I8b294234415b4467aeae6c23c192750471536f4e
Signed-off-by: Saravanan Palanisamy <saravanan.palanisamy@intel.com>
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'user_channel/channel_layer.hpp')
-rw-r--r-- | user_channel/channel_layer.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/user_channel/channel_layer.hpp b/user_channel/channel_layer.hpp index 94570fb..1a8d64c 100644 --- a/user_channel/channel_layer.hpp +++ b/user_channel/channel_layer.hpp @@ -112,6 +112,24 @@ enum class EAuthType : uint8_t oem = (1 << 0x5), }; +// TODO: Remove duplicate 'PayloadType' definition from netipmid's message.hpp +// to phosphor-ipmi-host/include +/** + * @enum Payload Types (refer spec sec 13.27.3) + */ +enum class PayloadType : uint8_t +{ + IPMI = 0x00, + SOL = 0x01, + OPEN_SESSION_REQUEST = 0x10, + OPEN_SESSION_RESPONSE = 0x11, + RAKP1 = 0x12, + RAKP2 = 0x13, + RAKP3 = 0x14, + RAKP4 = 0x15, + INVALID = 0xFF, +}; + /** * @enum Access mode for channel access set/get (refer spec * sec 22.22 - request byte 2[7:6]) |