summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/ifcompiler/initRpn.H
diff options
context:
space:
mode:
authorCamVan Nguyen <ctnguyen@us.ibm.com>2012-06-11 13:10:13 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-15 16:13:10 -0500
commitb97837c8364cb04aed2582ac58b89365c1e14875 (patch)
treef0b65f3fc8127e393363d75614a03206e99e8485 /src/usr/hwpf/ifcompiler/initRpn.H
parent62e206399932f5c8729f24f38a12fb4db58f185b (diff)
downloadtalos-hostboot-b97837c8364cb04aed2582ac58b89365c1e14875.tar.gz
talos-hostboot-b97837c8364cb04aed2582ac58b89365c1e14875.zip
SCOM Initifile: SW146714: Use two bytes to store row rpn sequence byte count.
Change-Id: I617fe3267df98a85820c789553323d431ab9c5ee Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1184 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/ifcompiler/initRpn.H')
-rwxr-xr-xsrc/usr/hwpf/ifcompiler/initRpn.H7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/hwpf/ifcompiler/initRpn.H b/src/usr/hwpf/ifcompiler/initRpn.H
index 7e87554c8..5f6fddd32 100755
--- a/src/usr/hwpf/ifcompiler/initRpn.H
+++ b/src/usr/hwpf/ifcompiler/initRpn.H
@@ -38,6 +38,7 @@
// camvanng 01/20/12 Support for using a range of indexes for array attributes
// camvanng 05/22/12 Ability to do simple operations on attributes
// in the scom_data column
+// SW146714 camvanng 06/08/12 Use two bytes to store row rpn sequence byte count
// End Change Log *********************************************************************************
/**
@@ -193,12 +194,14 @@ namespace init
* @param i_num_addrs number of Scom addresses for this Scom
* @param i_addr_num the nth addr with the range of Scom addresses
* @param i_prepend_count Flag to indicate prepend rpn count to binary string
+ * @param i_one_byte_count Flag to indicate whether to use 1 byte to store
+ * the byte count (default is to use 2 bytes) when i_prepend_count == true
* @PRE should never be called until all symbols in the initfile have been
* "looked up" or the binary tags for Symbols and Numbers may not be accurate
* @return void
*/
void bin_str(BINSEQ & blist, uint32_t i_num_addrs, uint32_t i_addr_num,
- bool i_prepend_count = false);
+ bool i_prepend_count = false, bool i_one_byte_count = false);
/**
* Read binary sequence to recreate this Rpn sequence
@@ -209,7 +212,7 @@ namespace init
* @post if symbols != NULL then iv_symbols is replaced with symbols
*/
void bin_read(BINSEQ::const_iterator & bli,
- uint8_t i_size = 2,
+ uint16_t i_size = 2,
Symbols * symbols = NULL); // read binary sequence to recreate RPN
/**
OpenPOWER on IntegriCloud