summaryrefslogtreecommitdiffstats
path: root/src/include/usr/ipmi
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2015-02-11 17:25:44 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-23 13:34:44 -0600
commit07bb80e9281ed8aafbd283d5ab2c0f777e347b73 (patch)
treeb5970f8cc38dbddf3af745b2f492ff2f0e983a68 /src/include/usr/ipmi
parenta6fa07dacc102c62067e20f69a4c956ac6d1f625 (diff)
downloadtalos-hostboot-07bb80e9281ed8aafbd283d5ab2c0f777e347b73.tar.gz
talos-hostboot-07bb80e9281ed8aafbd283d5ab2c0f777e347b73.zip
enable IPMI interface for hostboot runtime (hbrt)
This will be used by the errlog code to send committed logs to the BMC, and by sensor code for read and writes. Change-Id: Ie1f8013dddea99af14bfe166d45e7a74f0806efe RTC: 120094 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15674 Tested-by: Jenkins Server Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/ipmi')
-rw-r--r--src/include/usr/ipmi/ipmi_reasoncodes.H1
-rw-r--r--src/include/usr/ipmi/ipmisel.H35
2 files changed, 20 insertions, 16 deletions
diff --git a/src/include/usr/ipmi/ipmi_reasoncodes.H b/src/include/usr/ipmi/ipmi_reasoncodes.H
index 6244b2d00..8040f934b 100644
--- a/src/include/usr/ipmi/ipmi_reasoncodes.H
+++ b/src/include/usr/ipmi/ipmi_reasoncodes.H
@@ -35,6 +35,7 @@ namespace IPMI
MOD_IPMISRV_REPLY = 0x02, // IPMI::respond
MOD_IPMISENSOR = 0x03, // IPMI::sensor
MOD_IPMIDCMI = 0x04, // IPMI::sensor
+ MOD_IPMIRT = 0x05, // rt IPMI::send/IPMI::sendrecv
};
enum IPMIReasonCode
diff --git a/src/include/usr/ipmi/ipmisel.H b/src/include/usr/ipmi/ipmisel.H
index 82d86bf6f..de2dd3218 100644
--- a/src/include/usr/ipmi/ipmisel.H
+++ b/src/include/usr/ipmi/ipmisel.H
@@ -202,8 +202,26 @@ namespace IPMISEL
delete eSelExtra;
}
};
+
+ /**
+ * @brief parse the msg and call send_esel to send the esel (handles if
+ * the SEL reservation is lost)
+ * @param[in] i_msg
+ */
+ void process_esel(msg_t *i_msg);
+
+ /**
+ * @brief do the actual ipmi calls to send the esel data to the bmc
+ * @param[in] i_data esel data
+ * @param[in] o_err any error generated during the send
+ * @param[in] o_cc ipmi completion code from last sendrecv
+ */
+ void send_esel(IPMISEL::eselInitData * i_data,
+ errlHndl_t &o_err, IPMI::completion_code &o_cc);
+
} // namespace IPMISEL
+#ifndef __HOSTBOOT_RUNTIME
class IpmiSEL
{
public:
@@ -238,27 +256,12 @@ class IpmiSEL
*/
void execute(void);
- /**
- * @brief parse the msg and call send_esel to send the esel (handles if
- * the SEL reservation is lost)
- * @param[in] i_msg
- */
- void process_esel(msg_t *i_msg) const;
-
- /**
- * @brief do the actual ipmi calls to send the esel data to the bmc
- * @param[in] i_data esel data
- * @param[in] o_err any error generated during the send
- * @param[in] o_cc ipmi completion code from last sendrecv
- */
- void send_esel(IPMISEL::eselInitData * i_data,
- errlHndl_t &o_err, IPMI::completion_code &o_cc) const;
-
msg_q_t iv_msgQ; //!< ipmi message queue
//Disallow copying of this class.
IpmiSEL& operator=(const IpmiSEL&);
IpmiSEL(const IpmiSEL&);
};
+#endif
#endif
OpenPOWER on IntegriCloud