summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H')
-rw-r--r--src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H b/src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H
index 7018e6280..63b1dc218 100644
--- a/src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H
+++ b/src/include/usr/hwpf/hwp/fapiHwpExecInitFile.H
@@ -32,6 +32,7 @@
* ------ -------------- ---------- ----------- ----------------------------
* camvanng 09/29/2011 Created.
* andrewg 11/16/2011 Refactor includes with initfile compiler
+ * camvanng 11/16/2011 Define function pointer to HWP
*
*/
@@ -46,6 +47,10 @@
extern "C"
{
+//Provided for platforms that need to cast a generic function pointer into a
+//function pointer of the correct type to call the HWP.
+typedef fapi::ReturnCode (*fapiHwpExecInitFile_FP_t)(const fapi::Target & i_Target,
+ const char * i_file);
/**
* @brief HWP to execute an initfile.
*
@@ -54,7 +59,8 @@ extern "C"
*
* @return ReturnCode
*/
-fapi::ReturnCode hwpExecInitFile(const fapi::Target & i_chip, const char * i_file);
+fapi::ReturnCode fapiHwpExecInitFile(const fapi::Target & i_Target,
+ const char * i_file);
} // extern "C"
OpenPOWER on IntegriCloud