summaryrefslogtreecommitdiffstats
path: root/user_channel/channel_layer.hpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2018-11-28 11:02:43 -0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-01-11 16:59:29 +0000
commit583171207c4f9a091abe3f867cc415e7f9aa514b (patch)
tree66b0b2749541d4fea840ee00a684c585e362a678 /user_channel/channel_layer.hpp
parent54012504ba816fd0659b497a3c7e1c50f7c0f2d7 (diff)
downloadphosphor-host-ipmid-583171207c4f9a091abe3f867cc415e7f9aa514b.tar.gz
phosphor-host-ipmid-583171207c4f9a091abe3f867cc415e7f9aa514b.zip
ipmid: channel: add max transfer size property
Each channel can have a different maximum transfer size. This should be exposed so that it is easier to tell how many bytes it is possible to send or receive on a given channel. Change-Id: Ie277eb7a802edc1deeefe201a7560d371920f519 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'user_channel/channel_layer.hpp')
-rw-r--r--user_channel/channel_layer.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/user_channel/channel_layer.hpp b/user_channel/channel_layer.hpp
index abaa0bf..87e791c 100644
--- a/user_channel/channel_layer.hpp
+++ b/user_channel/channel_layer.hpp
@@ -225,6 +225,14 @@ EChannelSessSupported getChannelSessionSupport(const uint8_t chNum);
*/
int getChannelActiveSessions(const uint8_t chNum);
+/** @brief determines maximum transfer size for a channel
+ *
+ * @param[in] chNum - channel number
+ *
+ * @return maximum bytes that can be transferred on this channel
+ */
+size_t getChannelMaxTransferSize(uint8_t chNum);
+
/** @brief initializes channel management
*
* @return IPMI_CC_OK for success, others for failure.
OpenPOWER on IntegriCloud