diff options
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/mtd-abi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index 1885aa98b311..1a16046b1d97 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -60,6 +60,16 @@ enum { | |||
60 | MTD_OPS_RAW = 2, | 60 | MTD_OPS_RAW = 2, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | struct mtd_write_req { | ||
64 | __u64 start; | ||
65 | __u64 len; | ||
66 | __u64 ooblen; | ||
67 | __u64 usr_data; | ||
68 | __u64 usr_oob; | ||
69 | __u8 mode; | ||
70 | __u8 padding[7]; | ||
71 | }; | ||
72 | |||
63 | #define MTD_ABSENT 0 | 73 | #define MTD_ABSENT 0 |
64 | #define MTD_RAM 1 | 74 | #define MTD_RAM 1 |
65 | #define MTD_ROM 2 | 75 | #define MTD_ROM 2 |
@@ -147,6 +157,7 @@ struct otp_info { | |||
147 | #define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64) | 157 | #define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64) |
148 | #define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64) | 158 | #define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64) |
149 | #define MEMISLOCKED _IOR('M', 23, struct erase_info_user) | 159 | #define MEMISLOCKED _IOR('M', 23, struct erase_info_user) |
160 | #define MEMWRITE _IOWR('M', 24, struct mtd_write_req) | ||
150 | 161 | ||
151 | /* | 162 | /* |
152 | * Obsolete legacy interface. Keep it in order not to break userspace | 163 | * Obsolete legacy interface. Keep it in order not to break userspace |