aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-25 12:08:04 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-25 12:08:04 -0400
commit4bf63fcb83dc761853f69a77b15e47712689020b (patch)
tree6afae2f5f45eed231967f05e1f0a887136756211 /include/linux/mtd/nand.h
parent3b85c3211ebde263a86c8cd3c7277fdd2e440310 (diff)
[MTD NAND] Allocate chip->buffers separately to allow it to be overridden
In particular, the board driver might need it to be DMAable. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 88d690d79d77..cd4fe9ae8622 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -183,7 +183,9 @@ typedef enum {
183#define NAND_USE_FLASH_BBT 0x00010000 183#define NAND_USE_FLASH_BBT 0x00010000
184/* This option skips the bbt scan during initialization. */ 184/* This option skips the bbt scan during initialization. */
185#define NAND_SKIP_BBTSCAN 0x00020000 185#define NAND_SKIP_BBTSCAN 0x00020000
186 186/* This option is defined if the board driver allocates its own buffers
187 (e.g. because it needs them DMA-coherent */
188#define NAND_OWN_BUFFERS 0x00040000
187/* Options set by nand scan */ 189/* Options set by nand scan */
188/* Nand scan has allocated controller struct */ 190/* Nand scan has allocated controller struct */
189#define NAND_CONTROLLER_ALLOC 0x80000000 191#define NAND_CONTROLLER_ALLOC 0x80000000
@@ -385,7 +387,7 @@ struct nand_chip {
385 struct nand_ecclayout *ecclayout; 387 struct nand_ecclayout *ecclayout;
386 388
387 struct nand_ecc_ctrl ecc; 389 struct nand_ecc_ctrl ecc;
388 struct nand_buffers buffers; 390 struct nand_buffers *buffers;
389 struct nand_hw_control hwcontrol; 391 struct nand_hw_control hwcontrol;
390 392
391 struct mtd_oob_ops ops; 393 struct mtd_oob_ops ops;