Lines Matching defs:onenand_chip

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