aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSneha Narnakaje <nsnehaprabha@ti.com>2009-09-18 15:51:46 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-09-19 14:13:47 -0400
commit46a8cf2df2232c0051f29716ff8a166ebeb08daf (patch)
treeea7073f16c03f271cf7352c676a4604d31348deb /include
parent778dbcc1ebea6f9a560020110987449bf4607e5f (diff)
mtd: nand: add "page" parameter to all read_page/read_page_raw APIs
This patch adds a new "page" parameter to all NAND read_page/read_page_raw APIs. The read_page API for the new mode ECC_HW_OOB_FIRST requires the page information to send the READOOB command and read the OOB area before the data area. Reviewed-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Sneha Narnakaje <nsnehaprabha@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 4030ebada49e..686f3701f2f4 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -271,13 +271,13 @@ struct nand_ecc_ctrl {
271 uint8_t *calc_ecc); 271 uint8_t *calc_ecc);
272 int (*read_page_raw)(struct mtd_info *mtd, 272 int (*read_page_raw)(struct mtd_info *mtd,
273 struct nand_chip *chip, 273 struct nand_chip *chip,
274 uint8_t *buf); 274 uint8_t *buf, int page);
275 void (*write_page_raw)(struct mtd_info *mtd, 275 void (*write_page_raw)(struct mtd_info *mtd,
276 struct nand_chip *chip, 276 struct nand_chip *chip,
277 const uint8_t *buf); 277 const uint8_t *buf);
278 int (*read_page)(struct mtd_info *mtd, 278 int (*read_page)(struct mtd_info *mtd,
279 struct nand_chip *chip, 279 struct nand_chip *chip,
280 uint8_t *buf); 280 uint8_t *buf, int page);
281 int (*read_subpage)(struct mtd_info *mtd, 281 int (*read_subpage)(struct mtd_info *mtd,
282 struct nand_chip *chip, 282 struct nand_chip *chip,
283 uint32_t offs, uint32_t len, 283 uint32_t offs, uint32_t len,