diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-25 04:07:16 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-25 07:45:27 -0400 |
commit | f5bbdacc41939f89d8ccb18dd79cd9b21c0cb75d (patch) | |
tree | c9e45db9701c41c842282b0432d915cc9facc013 /include/linux | |
parent | 9577f44a899cf4acb9e381c8946307b72153cd15 (diff) |
[MTD] NAND Modularize read function
Split the core of the read function out and implement
seperate handling functions for software and hardware
ECC.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/nand.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index daacde5132fe..00916498ea55 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -479,14 +479,14 @@ struct nand_bbt_descr { | |||
479 | /* The maximum number of blocks to scan for a bbt */ | 479 | /* The maximum number of blocks to scan for a bbt */ |
480 | #define NAND_BBT_SCAN_MAXBLOCKS 4 | 480 | #define NAND_BBT_SCAN_MAXBLOCKS 4 |
481 | 481 | ||
482 | extern int nand_scan_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd); | 482 | extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); |
483 | extern int nand_update_bbt (struct mtd_info *mtd, loff_t offs); | 483 | extern int nand_update_bbt(struct mtd_info *mtd, loff_t offs); |
484 | extern int nand_default_bbt (struct mtd_info *mtd); | 484 | extern int nand_default_bbt(struct mtd_info *mtd); |
485 | extern int nand_isbad_bbt (struct mtd_info *mtd, loff_t offs, int allowbbt); | 485 | extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt); |
486 | extern int nand_erase_nand (struct mtd_info *mtd, struct erase_info *instr, int allowbbt); | 486 | extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, |
487 | extern int nand_do_read_ecc (struct mtd_info *mtd, loff_t from, size_t len, | 487 | int allowbbt); |
488 | size_t * retlen, uint8_t * buf, uint8_t * oob_buf, | 488 | extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len, |
489 | struct nand_oobinfo *oobsel, int flags); | 489 | size_t * retlen, uint8_t * buf); |
490 | 490 | ||
491 | /* | 491 | /* |
492 | * Constants for oob configuration | 492 | * Constants for oob configuration |