diff options
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 0b0149c41fe3..f1be8b79663c 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/notifier.h> | 40 | #include <linux/notifier.h> |
41 | #include <linux/mtd/mtd.h> | 41 | #include <linux/mtd/mtd.h> |
42 | #include <linux/mtd/ubi.h> | 42 | #include <linux/mtd/ubi.h> |
43 | #include <asm/pgtable.h> | ||
43 | 44 | ||
44 | #include "ubi-media.h" | 45 | #include "ubi-media.h" |
45 | #include "scan.h" | 46 | #include "scan.h" |
@@ -381,14 +382,14 @@ struct ubi_wl_entry; | |||
381 | * @bad_allowed: whether the MTD device admits of bad physical eraseblocks or | 382 | * @bad_allowed: whether the MTD device admits of bad physical eraseblocks or |
382 | * not | 383 | * not |
383 | * @nor_flash: non-zero if working on top of NOR flash | 384 | * @nor_flash: non-zero if working on top of NOR flash |
385 | * @max_write_size: maximum amount of bytes the underlying flash can write at a | ||
386 | * time (MTD write buffer size) | ||
384 | * @mtd: MTD device descriptor | 387 | * @mtd: MTD device descriptor |
385 | * | 388 | * |
386 | * @peb_buf1: a buffer of PEB size used for different purposes | 389 | * @peb_buf1: a buffer of PEB size used for different purposes |
387 | * @peb_buf2: another buffer of PEB size used for different purposes | 390 | * @peb_buf2: another buffer of PEB size used for different purposes |
388 | * @buf_mutex: protects @peb_buf1 and @peb_buf2 | 391 | * @buf_mutex: protects @peb_buf1 and @peb_buf2 |
389 | * @ckvol_mutex: serializes static volume checking when opening | 392 | * @ckvol_mutex: serializes static volume checking when opening |
390 | * @dbg_peb_buf: buffer of PEB size used for debugging | ||
391 | * @dbg_buf_mutex: protects @dbg_peb_buf | ||
392 | */ | 393 | */ |
393 | struct ubi_device { | 394 | struct ubi_device { |
394 | struct cdev cdev; | 395 | struct cdev cdev; |
@@ -464,16 +465,13 @@ struct ubi_device { | |||
464 | int vid_hdr_shift; | 465 | int vid_hdr_shift; |
465 | unsigned int bad_allowed:1; | 466 | unsigned int bad_allowed:1; |
466 | unsigned int nor_flash:1; | 467 | unsigned int nor_flash:1; |
468 | int max_write_size; | ||
467 | struct mtd_info *mtd; | 469 | struct mtd_info *mtd; |
468 | 470 | ||
469 | void *peb_buf1; | 471 | void *peb_buf1; |
470 | void *peb_buf2; | 472 | void *peb_buf2; |
471 | struct mutex buf_mutex; | 473 | struct mutex buf_mutex; |
472 | struct mutex ckvol_mutex; | 474 | struct mutex ckvol_mutex; |
473 | #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID | ||
474 | void *dbg_peb_buf; | ||
475 | struct mutex dbg_buf_mutex; | ||
476 | #endif | ||
477 | }; | 475 | }; |
478 | 476 | ||
479 | extern struct kmem_cache *ubi_wl_entry_slab; | 477 | extern struct kmem_cache *ubi_wl_entry_slab; |