summaryrefslogtreecommitdiffstats
path: root/importtemp/fapi2/include/fapi2_hwp_executor.H
diff options
context:
space:
mode:
Diffstat (limited to 'importtemp/fapi2/include/fapi2_hwp_executor.H')
-rw-r--r--importtemp/fapi2/include/fapi2_hwp_executor.H24
1 files changed, 24 insertions, 0 deletions
diff --git a/importtemp/fapi2/include/fapi2_hwp_executor.H b/importtemp/fapi2/include/fapi2_hwp_executor.H
new file mode 100644
index 00000000..e92d1427
--- /dev/null
+++ b/importtemp/fapi2/include/fapi2_hwp_executor.H
@@ -0,0 +1,24 @@
+///
+/// @file fapi2_hwp_executor.H
+///
+/// @brief Defines the FAPI2 HWP Executor Macro.
+///
+/// The FAPI2 HWP Executor macro is called when a PLAT invoker function or a HWP
+/// wants to execute a HWP.
+///
+
+#ifndef FAPI2HWPEXECUTOR_H_
+#define FAPI2HWPEXECUTOR_H_
+
+#include <hwp_executor.H>
+
+/**
+ * @brief HWP Executor macro
+ *
+ * This macro calls a PLAT macro which will do any platform specific work to
+ * execute the HWP (e.g. dlopening a shared library)
+ */
+#define FAPI_EXEC_HWP(RC, FUNC, _args_...) \
+ FAPI_PLAT_EXEC_HWP(RC, FUNC, ##_args_)
+
+#endif // FAPI2HWPEXECUTOR_H_
OpenPOWER on IntegriCloud