Sync with 2.6.27
Sync with OneNAND kernel codes Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
committed by
Scott Wood
parent
4d0b54685c
commit
ef0921d6b0
@@ -15,25 +15,29 @@
|
||||
#define __UBOOT_ONENAND_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
|
||||
struct mtd_info;
|
||||
struct erase_info;
|
||||
struct onenand_chip;
|
||||
|
||||
extern struct mtd_info onenand_mtd;
|
||||
|
||||
/* board */
|
||||
extern void onenand_board_init(struct mtd_info *);
|
||||
|
||||
/* 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,
|
||||
struct mtd_oob_ops *ops);
|
||||
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);
|
||||
|
||||
extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
|
||||
extern char *onenand_print_device_info(int device, int version);
|
||||
|
||||
extern char *onenand_print_device_info(int device);
|
||||
/* S3C64xx */
|
||||
extern void s3c64xx_onenand_init(struct mtd_info *);
|
||||
extern void s3c64xx_set_width_regs(struct onenand_chip *);
|
||||
|
||||
#endif /* __UBOOT_ONENAND_H */
|
||||
|
||||
Reference in New Issue
Block a user