summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting/common
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2015-12-10 15:55:51 -0600
committerWILLIAM G. HOFFA <wghoffa@us.ibm.com>2016-02-26 08:49:33 -0600
commit581462957e6df9ea663914fabf65f9f77b4e4bfa (patch)
tree26602a2bccd1a3bfdc95d8c935ae74cecd155aed /src/include/usr/targeting/common
parenta9e3b39d8520ff5c0356e85d4ce27ebf8f9a5fef (diff)
downloadtalos-hostboot-581462957e6df9ea663914fabf65f9f77b4e4bfa.tar.gz
talos-hostboot-581462957e6df9ea663914fabf65f9f77b4e4bfa.zip
Basic Hostboot platform support for FAPI2
Allows clean compile and link of FAPI2 procedures and a subset of the platform functional support RTC:123290 Change-Id: I9faa3bea86d1b43bca0a7eaca3869b45cc0b0d54 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23046 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/targeting/common')
-rw-r--r--src/include/usr/targeting/common/target.H45
1 files changed, 26 insertions, 19 deletions
diff --git a/src/include/usr/targeting/common/target.H b/src/include/usr/targeting/common/target.H
index bf5b7dad4..4901845c8 100644
--- a/src/include/usr/targeting/common/target.H
+++ b/src/include/usr/targeting/common/target.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* Contributors Listed Below - COPYRIGHT 2012,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -54,17 +54,20 @@
//******************************************************************************
// Forward declarations to allow friend functions to work
//******************************************************************************
-namespace fapi
+
+
+namespace fapi2
{
- class ReturnCode;
- class Target;
- namespace platAttrSvc
+ namespace platAttrSvc
{
- fapi::ReturnCode getTargetingAttr(const fapi::Target *,
- const TARGETING::ATTRIBUTE_ID, const uint32_t, void *);
- fapi::ReturnCode setTargetingAttr(const fapi::Target *,
- const TARGETING::ATTRIBUTE_ID, const uint32_t, void *);
+
+ bool setTargetingAttrHelper(TARGETING::Target * ,
+ const TARGETING::ATTRIBUTE_ID ,
+ const uint32_t , void * );
+ bool getTargetingAttrHelper(TARGETING::Target * ,
+ const TARGETING::ATTRIBUTE_ID ,
+ const uint32_t , void * );
}
}
@@ -351,8 +354,7 @@ class Target
void getAttrTankTargetPosData(uint16_t & o_pos,
uint8_t & o_unitPos,
uint8_t & o_node) const;
-
- private: // Private helper interfaces
+ private: // Private helper interfaces
/**
* @brief Tries to get the target's specified attribute value
@@ -404,6 +406,7 @@ class Target
uint32_t i_size,
const void* i_pAttrData) const;
+
/**
* @brief Gets a pointer to the target's associated attribute
*
@@ -573,15 +576,19 @@ class Target
friend class AssociationManager;
friend class AttributeTank;
- // Friend functions to allow FAPI Attribute code to directly call
- // _tryGetAttr and _trySetAttr for code size optimization
- friend fapi::ReturnCode fapi::platAttrSvc::getTargetingAttr(
- const fapi::Target *, TARGETING::ATTRIBUTE_ID, const uint32_t,
- void *);
- friend fapi::ReturnCode fapi::platAttrSvc::setTargetingAttr(
- const fapi::Target *, TARGETING::ATTRIBUTE_ID, const uint32_t,
- void *);
+
+
+ friend bool fapi2::
+ platAttrSvc::
+ setTargetingAttrHelper(TARGETING::Target*,
+ const TARGETING::ATTRIBUTE_ID ,
+ const uint32_t , void * );
+ friend bool fapi2::
+ platAttrSvc::
+ getTargetingAttrHelper(TARGETING::Target * ,
+ const TARGETING::ATTRIBUTE_ID ,
+ const uint32_t , void * );
/*
* @brief allow targetattrbulksync access to the target class store.
*/
OpenPOWER on IntegriCloud