blob: d10e8f4a33756378ad9e51433bac9c2e9b6e0659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* @file fapiHwpExecutor.H
*
* @brief Defines the FAPI HWP Executor Macro.
*
* The FAPI HWP Executor macro is called when a PLAT invoker function or a HWP
* wants to execute a HWP.
*/
#ifndef FAPIHWPEXECUTOR_H_
#define FAPIHWPEXECUTOR_H_
#include <fapiPlatHwpExecutor.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) and then calls a function
* on the ReturnCode to store the error target if there is an error
*/
#define FAPI_EXEC_HWP(RC, FUNC, TARGET, _args_...) \
FAPI_PLAT_EXEC_HWP(RC, FUNC, TARGET, ##_args_); \
RC.setErrTarget(TARGET)
#endif // FAPIHWPEXECUTOR_H_
|