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/usr/hwpf/ifcompiler/initSymbols.H | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/usr/hwpf/ifcompiler/initSymbols.H') diff --git a/src/usr/hwpf/ifcompiler/initSymbols.H b/src/usr/hwpf/ifcompiler/initSymbols.H index 67872f1cd..92bd518ee 100755 --- a/src/usr/hwpf/ifcompiler/initSymbols.H +++ b/src/usr/hwpf/ifcompiler/initSymbols.H @@ -29,6 +29,7 @@ // camvanng 04/16/12 Support defines for SCOM address // Support defines for bits, scom_data and attribute columns // Delete obsolete code for defines support +// camvanng 05/07/12 Support for associated target attributes // End Change Log ********************************************************************************* /** @@ -56,6 +57,7 @@ using namespace std; namespace init { typedef set FILELIST; + const string ASSOC_TGT_ATTR = "TGT"; class Symbols { @@ -98,11 +100,12 @@ namespace init * @param rpn_id * @pre all the symbols have been marked used (no new symbols) * @post tag table built if not already built. - * @note tag bits 0bttxxxxxx xxxxxxxx - * tt == 0b01 -> enumerated literal - * tt == 0b10 -> Variable name - * tt == 0b11 -> Numeric constant - * xxxxxx xxxxxxxx assigned tag offset + * @note tag bits 0btttxxxxx xxxxxxxx + * ttt == 0b010 -> Numeric constant + * ttt == 0b100 -> Target attribute + * ttt == 0b101 -> System attribute + * ttt == 0b110 -> Associated target attribute + * xxxxx xxxxxxxx assigned tag offset */ uint16_t get_tag(uint32_t i_rpn_id); @@ -238,21 +241,21 @@ namespace init typedef pair MAP_DATA; //cini_id & corresponding rpn_id/NOT_USED typedef map SYMBOL_MAP; //attr name & corresponding cini_id, rpn_id/NOT_USED pair typedef map SPY_MAP; - typedef map SYMBOL_ATTR_TYPE; - typedef map SYMBOL_ATTR_ENUM; + typedef map SYMBOL_ATTR_TYPE; //attr name & corresponding type + typedef map SYMBOL_ATTR_ENUM; //enum name & corresponding value typedef pair RPN_DATA; //attribute name & corresponding cini_id - typedef map RPN_MAP; //attr name & corresponding attr name, cini_id pair + typedef map RPN_MAP; //rpn_id & corresponding attr name, cini_id pair typedef vector VAR_SYMBOL_USED; typedef vector SYMBOL_USED; - typedef pair LIT_DATA; - typedef vector LIT_LIST; + typedef pair LIT_DATA; //numeric literal & corresponding size + typedef vector LIT_LIST; ///< List of numeric literals and their size SYMBOL_MAP iv_symbols; ///< From ciniIfSymbols.H all vars and enumerated lits - SYMBOL_ATTR_TYPE iv_attr_type; - SYMBOL_ATTR_ENUM iv_attr_enum; + SYMBOL_ATTR_TYPE iv_attr_type; ///< List of attributes and their type + SYMBOL_ATTR_ENUM iv_attr_enum; ///< List of attribute enums and their value SYMBOL_MAP iv_not_found; ///< List of symbols not found RPN_MAP iv_rpn_map; ///< Map rpn_id to symbol name/cini_id of used Symbols VAR_SYMBOL_USED iv_used_var; ///< List of used attributes and their ids ordered by name -- cgit v1.2.3