summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2018-11-07 11:03:30 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-11-08 12:57:36 -0600
commitfffa79ecb0c701ee029eae8ffb33483701e4c117 (patch)
tree78f0f4d0117bc86e73739b0a11d751a2ec92a4ce /src/import/hwpf
parent116af97857bb9a4e526075d3e21e169eb4f0f5d7 (diff)
downloadtalos-hostboot-fffa79ecb0c701ee029eae8ffb33483701e4c117.tar.gz
talos-hostboot-fffa79ecb0c701ee029eae8ffb33483701e4c117.zip
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 <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf')
-rw-r--r--src/import/hwpf/fapi2/include/plat/mmio_access.H113
-rw-r--r--src/import/hwpf/fapi2/include/plat/plat_mmio_access.H33
-rw-r--r--src/import/hwpf/fapi2/include/plat/subroutine_executor.H56
3 files changed, 0 insertions, 202 deletions
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 <vector>
-#include <iostream>
-#include <iomanip>
-
-#include <plat_mmio_access.H>
-#include <fapi2_mmio_access.H>
-
-namespace fapi2
-{
-
-/// @brief Reads data via mmio from the target
-template< TargetType K, typename V >
-inline ReturnCode getMMIO(const Target<K, V>& i_target,
- const uint64_t i_mmioAddr,
- const size_t i_transSize,
- std::vector<uint8_t>& 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<K, V>& i_target,
- const uint64_t i_mmioAddr,
- const size_t i_transSize,
- const std::vector<uint8_t>& 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 <fapi2_subroutine_executor.H>
-
-#include <plat_trace.H>
-
-/**
- * @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
OpenPOWER on IntegriCloud