diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-01-11 09:38:21 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-01-11 09:38:21 -0500 |
commit | 8fa7a41f65956ac3b6653dc6274c5111c99093ff (patch) | |
tree | 74df1808d8d9ee47f4ffc90df0300b4e655e79ae /include | |
parent | abb536e7ac8719243cfc4b40b39bf3eefd028f82 (diff) | |
parent | 0fc2ccea4c8fa779053cb6f8984f6da399a81182 (diff) |
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 { | |||
88 | * operation is in progress | 88 | * operation is in progress |
89 | * @state: [INTERN] the current state of the OneNAND device | 89 | * @state: [INTERN] the current state of the OneNAND device |
90 | * @page_buf: data buffer | 90 | * @page_buf: data buffer |
91 | * @subpagesize: [INTERN] holds the subpagesize | ||
91 | * @ecclayout: [REPLACEABLE] the default ecc placement scheme | 92 | * @ecclayout: [REPLACEABLE] the default ecc placement scheme |
92 | * @bbm: [REPLACEABLE] pointer to Bad Block Management | 93 | * @bbm: [REPLACEABLE] pointer to Bad Block Management |
93 | * @priv: [OPTIONAL] pointer to private chip date | 94 | * @priv: [OPTIONAL] pointer to private chip date |
@@ -128,6 +129,7 @@ struct onenand_chip { | |||
128 | onenand_state_t state; | 129 | onenand_state_t state; |
129 | unsigned char *page_buf; | 130 | unsigned char *page_buf; |
130 | 131 | ||
132 | int subpagesize; | ||
131 | struct nand_ecclayout *ecclayout; | 133 | struct nand_ecclayout *ecclayout; |
132 | 134 | ||
133 | void *bbm; | 135 | void *bbm; |
@@ -141,6 +143,7 @@ struct onenand_chip { | |||
141 | #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) | 143 | #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) |
142 | #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) | 144 | #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) |
143 | #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) | 145 | #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) |
146 | #define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) | ||
144 | 147 | ||
145 | #define ONENAND_GET_SYS_CFG1(this) \ | 148 | #define ONENAND_GET_SYS_CFG1(this) \ |
146 | (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) | 149 | (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) |