diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2014-01-17 15:29:40 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-02-06 17:39:51 -0600 |
commit | 6155c62ab8eae064a0160bf8c042953637113d66 (patch) | |
tree | 51e52b7b20e92ed317fc939b9ebae596f7e80c58 /src/include/runtime/interface.h | |
parent | 468b248f8998376a38c7cbfe14a8568f3245bea6 (diff) | |
download | talos-hostboot-6155c62ab8eae064a0160bf8c042953637113d66.tar.gz talos-hostboot-6155c62ab8eae064a0160bf8c042953637113d66.zip |
HBRT: Add version to interface struct.
Change-Id: Ifd02f285b97f6177e3ff8ed8d62f47fada28ab8b
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8144
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@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/runtime/interface.h')
-rw-r--r-- | src/include/runtime/interface.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index dfe6a93d6..0674ce697 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013 */ +/* COPYRIGHT International Business Machines Corp. 2013,2014 */ /* */ /* p1 */ /* */ @@ -33,6 +33,9 @@ * * @note This file must be in C rather than C++. */ +/** Current interface version. */ +#define HOSTBOOT_RUNTIME_INTERFACE_VERSION 1 +#ifndef __HOSTBOOT_RUNTIME_INTERFACE_VERSION_ONLY #include <stdint.h> @@ -44,6 +47,9 @@ */ typedef struct hostInterfaces { + /** Interface version. */ + uint64_t interfaceVersion; + /** Put a string to the console. */ void (*puts)(const char*); /** Critical failure in runtime execution. */ @@ -105,21 +111,32 @@ typedef struct hostInterfaces */ int (*lid_unload)(void*); - /** Get address of VPD image - * @return physical address of VPD image - */ - uint64_t (*get_vpd_image_addr)(); + /** Get the address of a reserved memory region by its devtree name. + * + * @param[in] Devtree name (ex. "ibm,hbrt-vpd-image") + * @return physical address of region (or NULL). + **/ + uint64_t (*get_reserved_mem)(const char*); + + // Reserve some space for future growth. + void (*reserved[32])(void); } hostInterfaces_t; typedef struct runtimeInterfaces { + /** Interface version. */ + uint64_t interfaceVersion; + /** Execute CxxTests that may be contained in the image. * * @param[in] - Pointer to CxxTestStats structure for results reporting. */ void (*cxxtestExecute)(void*); + // Reserve some space for future growth. + void (*reserved[32])(void); + } runtimeInterfaces_t; #ifdef __HOSTBOOT_RUNTIME @@ -127,4 +144,5 @@ extern hostInterfaces_t* g_hostInterfaces; runtimeInterfaces_t* getRuntimeInterfaces(); #endif -#endif +#endif //__HOSTBOOT_RUNTIME_INTERFACE_VERSION_ONLY +#endif //__RUNTIME__INTERFACE_H |