From 7b99c2041cfe126bb85325a3d18ca69d279f54ad Mon Sep 17 00:00:00 2001 From: CamVan Nguyen Date: Tue, 22 May 2012 08:44:39 -0500 Subject: SCOM Initfile: Support for associated attributes. Change-Id: Ie86bce0abaa12b986a7858723625c8e305a899d9 RTC: 41742 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1093 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES Reviewed-by: A. Patrick Williams III --- src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H') diff --git a/src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H b/src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H index 50f2bd222..e726c59bb 100644 --- a/src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H +++ b/src/include/usr/hwpf/hwp/fapiHwpInitFileInclude.H @@ -33,6 +33,8 @@ * andrewg 11/09/2011 Created. * camvanng 11/16/2011 Support for system & target * attributes + * camvanng 05/07/2012 Support for associated + * target attributes * */ @@ -73,16 +75,15 @@ enum IfRpnOp */ enum IfTypeMask { - IF_ATTR_TYPE = 0x8000, - IF_NUM_TYPE = 0xC000, - IF_TYPE_MASK = 0xC000, + IF_NUM_TYPE = 0x4000, + IF_ATTR_TYPE = 0x8000, + IF_SYS_ATTR_TYPE = 0xA000, + IF_ASSOC_TGT_ATTR_TYPE = 0xC000, + IF_TYPE_MASK = 0xE000, }; -// System or Target attribute -const uint16_t IF_SYS_ATTR_MASK = 0x2000; - -// Attribute Id mask -const uint16_t IF_ATTR_ID_MASK = 0x1FFF; +// Id mask +const uint16_t IF_ID_MASK = static_cast(~IF_TYPE_MASK); // Only support up to 4 dimensions for an array const uint8_t MAX_ATTRIBUTE_ARRAY_DIMENSION = 4; -- cgit v1.2.3