aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorKevin Cernekee <kpc.mtd@gmail.com>2009-04-09 01:53:49 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-05-29 10:27:07 -0400
commitaea7cea9fa9e39e71f95ad70b3daf98ba9972587 (patch)
tree1027622aa55451ab62b79e47f20c3fdee6ccaef9 /include/mtd
parent977185404046afb31d2e18fac0a076de1a20bf0e (diff)
mtd: add OOB ioctls for >4GiB devices
Signed-off-by: Kevin Cernekee <kpc.mtd@gmail.com> 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 2e32be1e3a1e..be51ae2bd0ff 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -23,6 +23,13 @@ struct mtd_oob_buf {
23 unsigned char __user *ptr; 23 unsigned char __user *ptr;
24}; 24};
25 25
26struct mtd_oob_buf64 {
27 __u64 start;
28 __u32 pad;
29 __u32 length;
30 __u64 usr_ptr;
31};
32
26#define MTD_ABSENT 0 33#define MTD_ABSENT 0
27#define MTD_RAM 1 34#define MTD_RAM 1
28#define MTD_ROM 2 35#define MTD_ROM 2
@@ -101,6 +108,8 @@ struct otp_info {
101#define ECCGETSTATS _IOR('M', 18, struct mtd_ecc_stats) 108#define ECCGETSTATS _IOR('M', 18, struct mtd_ecc_stats)
102#define MTDFILEMODE _IO('M', 19) 109#define MTDFILEMODE _IO('M', 19)
103#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)
112#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
104 113
105/* 114/*
106 * Obsolete legacy interface. Keep it in order not to break userspace 115 * Obsolete legacy interface. Keep it in order not to break userspace