Lines Matching defs:onenand_chip

87 struct onenand_chip {  struct
88 void __iomem *base;
89 unsigned dies;
90 unsigned boundary[MAX_DIES];
91 loff_t diesize[MAX_DIES];
92 unsigned int chipsize;
93 unsigned int device_id;
94 unsigned int version_id;
95 unsigned int technology;
96 unsigned int density_mask;
97 unsigned int options;
99 unsigned int erase_shift;
100 unsigned int page_shift;
101 unsigned int page_mask;
102 unsigned int writesize;
104 unsigned int bufferram_index;
105 struct onenand_bufferram bufferram[MAX_BUFFERRAM];
107 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
108 int (*wait)(struct mtd_info *mtd, int state);
109 int (*bbt_wait)(struct mtd_info *mtd, int state);
110 void (*unlock_all)(struct mtd_info *mtd);
111 int (*read_bufferram)(struct mtd_info *mtd, int area,
113 int (*write_bufferram)(struct mtd_info *mtd, int area,
115 unsigned short (*read_word)(void __iomem *addr);
116 void (*write_word)(unsigned short value, void __iomem *addr);
117 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
118 int (*chip_probe)(struct mtd_info *mtd);
119 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
120 int (*scan_bbt)(struct mtd_info *mtd);
121 int (*enable)(struct mtd_info *mtd);
122 int (*disable)(struct mtd_info *mtd);
124 struct completion complete;
125 int irq;
127 spinlock_t chip_lock;
128 wait_queue_head_t wq;
129 flstate_t state;
130 unsigned char *page_buf;
131 unsigned char *oob_buf;
133 unsigned char *verify_buf;
136 int subpagesize;
137 struct nand_ecclayout *ecclayout;
139 void *bbm;
141 void *priv;
149 unsigned int ongoing;