From fffa79ecb0c701ee029eae8ffb33483701e4c117 Mon Sep 17 00:00:00 2001 From: Christian Geddes Date: Wed, 7 Nov 2018 11:03:30 -0600 Subject: Remove all files in src/import/hwpf/fapi2/include/plat/ This directory is mirrored from the EKB. This directory should never get mirrored downstream to any platform repositories. The files were mistakenly mirrored and merged into hostboot. Change-Id: I5555dc65c197b9d2eef8d25990c7d95a15731cf6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68503 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Ilya Smirnov Reviewed-by: Nicholas E. Bofferding Reviewed-by: Daniel M. Crowell --- src/import/hwpf/fapi2/include/plat/mmio_access.H | 113 --------------------- .../hwpf/fapi2/include/plat/plat_mmio_access.H | 33 ------ .../hwpf/fapi2/include/plat/subroutine_executor.H | 56 ---------- 3 files changed, 202 deletions(-) delete mode 100644 src/import/hwpf/fapi2/include/plat/mmio_access.H delete mode 100644 src/import/hwpf/fapi2/include/plat/plat_mmio_access.H delete mode 100644 src/import/hwpf/fapi2/include/plat/subroutine_executor.H (limited to 'src/import/hwpf') diff --git a/src/import/hwpf/fapi2/include/plat/mmio_access.H b/src/import/hwpf/fapi2/include/plat/mmio_access.H deleted file mode 100644 index ea3c6f962..000000000 --- a/src/import/hwpf/fapi2/include/plat/mmio_access.H +++ /dev/null @@ -1,113 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/hwpf/fapi2/include/plat/mmio_access.H $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2018 */ -/* [+] 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 i2c_access.H -/// -/// @brief I2C access functions that needs to be specialized for -/// platform implementation. -/// -/// NOTE : This is just an example implementation for compiling against - -#ifndef _FAPI2_MMIO_ACCESS_H_ -#define _FAPI2_MMIO_ACCESS_H_ - -#include -#include -#include - -#include -#include - -namespace fapi2 -{ - -/// @brief Reads data via mmio from the target -template< TargetType K, typename V > -inline ReturnCode getMMIO(const Target& i_target, - const uint64_t i_mmioAddr, - const size_t i_transSize, - std::vector& o_data) -{ - - // Platform suggestion: - // - Verify o_data.size() is a multiple of i_transSize - - o_data.assign( o_data.size(), 0 ); - - for (size_t i = 0; i < o_data.size(); i++) - { - o_data[i] = i; - } - - std::cout << std::hex << " getMMIO " - << "target: {" << i_target.getType() << "," - << i_target.get() << "}; " - << "i_mmioAddr: " << i_mmioAddr << "; " - << "i_transSize: " << i_transSize << "; " - << "l_byteSize: " << o_data.size() << "; " - << "o_data: "; - - for ( uint8_t l_byte = 0; l_byte < o_data.size(); l_byte++ ) - { - std::cout << std::setfill('0') << std::setw(2) << std::hex << +o_data[l_byte]; - } - - std::cout << "; " << std::dec << std::endl; - - return FAPI2_RC_SUCCESS; -} - -/// @brief Writes data via mmio to the target. -template< TargetType K, typename V > -inline ReturnCode putMMIO(const Target& i_target, - const uint64_t i_mmioAddr, - const size_t i_transSize, - const std::vector& i_data) -{ - - // Platform suggestion: - // - Verify o_data.size() is a multiple of i_transSize - - std::cout << std::hex << " putMMIO " - << "target: {" << i_target.getType() << "," - << i_target.get() << "}; " - << "i_mmioAddr: " << i_mmioAddr << "; " - << "i_transSize: " << i_transSize << "; " - << "l_byteSize: " << i_data.size() << "; " - << "i_data: "; - - for ( uint8_t l_byte = 0; l_byte < i_data.size(); l_byte++ ) - { - std::cout << std::setfill('0') << std::setw(2) << std::hex << +i_data[l_byte]; - } - - std::cout << "; " << std::dec << std::endl; - - return FAPI2_RC_SUCCESS; -} - -}; - - -#endif // _FAPI2_MMIO_ACCESS_H_ diff --git a/src/import/hwpf/fapi2/include/plat/plat_mmio_access.H b/src/import/hwpf/fapi2/include/plat/plat_mmio_access.H deleted file mode 100644 index 9f7c1599e..000000000 --- a/src/import/hwpf/fapi2/include/plat/plat_mmio_access.H +++ /dev/null @@ -1,33 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/hwpf/fapi2/include/plat/plat_mmio_access.H $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2018 */ -/* [+] 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 */ -#ifndef _FAPI2_PLAT_MMIO_ACCESS_H_ -#define _FAPI2_PLAT_MMIO_ACCESS_H_ - -namespace fapi2 -{ - -}; - -#endif // _FAPI2_PLAT_MMIO_ACCESS_H_ diff --git a/src/import/hwpf/fapi2/include/plat/subroutine_executor.H b/src/import/hwpf/fapi2/include/plat/subroutine_executor.H deleted file mode 100644 index aaa0cf3cd..000000000 --- a/src/import/hwpf/fapi2/include/plat/subroutine_executor.H +++ /dev/null @@ -1,56 +0,0 @@ -/* 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 - -#include - -/** - * @brief Subroutine Executor macro example code - Platforms will need to - * implement as needed for their enviroment. - * - * 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, FUNC, _args...) \ - { \ - FAPI_DBG("executing FAPI_PLAT_CALL_SUBROUTINE macro"); \ - RC = FUNC(_args); \ - } - -#endif -- cgit v1.2.1