index a9ab076a0ec65f5e018b1a5a5552fca9d98f028d..df50337c53575f974eb8028130be19e2ccfec4c2 100644 (file)
* Defines and Macros and globals
*********************************/
// Pre-calculated 256-way 1 byte column parity
-static const Uint8 nand_ecc_precalc_table[] = {
+static const Uint8 nand_ecc_table[] = {
0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00,
0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65,
0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66,
for(j = 0; j < 256; j++) {
/* Get CP0 - CP5 from table */
- uchIndex = nand_ecc_precalc_table[puchData[j]];
+ uchIndex = nand_ecc_table[puchData[j]];
uchReg1 ^= (uchIndex & 0x3f);
/* All bit XOR = 1 ? */