#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/errno.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/doc2000.h>
Go to the source code of this file.
#define B0 510 /* First root of generator polynomial, alpha form */ |
Value:{\
int ci;\
for(ci=(
n)-1;ci >=0;ci--)\
}
Definition at line 79 of file docecc.c.
Value:{\
int ci;\
for(ci=(
n)-1;ci >=0;ci--)\
}
Definition at line 85 of file docecc.c.
#define COPYDOWN |
( |
|
a, |
|
|
|
b, |
|
|
|
n |
|
) |
| |
Value:{\
int ci;\
for(ci=(
n)-1;ci >=0;ci--)\
}
Definition at line 91 of file docecc.c.
#define NN ((1 << MM) - 1) |
#define PRIM 1 /* power of alpha used to generate roots of generator poly */ |
int doc_decode_ecc |
( |
unsigned char |
sector[SECTOR_SIZE], |
|
|
unsigned char |
ecc1[6] |
|
) |
| |