diff options
author | Girisankar Paulraj <gpaulraj@in.ibm.com> | 2016-05-19 07:27:12 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-06-14 15:21:56 -0400 |
commit | f2b5b9269a553d3ce7de44e3f29b94c00f0ab22f (patch) | |
tree | 60836b662fe3ff030d226a3d1f3c56acc0d3cce6 /src/import/chips/p9 | |
parent | c65ca249a7ae0bbe01aeb53c2be44af069cb9a8a (diff) | |
download | talos-hostboot-f2b5b9269a553d3ce7de44e3f29b94c00f0ab22f.tar.gz talos-hostboot-f2b5b9269a553d3ce7de44e3f29b94c00f0ab22f.zip |
Adding RS4v2 and ring_apply support for handling overrides rings
>Copied bin.srd data into initRings and alterRings
for standard ring section generation.
>converted fixed numbers into definition
>New Compression technique added
>added override support for file handling.
>Modified rs4_compress parameter definition
>Removed INSTANCE_REF_ID
>> implemented --type base or overrides for better user friendly
>> modified makefile for above parameter
Completed RS4 v2 encoding algorithm in __rs4_compress().
Fixed various bugs in ring_apply that caused data in last nibble
of alterRing (*.bitsModified) buffer to get messed up.
Also, added check for illegal 1s in data where care has 0 in
__rs4_comress().
Updated help menu.
rebase on top of 25379 and merged delta changes
Change-Id: I4f2b6a8b87a0106878028a5ca650bebb187d707b
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24788
Tested-by: Hostboot CI
Tested-by: Jenkins Server
Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25617
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9')
-rw-r--r-- | src/import/chips/p9/utils/imageProcs/p9_scan_compression.H | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/import/chips/p9/utils/imageProcs/p9_scan_compression.H b/src/import/chips/p9/utils/imageProcs/p9_scan_compression.H index adfc8c913..9aec88446 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_scan_compression.H +++ b/src/import/chips/p9/utils/imageProcs/p9_scan_compression.H @@ -147,9 +147,12 @@ compressed_scan_data_translate(CompressedScanData* o_data, /// data structure (header + compressed data) created in \a io_data, in bytes. /// This value will always be a multiple of 8. /// -/// \param[in] i_string The string to compress. Scan data to compress is +/// \param[in] i_data_str The string to compress. Scan data to compress is /// left-justified in this input string. /// +/// \param[in] i_care_str The care mask that identifies which bits in the +/// i_data_str that need to be scanned (written). String is left-justified. +/// /// \param[in] i_length The length of the input string in \e bits. It is /// assumed the \a i_string contains at least (\a i_length + 7) / 8 bytes. /// @@ -185,7 +188,8 @@ int _rs4_compress(CompressedScanData* io_data, uint32_t i_dataSize, uint32_t* o_imageSize, - const uint8_t* i_string, + const uint8_t* i_data_str, + const uint8_t* i_care_str, const uint32_t i_length, const uint64_t i_scanSelect, const uint8_t i_ringId, @@ -207,9 +211,12 @@ _rs4_compress(CompressedScanData* io_data, /// structure (header + compressed data) pointed to by \a o_data, in bytes. /// This value will always be a multiple of 8. /// -/// \param[in] i_string The string to compress. Scan data to compress is +/// \param[in] i_data_str The string to compress. Scan data to compress is /// left-justified in this input string. /// +/// \param[in] i_care_str The care mask that identifies which bits in the +/// i_data_str that need to be scanned (written). String is left-justified. +/// /// \param[in] i_length The length of the input string in \e bits. It is /// assumed the \a i_string contains at least (\a i_length + 7) / 8 bytes. /// @@ -233,7 +240,8 @@ _rs4_compress(CompressedScanData* io_data, int rs4_compress(CompressedScanData** o_data, uint32_t* o_size, - const uint8_t* i_string, + const uint8_t* i_data_str, + const uint8_t* i_care_str, const uint32_t i_length, const uint64_t i_scanSelect, const uint8_t i_ringId, |