mtd/include/linux/mtd nand.h,1.28,1.29
David Woodhouse
dwmw2 at infradead.org
Wed Jul 2 09:09:03 EDT 2003
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv24515/include/linux/mtd
Modified Files:
nand.h
Log Message:
abstract write_byte and read_byte too
Index: nand.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/nand.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- nand.h 2 Jul 2003 11:00:23 -0000 1.28
+++ nand.h 2 Jul 2003 13:09:00 -0000 1.29
@@ -67,6 +67,8 @@
#define NAND_CTL_CLRCLE 4
#define NAND_CTL_SETALE 5
#define NAND_CTL_CLRALE 6
+#define NAND_CTL_SETWP 7
+#define NAND_CTL_CLRWP 8
/*
* Standard NAND flash commands
@@ -163,6 +165,9 @@
unsigned long IO_ADDR_R;
unsigned long IO_ADDR_W;
+ u_char (*read_byte)(struct mtd_info *mtd);
+ void (*write_byte)(struct mtd_info *mtd, u_char byte);
+
void (*write_buf)(struct mtd_info *mtd, const u_char *buf, int len);
void (*read_buf)(struct mtd_info *mtd, u_char *buf, int len);
int (*verify_buf)(struct mtd_info *mtd, u_char *buf, int len);
@@ -178,12 +183,13 @@
int eccmode;
int eccsize;
int chip_delay;
- spinlock_t chip_lock;
+ spinlock_t chip_lock;
wait_queue_head_t wq;
nand_state_t state;
int page_shift;
u_char *data_buf;
u_char *data_poi;
+ void *priv;
};
/*
More information about the linux-mtd-cvs
mailing list