diff options
Diffstat (limited to 'src/include/usr/util')
| -rw-r--r-- | src/include/usr/util/util_reasoncodes.H | 3 | ||||
| -rw-r--r-- | src/include/usr/util/utilcommonattr.H | 60 |
2 files changed, 63 insertions, 0 deletions
diff --git a/src/include/usr/util/util_reasoncodes.H b/src/include/usr/util/util_reasoncodes.H index 77fd1e628..8b1e90e8a 100644 --- a/src/include/usr/util/util_reasoncodes.H +++ b/src/include/usr/util/util_reasoncodes.H @@ -51,6 +51,7 @@ namespace Util UTIL_MCL_REL_MEM = 0x11, // MasterContainerLidMgr::releaseMem UTIL_MCL_PROCESS_COMP = 0x12, // MasterContainerLidMgr::processComponent UTIL_MCL_VERIFY_EXT = 0x13, // MasterContainerLidMgr::verifyExtend + UTIL_MOD_GET_OBUS_PLL_BUCKET = 0x14, // UtilCommonAttr::getObusPllBucket }; enum ReasonCode @@ -80,6 +81,8 @@ namespace Util UTIL_MM_BLOCK_UNMAP_FAILED = UTIL_COMP_ID | 0x17, UTIL_MCL_SIZE_MISMATCH = UTIL_COMP_ID | 0x18, UTIL_MCL_COMPID_MISMATCH = UTIL_COMP_ID | 0x19, + UTIL_ERC_NO_FREQ_LIST = UTIL_COMP_ID | 0x1A, + UTIL_ERC_NO_MATCHING_FREQ = UTIL_COMP_ID | 0x1B, }; }; diff --git a/src/include/usr/util/utilcommonattr.H b/src/include/usr/util/utilcommonattr.H new file mode 100644 index 000000000..24aa12df7 --- /dev/null +++ b/src/include/usr/util/utilcommonattr.H @@ -0,0 +1,60 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/util/utilcommonattr.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 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 */ +#ifndef UTILCOMMONATTR_H +#define UTILCOMMONATTR_H + +/** + * @file utilcommonattr.H + * + * @brief Common attribute interfaces shared between components + * + */ + +/*****************************************************************************/ +// I n c l u d e s +/*****************************************************************************/ +#include <stdint.h> +#include <errl/errlentry.H> + +#include <targeting/common/target.H> + +namespace Util +{ + + /** + * @brief Get the OBUS PLL bucket that corresponds to index and target + * @param[in] i_chipTarget Target pointer to chip + * @param[out] i_o_bucket_val corresponding number in PLL frequency list + * @param[in] i_index The index number of the OBUS (0,1,2,3) + * + * @return errlHndl_t Error log if unable to get bucket value + */ + errlHndl_t getObusPllBucket(TARGETING::Target * i_chipTarget, + uint8_t &o_bucket_val, + const uint8_t i_index); + +}; // namespace Util + +#endif // UTILCOMMONATTR_H |

