]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/mtd/onenand.h
[MTD] OneNAND: add subpage write support
[net-next-2.6.git] / include / linux / mtd / onenand.h
index 62ca0f4298223e7f701e8dd67217ad7209513448..fe3500d7d4bbc27c29b30f11f27d61233e014ace 100644 (file)
@@ -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;