summaryrefslogtreecommitdiffstats
path: root/src/include/runtime/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/runtime/interface.h')
-rw-r--r--src/include/runtime/interface.h24
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
OpenPOWER on IntegriCloud