summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2014-08-20 15:25:18 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-11-13 08:05:26 -0600
commit520e2dae589df58d9e50f8d6a3828d620e4c4783 (patch)
tree2c3a5882cb5f5d5aab397a3cc5512b7df0c74cbf /src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H
parent71a92d99bc32fe35a5b87cf321c0e4cf5e8f6e9c (diff)
downloadblackbird-hostboot-520e2dae589df58d9e50f8d6a3828d620e4c4783.tar.gz
blackbird-hostboot-520e2dae589df58d9e50f8d6a3828d620e4c4783.zip
ISDIMM to C4 DQ/DQS standalone compression tool (Rosetta Stone)
Change-Id: I8e5adf282d82085f504e64a0ffc8d913b7cb237b RTC:109474 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12907 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H')
-rw-r--r--src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H b/src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H
new file mode 100644
index 000000000..6eafef167
--- /dev/null
+++ b/src/usr/hwpf/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H
@@ -0,0 +1,48 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/hwp/mvpd_accessors/compressionTool/DQCompressionConsts.H,v $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2014 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: DQCompressionConsts.H,v 1.1 2014/11/12 19:55:07 pragupta Exp $
+#ifndef _DQCOMPRESSIONCONSTS_H_
+#define _DQCOMPRESSIONCONSTS_H_
+
+namespace DQCompression
+{
+/* Constants to be used by compression and decompression */
+ const uint32_t DQarray_size = 80;
+ const uint32_t DQSarray_size = 20;
+ const uint32_t BYTE_LENGTH = 8;
+ const uint32_t BYTE_CODE_LENGTH = 3; //bytes
+ const uint32_t NIBBLE_SWAP_LENGTH = 2; //bytes
+ const uint32_t NIBBLE_PERM_LENGTH = 5; //bits
+ const uint32_t DQ_CODE_LENGTH = 17;//bytes
+ const uint32_t DQS_CODE_LENGTH = 2; //bytes
+ const uint32_t SIX_BIT_ZERO_PADDING = 6;
+
+ const uint32_t DQ_GROUP_SIZE = 8;
+ const uint32_t DQS_GROUP_SIZE = 2;
+ //DQ and DQS Flag - to determine the input type
+ const uint8_t DQ = 1;
+ const uint8_t DQS= 2;
+}
+#endif
OpenPOWER on IntegriCloud