diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2016-08-26 10:03:53 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-08-30 17:22:01 -0400 |
| commit | ab651844afcc9b0ac6a1c74779da555b62342bf1 (patch) | |
| tree | a2237315dc22c11545d00f4f97aea7645028f5ef /src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C | |
| parent | 85cb1f757c9de446ab4e1f460e206091242b2c49 (diff) | |
| download | blackbird-hostboot-ab651844afcc9b0ac6a1c74779da555b62342bf1.tar.gz blackbird-hostboot-ab651844afcc9b0ac6a1c74779da555b62342bf1.zip | |
Remove last of old hwpf directory
Remove all of the old fapi1 HWPs from P8
Update makefiles/code to not include old hwpf headers
Change-Id: Idc840554721f68b0af3b6ee6c7ad84f5df258e60
RTC: 146345
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28844
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C')
| -rw-r--r-- | src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C b/src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C deleted file mode 100644 index 491e0c19c..000000000 --- a/src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C +++ /dev/null @@ -1,77 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/usr/hwpf/hwp/mvpd_accessors/getControlCapableData.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2014,2015 */ -/* [+] 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 */ -// $ID: getControlCapableData.C, v 1.1 2014/9/4 09:05:00 eliner Exp $ -/** - * @file getControlCapable.C - * - * @brief MBvpd accessor for the ATTR_VPD_POWER_CONTROL_CAPABLE attributes - */ - -#include <stdint.h> -#include <fapi.H> -#include <getControlCapableData.H> - -extern "C" -{ -using namespace fapi; -fapi::ReturnCode getControlCapableData( - const fapi::Target &i_mbTarget, - uint8_t & o_val) -{ - fapi::ReturnCode l_rc; - - FAPI_DBG("getControlCapableData: start"); - do { - // ATTR_VPD_POWER_CONTROL_CAPABLE is at the membuf level, but the - // getMBvpdAttr() function takes a mba, so need to do a - // conversion - std::vector<fapi::Target> l_mbas; - l_rc = fapiGetChildChiplets( i_mbTarget, - fapi::TARGET_TYPE_MBA_CHIPLET, - l_mbas ); - if( l_rc ) - { - FAPI_ERR("getControlCapableData: fapiGetChildChiplets failed"); - break; - } - - // If we don't have any functional MBAs then we will fail in - // the other function so just return a default value here - if( l_mbas.empty() ) - { - o_val = fapi::ENUM_ATTR_VPD_POWER_CONTROL_CAPABLE_NONE; - break; - } - - // Call a VPD Accessor HWP to get the data - FAPI_EXEC_HWP(l_rc, getMBvpdAttr, - l_mbas[0], ATTR_VPD_POWER_CONTROL_CAPABLE, - &o_val, sizeof(ATTR_VPD_POWER_CONTROL_CAPABLE_Type)); - } while(0); - FAPI_DBG("getControlCapableData: end"); - - return l_rc; -} -} |

