diff options
author | Kyungmin Park <kmpark@infradead.org> | 2008-08-19 08:42:53 +0900 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2008-08-21 13:50:20 -0500 |
commit | bfd7f38614e21f745b6d6845fcc616ebc5e4d36f (patch) | |
tree | f72c120c39a8a6b51e57d22d600571e29aaa976e /include/onenand_uboot.h | |
parent | 8d765456c1d33f2010d2717ee58de7647fdc6346 (diff) | |
download | u-boot-bfd7f38614e21f745b6d6845fcc616ebc5e4d36f.zip u-boot-bfd7f38614e21f745b6d6845fcc616ebc5e4d36f.tar.gz u-boot-bfd7f38614e21f745b6d6845fcc616ebc5e4d36f.tar.bz2 |
Fix OneNAND read_oob/write_oob functions compatability
Also sync with kernel OneNAND codes
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/onenand_uboot.h')
-rw-r--r-- | include/onenand_uboot.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/onenand_uboot.h b/include/onenand_uboot.h index 4260ee7..6605e4f 100644 --- a/include/onenand_uboot.h +++ b/include/onenand_uboot.h @@ -16,23 +16,17 @@ #include <linux/types.h> -struct kvec { - void *iov_base; - size_t iov_len; -}; - -typedef int spinlock_t; -typedef int wait_queue_head_t; - struct mtd_info; struct erase_info; +extern struct mtd_info onenand_mtd; + /* Functions */ extern void onenand_init(void); extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * buf); -extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, size_t len, - size_t * retlen, u_char * buf); +extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, + struct mtd_oob_ops *ops); extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, const u_char * buf); extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr); |