projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Add handling for . and .. at end of path
[yaffs2.git]
/
yaffs_ecc.h
diff --git
a/yaffs_ecc.h
b/yaffs_ecc.h
index 124e5a0d4009fb273c295133ef8bd75ac8409ad4..17d47bd80f3e3eddc254bacedfea65b312443e70 100644
(file)
--- a/
yaffs_ecc.h
+++ b/
yaffs_ecc.h
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
/*
* YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002-201
0
Aleph One Ltd.
+ * Copyright (C) 2002-201
1
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@
-18,27
+18,27
@@
*
* The ECC comprises 22 bits of parity information and is stuffed into 3 bytes.
* The two unused bit are set to 1.
*
* The ECC comprises 22 bits of parity information and is stuffed into 3 bytes.
* The two unused bit are set to 1.
- * The ECC can correct single bit errors in a 256-byte page of data.
Thus, two such ECC
- * blocks are used on a 512-byte NAND page.
+ * The ECC can correct single bit errors in a 256-byte page of data.
+ *
Thus, two such ECC
blocks are used on a 512-byte NAND page.
*
*/
#ifndef __YAFFS_ECC_H__
#define __YAFFS_ECC_H__
*
*/
#ifndef __YAFFS_ECC_H__
#define __YAFFS_ECC_H__
-
typedef struct
{
- unsigned char col
P
arity;
- unsigned line
P
arity;
- unsigned line
ParityP
rime;
-}
yaffs_ECCOther
;
+
struct yaffs_ecc_other
{
+ unsigned char col
_p
arity;
+ unsigned line
_p
arity;
+ unsigned line
_parity_p
rime;
+};
-void yaffs_ecc_ca
cl
(const unsigned char *data, unsigned char *ecc);
+void yaffs_ecc_ca
lc
(const unsigned char *data, unsigned char *ecc);
int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc,
int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc,
- const unsigned char *test_ecc);
+
const unsigned char *test_ecc);
void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes,
void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes,
-
yaffs_ECCO
ther *ecc);
+
struct yaffs_ecc_o
ther *ecc);
int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes,
int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes,
-
yaffs_ECCO
ther *read_ecc,
-
const yaffs_ECCO
ther *test_ecc);
+
struct yaffs_ecc_o
ther *read_ecc,
+
const struct yaffs_ecc_o
ther *test_ecc);
#endif
#endif