summaryrefslogtreecommitdiffstats
path: root/src/usr/ipmi/ipmibt.H
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2014-12-22 10:41:03 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-16 14:53:56 -0600
commit740885df9ac6bcb67792912086ed853751b43a9b (patch)
tree49cfe443729e5b082e215c0c86cbccfd9aa8616a /src/usr/ipmi/ipmibt.H
parentdde72377760a5b03d1c143f42dcf2635cca46b91 (diff)
downloadtalos-hostboot-740885df9ac6bcb67792912086ed853751b43a9b.tar.gz
talos-hostboot-740885df9ac6bcb67792912086ed853751b43a9b.zip
IPMI SMS support and initial event handlers
Change-Id: Idf8f4f251b76be9bc253691098bd3bd376b64ca6 RTC: 116600 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14994 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/ipmi/ipmibt.H')
-rw-r--r--src/usr/ipmi/ipmibt.H32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/usr/ipmi/ipmibt.H b/src/usr/ipmi/ipmibt.H
index 75c43395f..0a757707a 100644
--- a/src/usr/ipmi/ipmibt.H
+++ b/src/usr/ipmi/ipmibt.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -73,6 +73,7 @@ namespace IPMI
///
/// @brief complete the processing when a response arrives
+ /// @param[in] i_msgQ, the resource providers message queue
/// @return void
/// @note we're not pure abstract as we want to be able to
/// instantiate an object of BTMessage for reading.
@@ -112,6 +113,7 @@ namespace IPMI
///
/// @brief complete the processing when a response arrives
+ /// @param[in] i_msgQ, the resource providers message queue
/// @return void
///
void response(msg_q_t i_msgQ);
@@ -134,7 +136,7 @@ namespace IPMI
///
/// @brief BTSyncMessage dtor
///
- ~BTAsyncMessage(void)
+ virtual ~BTAsyncMessage(void)
{ delete[] iv_data; }
///
@@ -146,6 +148,32 @@ namespace IPMI
///
/// @brief complete the processing when a response arrives
+ /// @param[in] i_msgQ, the resource providers message queue
+ /// @return void
+ ///
+ void response(msg_q_t i_msgQ);
+ };
+
+ // IPMI BT asynchronous read event message. Reading events is sort
+ // of an asynch message; we fire the request from the resource
+ // provider thread (so we don't want to wait.) The response is
+ // special in that we don't just delete ourselves, but rather turn
+ // the response (OEM SEL) into a message for an event handler.
+ class BTAsyncReadEventMessage : public BTAsyncMessage
+ {
+ public:
+ ///
+ /// @brief BTASyncReadEventMessage ctor
+ /// @param[in] i_cmd, the network function & command
+ /// @param[in] i_len, the length of the data
+ /// @param[in] i_data, the data (new'd space)
+ ///
+ BTAsyncReadEventMessage(const command_t& i_cmd,
+ const uint8_t i_len, uint8_t* i_data);
+
+ ///
+ /// @brief complete the processing when a response arrives
+ /// @param[in] i_msgQ, the resource providers message queue
/// @return void
///
void response(msg_q_t i_msgQ);
OpenPOWER on IntegriCloud