diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2014-12-01 14:40:34 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-12-15 11:43:16 -0600 |
commit | 6f296e894cfd30142b625b5ab12fb3226a57c06b (patch) | |
tree | f304041c277349cf1f352b03e6d79e416ed311e5 /src/include/runtime | |
parent | 5baa7182e4113352a7b83714c9ee6fafbd88ff16 (diff) | |
download | talos-hostboot-6f296e894cfd30142b625b5ab12fb3226a57c06b.tar.gz talos-hostboot-6f296e894cfd30142b625b5ab12fb3226a57c06b.zip |
clock_gettime support for HBRT
Change-Id: Iab8d113c00609d7b92fb2fd943b57c9a21671f11
RTC: 119002
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14668
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/runtime')
-rw-r--r-- | src/include/runtime/interface.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 69696cfc0..52717fbc3 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -40,7 +40,7 @@ #ifndef __HOSTBOOT_RUNTIME_INTERFACE_VERSION_ONLY #include <stdint.h> - +#include <time.h> /** @typedef hostInterfaces_t * @brief Interfaces provided by the underlying environment (ex. Sapphire). * @@ -142,6 +142,19 @@ typedef struct hostInterfaces */ void (*report_failure)( uint64_t i_status, uint64_t i_partId ); + /** + * @brief Reads the clock value from a POSIX clock. + * @param[in] i_clkId - The clock ID to read. + * @param[out] o_tp - The timespec struct to store the clock value in. + * + * @return 0 or -(errno). + * @retval 0 - SUCCESS. + * @retval -EINVAL - Invalid clock requested. + * @retval -EFAULT - NULL ptr given for timespec struct. + * + */ + int (*clock_gettime)(clockid_t i_clkId, timespec_t* o_tp); + // Reserve some space for future growth. void (*reserved[32])(void); |