aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2010-06-14 12:10:33 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-02 04:03:41 -0400
commit9938424f0c4d208883cbf32083ec2bfcc220f85b (patch)
treee4f7581c7543673fe63c98f9804e934a77aeb7ef /include/mtd
parent1df620637fc3b252b69c92ced486b5b6b643dd1a (diff)
mtd: add an ioctl to query the lock status of a flash sector
This patchs adds a way for user space programs to find out whether a flash sector is locked. An optional driver method in the mtd_info struct provides the information. Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/mtd-abi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index be51ae2bd0f..e12872e3c69 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -110,6 +110,7 @@ struct otp_info {
110#define MEMERASE64 _IOW('M', 20, struct erase_info_user64) 110#define MEMERASE64 _IOW('M', 20, struct erase_info_user64)
111#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64) 111#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
112#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64) 112#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
113#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
113 114
114/* 115/*
115 * Obsolete legacy interface. Keep it in order not to break userspace 116 * Obsolete legacy interface. Keep it in order not to break userspace