mtd/include/linux rslib.h,1.1,1.2

gleixner at infradead.org gleixner at infradead.org
Fri Oct 1 17:43:53 EDT 2004


Update of /home/cvs/mtd/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv8204

Modified Files:
	rslib.h 
Log Message:
update RS-library to provide error correction for weird bitordering etc.

Index: rslib.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/rslib.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rslib.h	16 Sep 2004 23:58:55 -0000	1.1
+++ rslib.h	1 Oct 2004 21:43:50 -0000	1.2
@@ -54,18 +54,18 @@
 
 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit  */
 int encode_rs8 (struct rs_control *rs, uint8_t *data, int len, uint16_t *par, uint16_t invmsk);
-int decode_rs8 (struct rs_control *rs, uint8_t *data, uint16_t *par, 
-			int len, uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk);
+int decode_rs8 (struct rs_control *rs, uint8_t *data, uint16_t *par, int len, 
+		uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk, uint16_t *corr);
 
 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit  */
 int encode_rs16 (struct rs_control *rs, uint16_t *data, int len, uint16_t *par, uint16_t invmsk);
-int decode_rs16 (struct rs_control *rs, uint16_t *data, uint16_t *par, 
-			int len, uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk);
+int decode_rs16 (struct rs_control *rs, uint16_t *data, uint16_t *par, int len,
+		uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk, uint16_t *corr);
 
 /* General purpose RS codec, 32-bit data width, symbol width 1-15 bit  */
 int encode_rs32 (struct rs_control *rs, uint32_t *data, int len, uint16_t *par, uint16_t invmsk);
-int decode_rs32 (struct rs_control *rs, uint32_t *data, uint16_t *par, 
-			int len, uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk);
+int decode_rs32 (struct rs_control *rs, uint32_t *data, uint16_t *par, int len,
+		uint16_t *s, int no_eras, int *eras_pos, uint16_t invmsk, uint16_t *corr);
 
 /* Create or get a matching rs control structure */
 struct rs_control *init_rs (int symsize, int gfpoly, int fcr, int prim, int nroots);





More information about the linux-mtd-cvs mailing list