diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-09-25 17:08:04 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-09-25 17:08:04 +0100 |
commit | 4bf63fcb83dc761853f69a77b15e47712689020b (patch) | |
tree | 6afae2f5f45eed231967f05e1f0a887136756211 /include | |
parent | 3b85c3211ebde263a86c8cd3c7277fdd2e440310 (diff) | |
download | op-kernel-dev-4bf63fcb83dc761853f69a77b15e47712689020b.zip op-kernel-dev-4bf63fcb83dc761853f69a77b15e47712689020b.tar.gz |
[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')
-rw-r--r-- | include/linux/mtd/nand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 88d690d..cd4fe9a 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -183,7 +183,9 @@ typedef enum { #define NAND_USE_FLASH_BBT 0x00010000 /* This option skips the bbt scan during initialization. */ #define NAND_SKIP_BBTSCAN 0x00020000 - +/* This option is defined if the board driver allocates its own buffers + (e.g. because it needs them DMA-coherent */ +#define NAND_OWN_BUFFERS 0x00040000 /* Options set by nand scan */ /* Nand scan has allocated controller struct */ #define NAND_CONTROLLER_ALLOC 0x80000000 @@ -385,7 +387,7 @@ struct nand_chip { struct nand_ecclayout *ecclayout; struct nand_ecc_ctrl ecc; - struct nand_buffers buffers; + struct nand_buffers *buffers; struct nand_hw_control hwcontrol; struct mtd_oob_ops ops; |