Lines Matching defs:onenand_chip
86 struct onenand_chip { struct
87 void __iomem *base;
88 unsigned dies;
89 unsigned boundary[MAX_DIES];
90 loff_t diesize[MAX_DIES];
91 unsigned int chipsize;
92 unsigned int device_id;
93 unsigned int version_id;
94 unsigned int technology;
95 unsigned int density_mask;
96 unsigned int options;
98 unsigned int erase_shift;
99 unsigned int page_shift;
100 unsigned int page_mask;
101 unsigned int writesize;
103 unsigned int bufferram_index;
104 struct onenand_bufferram bufferram[MAX_BUFFERRAM];
106 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
107 int (*wait)(struct mtd_info *mtd, int state);
108 int (*bbt_wait)(struct mtd_info *mtd, int state);
109 void (*unlock_all)(struct mtd_info *mtd);
110 int (*read_bufferram)(struct mtd_info *mtd, int area,
112 int (*write_bufferram)(struct mtd_info *mtd, int area,
114 unsigned short (*read_word)(void __iomem *addr);
115 void (*write_word)(unsigned short value, void __iomem *addr);
116 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
117 int (*chip_probe)(struct mtd_info *mtd);
118 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
119 int (*scan_bbt)(struct mtd_info *mtd);
120 int (*enable)(struct mtd_info *mtd);
121 int (*disable)(struct mtd_info *mtd);
123 struct completion complete;
124 int irq;
126 spinlock_t chip_lock;
127 wait_queue_head_t wq;
128 flstate_t state;
129 unsigned char *page_buf;
130 unsigned char *oob_buf;
132 unsigned char *verify_buf;
135 int subpagesize;
137 void *bbm;
139 void *priv;
147 unsigned int ongoing;