diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-01-11 17:38:21 +0300 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-01-11 17:38:21 +0300 |
commit | 8fa7a41f65956ac3b6653dc6274c5111c99093ff (patch) | |
tree | 74df1808d8d9ee47f4ffc90df0300b4e655e79ae /include | |
parent | abb536e7ac8719243cfc4b40b39bf3eefd028f82 (diff) | |
parent | 0fc2ccea4c8fa779053cb6f8984f6da399a81182 (diff) | |
download | linux-8fa7a41f65956ac3b6653dc6274c5111c99093ff.tar.xz |
Merge branch 'master' of git://git.infradead.org/~kmpark/onenand-mtd-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/onenand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h index 62ca0f429822..f775a7af3890 100644 --- a/include/linux/mtd/onenand.h +++ b/include/linux/mtd/onenand.h @@ -88,6 +88,7 @@ struct onenand_bufferram { * operation is in progress * @state: [INTERN] the current state of the OneNAND device * @page_buf: data buffer + * @subpagesize: [INTERN] holds the subpagesize * @ecclayout: [REPLACEABLE] the default ecc placement scheme * @bbm: [REPLACEABLE] pointer to Bad Block Management * @priv: [OPTIONAL] pointer to private chip date @@ -128,6 +129,7 @@ struct onenand_chip { onenand_state_t state; unsigned char *page_buf; + int subpagesize; struct nand_ecclayout *ecclayout; void *bbm; @@ -141,6 +143,7 @@ struct onenand_chip { #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) +#define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) #define ONENAND_GET_SYS_CFG1(this) \ (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) |