diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-06-21 13:42:37 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-08-28 18:08:15 -0400 |
commit | f51ece528ea60265d6dcbda75cdc2aec574fa06d (patch) | |
tree | e1bae7ee9bee9532c0f871a43e974bbf5d5e35a9 /src/import/hwpf/fapi2/include | |
parent | eb0977a8d286c0b858b0b5e9236261a47d2c9230 (diff) | |
download | talos-hostboot-f51ece528ea60265d6dcbda75cdc2aec574fa06d.tar.gz talos-hostboot-f51ece528ea60265d6dcbda75cdc2aec574fa06d.zip |
Add FAPI_CALL_SUBROUTINE macro
Change-Id: Icaef8792e225d7f3ae5a3296ccb24537f2e34ac6
RTC:154384
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29757
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45227
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include')
-rw-r--r-- | src/import/hwpf/fapi2/include/plat/subroutine_executor.H | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/plat/subroutine_executor.H b/src/import/hwpf/fapi2/include/plat/subroutine_executor.H new file mode 100644 index 000000000..45e7978de --- /dev/null +++ b/src/import/hwpf/fapi2/include/plat/subroutine_executor.H @@ -0,0 +1,55 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/hwpf/fapi2/include/plat/subroutine_executor.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file subroutine_executor.H +/// +/// @brief Defines the PLAT Subroutine Executor Macro. +/// +/// The PLAT Subroutine Executor macro is called by +/// FAPI_CALL_SUBROUTINE when a hardware procedure when +/// a subroutine is needed, typicaly a chipop function. +/// +/// Example implementation of plat code + +#ifndef SUBROUTINEEXECUTOR_H_ +#define SUBROUTINEEXECUTOR_H_ + +#include <plat_subroutine_executor.H> +#include <fapi2_subroutine_executor.H> + +#include <plat_trace.H> + +/** + * @brief Subroutine Executor macro + * + * This macro calls a PLAT macro which will do any platform specific work to + * execute the Subroutine (e.g. dlopening a shared library) + */ +#define FAPI_PLAT_CALL_SUBROUTINE(RC, CHIPOP, FUNC, _args_...) \ + { \ + FAPI_INF("executing FAPI_PLAT_CALL_SUBROUTINE marco"); \ + } + +#endif |