From acc46ca4f0e1332fb5dd47f4c24b4f71bdb99df5 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 28 Jun 2010 10:21:57 +0200 Subject: add partition mtd support Signed-off-by: Sascha Hauer --- include/driver.h | 1 + include/linux/mtd/mtd-abi.h | 1 + include/linux/mtd/mtd.h | 3 +++ 3 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/driver.h b/include/driver.h index 6950c02047..ae3e7774b1 100644 --- a/include/driver.h +++ b/include/driver.h @@ -307,6 +307,7 @@ struct cdev { size_t size; unsigned int flags; int open; + struct mtd_info *mtd; }; int devfs_create(struct cdev *); diff --git a/include/linux/mtd/mtd-abi.h b/include/linux/mtd/mtd-abi.h index 04b422792f..33e1fe2805 100644 --- a/include/linux/mtd/mtd-abi.h +++ b/include/linux/mtd/mtd-abi.h @@ -62,6 +62,7 @@ struct mtd_info_user { * (TODO: remove at some point) */ uint32_t ecctype; uint32_t eccsize; + struct mtd_info *mtd; }; struct region_info_user { diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index ca98a16a38..39ee9921b8 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -229,6 +229,9 @@ struct mtd_notifier { struct list_head list; }; +struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset, size_t size, + unsigned long flags, const char *name); +void mtd_del_partition(struct mtd_info *mtd); extern void register_mtd_user (struct mtd_notifier *new); extern int unregister_mtd_user (struct mtd_notifier *old); -- cgit v1.2.3