From 4de3ba5db9e886a4b08ac2717483d741412b3922 Mon Sep 17 00:00:00 2001 From: Girisankar Paulraj Date: Thu, 19 May 2016 07:27:12 -0500 Subject: 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 Reviewed-by: Prachi Gupta Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27754 Tested-by: Jenkins Server Reviewed-by: Martin Peschke --- import/chips/p9/utils/imageProcs/p9_scan_compression.H | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'import') diff --git a/import/chips/p9/utils/imageProcs/p9_scan_compression.H b/import/chips/p9/utils/imageProcs/p9_scan_compression.H index adfc8c91..9aec8844 100644 --- a/import/chips/p9/utils/imageProcs/p9_scan_compression.H +++ b/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, -- cgit v1.2.1