summaryrefslogtreecommitdiffstats
path: root/app/channel.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-10-26 11:11:14 -0700
committerPatrick Venture <venture@google.com>2017-10-26 14:01:40 -0700
commit5794fcf6f311068ef88a0cb2bd838953f08c3223 (patch)
tree5cfb6f5eadef317048291a966aac19758f03d6fa /app/channel.hpp
parent5e6ac715611ab118d243318ea44523cc67de77c4 (diff)
downloadphosphor-host-ipmid-5794fcf6f311068ef88a0cb2bd838953f08c3223.tar.gz
phosphor-host-ipmid-5794fcf6f311068ef88a0cb2bd838953f08c3223.zip
apphandler: channel: split out commands
I split out the channel commands into their own subordinate file from the apphandler.cpp. There are three commands in apphandler for the channel information. There are other commands in the transporthandler that correlate. Moving this is step one in a larger task to enable multiple channels. Change-Id: I2e434a1da942325fc420079415edb39622f4e346 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'app/channel.hpp')
-rw-r--r--app/channel.hpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/app/channel.hpp b/app/channel.hpp
new file mode 100644
index 0000000..1391d62
--- /dev/null
+++ b/app/channel.hpp
@@ -0,0 +1,59 @@
+#include "ipmid.hpp"
+
+/** @brief The set channel access IPMI command.
+ *
+ * @param[in] netfn
+ * @param[in] cmd
+ * @param[in] request
+ * @param[in,out] response
+ * @param[out] data_len
+ * @param[in] context
+ *
+ * @return IPMI_CC_OK on success, non-zero otherwise.
+ */
+ipmi_ret_t ipmi_set_channel_access(
+ ipmi_netfn_t netfn,
+ ipmi_cmd_t cmd,
+ ipmi_request_t request,
+ ipmi_response_t response,
+ ipmi_data_len_t data_len,
+ ipmi_context_t context);
+
+/** @brief The get channel access IPMI command.
+ *
+ * @param[in] netfn
+ * @param[in] cmd
+ * @param[in] request
+ * @param[in,out] response
+ * @param[out] data_len
+ * @param[in] context
+ *
+ * @return IPMI_CC_OK on success, non-zero otherwise.
+ */
+ipmi_ret_t ipmi_get_channel_access(
+ ipmi_netfn_t netfn,
+ ipmi_cmd_t cmd,
+ ipmi_request_t request,
+ ipmi_response_t response,
+ ipmi_data_len_t data_len,
+ ipmi_context_t context);
+
+/** @brief The get channel info IPMI command.
+ *
+ * @param[in] netfn
+ * @param[in] cmd
+ * @param[in] request
+ * @param[in,out] response
+ * @param[out] data_len
+ * @param[in] context
+ *
+ * @return IPMI_CC_OK on success, non-zero otherwise.
+ */
+ipmi_ret_t ipmi_app_channel_info(
+ ipmi_netfn_t netfn,
+ ipmi_cmd_t cmd,
+ ipmi_request_t request,
+ ipmi_response_t response,
+ ipmi_data_len_t data_len,
+ ipmi_context_t context);
+
OpenPOWER on IntegriCloud