diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2015-12-14 09:30:28 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-02-29 16:29:48 -0500 |
| commit | bee7f1cbcd5bf18acc539c9c9b6a14960dadea3d (patch) | |
| tree | 2b7f1c777e10bc41101d7515e96122b3fd8cd1dc /src/include/usr/runtime | |
| parent | 1fe31da7eeae17f43b6908f9eccf30d6a8b355dd (diff) | |
| download | blackbird-hostboot-bee7f1cbcd5bf18acc539c9c9b6a14960dadea3d.tar.gz blackbird-hostboot-bee7f1cbcd5bf18acc539c9c9b6a14960dadea3d.zip | |
Update constants and comments for P9 PIR format
Implemented a set of macros and constants that can be used
everywhere to translate a PIR into its component parts
and pull out individual pieces of data from a complete
PIR.
Also added and updated the references to the old
ATTR_FABRIC_NODE_ID with ATTR_FABRIC_GROUP_ID.
Change-Id: If9735f53940e5849a648729e4bf8ca0cfbb09f6e
RTC: 88055
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/706
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/runtime')
| -rw-r--r-- | src/include/usr/runtime/rt_targeting.H | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/include/usr/runtime/rt_targeting.H b/src/include/usr/runtime/rt_targeting.H index 7559b6170..e26ea5fe4 100644 --- a/src/include/usr/runtime/rt_targeting.H +++ b/src/include/usr/runtime/rt_targeting.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2015 */ +/* Contributors Listed Below - COPYRIGHT 2014,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -38,20 +38,19 @@ namespace RT_TARG enum { - CHIPID_NODE_SHIFT = 3, //!< CHIPID NODE is 'NNNCCC'b - MEMBUF_ID_SHIFT = 4, //!< CHIPID for MEMBUF is 'NNNCCCMMMM'b - UNIT_ID_SHIFT = 4, //!< CHIPID for CORE is 'NNNCCCPPPP'b - UNIT_ID_MASK = 0x000003ff, //!< Valid id bits w/o ID_FLAG - PROC_ID_TYPE = 0x00000000, //!< PROC chip id type - MEMBUF_ID_TYPE = 0x80000000, //!< MEMBUF chip id type - CORE_ID_TYPE = 0x40000000, //!< CORE/EX chip id type - CHIPID_ID_MASK = 0xFF000000, //!< TYPE field + MEMBUF_ID_SHIFT = 4, //!< CHIPID for MEMBUF is '<procid>MMMM'b + MEMBUF_ID_MASK = 0x0000000F, //!< valid position bits for MEMBUF + + PROC_TYPE = 0x00000000, //!< PROC chip id type + MEMBUF_TYPE = 0x80000000, //!< MEMBUF chip id type + CORE_TYPE = 0x40000000, //!< CORE chip id type + CHIPID_TYPE_MASK = 0xFF000000, //!< TYPE field }; /** * @brief Convert a TARGETING::Target to an unit ID that can be used - * in calls to Sapphire + * in calls to the runtime host * @param[in] The HB TARGETING::Target * @param[out] Sapphire target id * @return an error handle on error |

