summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/ipmi/ipmiif.H4
-rw-r--r--src/include/usr/ipmi/ipmisel.H9
2 files changed, 12 insertions, 1 deletions
diff --git a/src/include/usr/ipmi/ipmiif.H b/src/include/usr/ipmi/ipmiif.H
index d94e5d4a2..55546d13e 100644
--- a/src/include/usr/ipmi/ipmiif.H
+++ b/src/include/usr/ipmi/ipmiif.H
@@ -6,6 +6,7 @@
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2012,2017 */
+/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -245,6 +246,9 @@ namespace IPMI
// Storage messages
+ inline const command_t get_sel_time(void)
+ { return std::make_pair(NETFUN_STORAGE, 0x48); }
+
inline const command_t set_sel_time(void)
{ return std::make_pair(NETFUN_STORAGE, 0x49); }
diff --git a/src/include/usr/ipmi/ipmisel.H b/src/include/usr/ipmi/ipmisel.H
index 4509130f4..caf62f6e4 100644
--- a/src/include/usr/ipmi/ipmisel.H
+++ b/src/include/usr/ipmi/ipmisel.H
@@ -5,7 +5,8 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2016 */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
+/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -312,6 +313,12 @@ namespace IPMISEL
void send_esel(IPMISEL::eselInitData * i_data,
errlHndl_t &o_err, IPMI::completion_code &o_cc);
+ /**
+ * @brief read the SEL time
+ * @return time from unix epoch or 0 on error
+ */
+ uint32_t get_sel_time();
+
} // namespace IPMISEL
#ifndef __HOSTBOOT_RUNTIME
OpenPOWER on IntegriCloud