diff options
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r-- | include/linux/mtd/mtd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 3aa5d77c2cdb..0c079fd307a5 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -162,6 +162,20 @@ struct mtd_info { | |||
162 | /* We probably shouldn't allow XIP if the unpoint isn't a NULL */ | 162 | /* We probably shouldn't allow XIP if the unpoint isn't a NULL */ |
163 | void (*unpoint) (struct mtd_info *mtd, loff_t from, size_t len); | 163 | void (*unpoint) (struct mtd_info *mtd, loff_t from, size_t len); |
164 | 164 | ||
165 | /* Allow NOMMU mmap() to directly map the device (if not NULL) | ||
166 | * - return the address to which the offset maps | ||
167 | * - return -ENOSYS to indicate refusal to do the mapping | ||
168 | */ | ||
169 | unsigned long (*get_unmapped_area) (struct mtd_info *mtd, | ||
170 | unsigned long len, | ||
171 | unsigned long offset, | ||
172 | unsigned long flags); | ||
173 | |||
174 | /* Backing device capabilities for this device | ||
175 | * - provides mmap capabilities | ||
176 | */ | ||
177 | struct backing_dev_info *backing_dev_info; | ||
178 | |||
165 | 179 | ||
166 | int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); | 180 | int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); |
167 | int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); | 181 | int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); |