summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf/plat/fapiPlatHwpExecutor.H
blob: 2fa1ab4eebad5520fc8db6dab9b1a1318dce9f6c (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
27
28
/**
 *  @file fapiPlatHwpExecutor.H
 *
 *  @brief Defines the FAPI PLAT HWP Executor Macro.
 *
 *  The PLAT HWP Executor macro is called by the FAPI HWP Executor macro when a
 *  PLAT invoker function or a HWP wants to execute a HWP. Each platform can
 *  modify the macro to do any platform specific work to execute the HWP (e.g.
 *  dlopening a shared library)
 */

#ifndef FAPIPLATHWPEXECUTOR_H_
#define FAPIPLATHWPEXECUTOR_H_

#include <fapiTestHwp.H>
#include <fapiTestHwpError.H>
#include <fapiTestHwpFfdc.H>

/**
 * @brief HWP Executor macro
 *
 * By default, this macro just calls the HWP directly. If this cannot be done
 * then the platform needs to modify
 */
#define FAPI_PLAT_EXEC_HWP(RC, FUNC, TARGET, _args_...) \
    RC = FUNC(TARGET, ##_args_)

#endif // FAPIPLATHWPEXECUTOR_H_
OpenPOWER on IntegriCloud