diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-09-25 20:08:04 +0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-09-25 20:08:04 +0400 |
commit | 4bf63fcb83dc761853f69a77b15e47712689020b (patch) | |
tree | 6afae2f5f45eed231967f05e1f0a887136756211 /include/linux/mtd | |
parent | 3b85c3211ebde263a86c8cd3c7277fdd2e440310 (diff) | |
download | linux-4bf63fcb83dc761853f69a77b15e47712689020b.tar.xz |
[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')
-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 88d690d79d77..cd4fe9ae8622 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; |