diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-10-29 16:50:08 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-07 14:58:22 -0600 |
commit | c46a0d9db4701cca885329a29adf589da75f0ba7 (patch) | |
tree | 06acb104a582182de2c0093d1eb04310df7a735f /src/include/runtime | |
parent | 61716e5c9f9ffd3acc5169688739d223c0344a93 (diff) | |
download | talos-hostboot-c46a0d9db4701cca885329a29adf589da75f0ba7.tar.gz talos-hostboot-c46a0d9db4701cca885329a29adf589da75f0ba7.zip |
Runtime LidMgr.
Change-Id: Ib456f3a41d79775a2af027e0bf80e36ce1d49232
RTC: 76679
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6971
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')
-rw-r--r-- | src/include/runtime/interface.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 7dd49d202..b5d55acaa 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -59,13 +59,13 @@ typedef struct hostInterfaces /** realloc */ void* (*realloc)(void*, size_t); - /** sendErrorLog + /** sendErrorLog * @param[in] plid Platform Log identifier * @param[in] data size in bytes * @param[in] pointer to data * @return 0 on success else error code */ - int (*sendErrorLog)(uint32_t,uint32_t,void *); + int (*sendErrorLog)(uint32_t,uint32_t,void *); /** Scan communication read * @param[in] chip_id (based on devtree defn) @@ -83,6 +83,26 @@ typedef struct hostInterfaces */ int (*scom_write)(uint32_t, uint32_t, void* ); + /** lid_load + * Load a LID from PNOR, FSP, etc. + * + * @param[in] LID number. + * @param[out] Allocated buffer for LID. + * @param[out] Size of LID (in bytes). + * + * @return 0 on success, else RC. + */ + int (*lid_load)(uint32_t, void**, size_t*); + + /** lid_unload + * Release memory from previously loaded LID. + * + * @param[in] Allocated buffer for LID to release. + * + * @return 0 on success, else RC. + */ + int (*lid_unload)(void*); + } hostInterfaces_t; typedef struct runtimeInterfaces |