|
| 1 | +/* IBM_PROLOG_BEGIN_TAG */ |
| 2 | +/* This is an automatically generated prolog. */ |
| 3 | +/* */ |
| 4 | +/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_read_erepair.C $ */ |
| 5 | +/* */ |
| 6 | +/* OpenPOWER HostBoot Project */ |
| 7 | +/* */ |
| 8 | +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ |
| 9 | +/* [+] International Business Machines Corp. */ |
| 10 | +/* */ |
| 11 | +/* */ |
| 12 | +/* Licensed under the Apache License, Version 2.0 (the "License"); */ |
| 13 | +/* you may not use this file except in compliance with the License. */ |
| 14 | +/* You may obtain a copy of the License at */ |
| 15 | +/* */ |
| 16 | +/* http://www.apache.org/licenses/LICENSE-2.0 */ |
| 17 | +/* */ |
| 18 | +/* Unless required by applicable law or agreed to in writing, software */ |
| 19 | +/* distributed under the License is distributed on an "AS IS" BASIS, */ |
| 20 | +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ |
| 21 | +/* implied. See the License for the specific language governing */ |
| 22 | +/* permissions and limitations under the License. */ |
| 23 | +/* */ |
| 24 | +/* IBM_PROLOG_END_TAG */ |
| 25 | +/// |
| 26 | +/// @file p9_io_xbus_read_erepair.C |
| 27 | +/// @brief Read eRepair. |
| 28 | +///---------------------------------------------------------------------------- |
| 29 | +/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com> |
| 30 | +/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com> |
| 31 | +/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com> |
| 32 | +/// *HWP Team : IO |
| 33 | +/// *HWP Level : 1 |
| 34 | +/// *HWP Consumed by : FSP:HB |
| 35 | +///---------------------------------------------------------------------------- |
| 36 | +/// |
| 37 | +/// @verbatim |
| 38 | +/// High-level procedure flow: |
| 39 | +/// |
| 40 | +/// A HWP that runs Read eRepair. This procedure reads the current bad |
| 41 | +/// lanes and passes by reference the lane numbers in a vector. |
| 42 | +/// |
| 43 | +/// Procedure Prereq: |
| 44 | +/// - System clocks are running. |
| 45 | +/// |
| 46 | +/// @endverbatim |
| 47 | +///---------------------------------------------------------------------------- |
| 48 | + |
| 49 | +// ---------------------------------------------------------------------------- |
| 50 | +// Includes |
| 51 | +// ---------------------------------------------------------------------------- |
| 52 | +#include "p9_io_xbus_read_erepair.H" |
| 53 | + |
| 54 | +// ---------------------------------------------------------------------------- |
| 55 | +// Procedure Function |
| 56 | +// ---------------------------------------------------------------------------- |
| 57 | + |
| 58 | + |
| 59 | +/** |
| 60 | + * @brief A HWP that runs Read eRepair. This procedure reads the current bad |
| 61 | + * lanes and passes by reference the lane numbers in a vector |
| 62 | + * @param[in] i_target Reference to Target |
| 63 | + * @param[out] o_bad_lanes Vector of bad lanes |
| 64 | + * @retval ReturnCode |
| 65 | + */ |
| 66 | +fapi2::ReturnCode |
| 67 | +p9_io_xbus_read_erepair(const fapi2::Target < fapi2::TARGET_TYPE_XBUS >& i_target, |
| 68 | + std::vector< uint8_t >& o_bad_lanes) |
| 69 | +{ |
| 70 | + FAPI_IMP("Entering..."); |
| 71 | + fapi2::ReturnCode rc = 0; |
| 72 | +#if 0 |
| 73 | + |
| 74 | +fapi_try_exit: |
| 75 | +#endif |
| 76 | + FAPI_IMP("Exiting..."); |
| 77 | + return fapi2::FAPI2_RC_SUCCESS; |
| 78 | +} |
| 79 | + |
0 commit comments