diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-11 13:18:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-11 13:18:18 -0400 |
commit | 200d481f28be4522464bb849dd0eb5f8cb6be781 (patch) | |
tree | 8cd00ead1b202dfd377cf34000a5193959aa2e8b /include/mtd/mtd-abi.h | |
parent | f43a64c5e1a65d12b9b53a35ed2d5db441fcb64c (diff) | |
parent | 97f927a4d7dbccde0a854a62c3ea54d90bae8679 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6
Diffstat (limited to 'include/mtd/mtd-abi.h')
-rw-r--r-- | include/mtd/mtd-abi.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index a76ab898f445..428d9122940b 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: mtd-abi.h,v 1.7 2004/11/23 15:37:32 gleixner Exp $ | 2 | * $Id: mtd-abi.h,v 1.11 2005/05/19 16:08:58 gleixner Exp $ |
3 | * | 3 | * |
4 | * Portions of MTD ABI definition which are shared by kernel and user space | 4 | * Portions of MTD ABI definition which are shared by kernel and user space |
5 | */ | 5 | */ |
@@ -29,6 +29,7 @@ struct mtd_oob_buf { | |||
29 | #define MTD_NORFLASH 3 | 29 | #define MTD_NORFLASH 3 |
30 | #define MTD_NANDFLASH 4 | 30 | #define MTD_NANDFLASH 4 |
31 | #define MTD_PEROM 5 | 31 | #define MTD_PEROM 5 |
32 | #define MTD_DATAFLASH 6 | ||
32 | #define MTD_OTHER 14 | 33 | #define MTD_OTHER 14 |
33 | #define MTD_UNKNOWN 15 | 34 | #define MTD_UNKNOWN 15 |
34 | 35 | ||
@@ -60,6 +61,12 @@ struct mtd_oob_buf { | |||
60 | #define MTD_NANDECC_PLACE 1 // Use the given placement in the structure (YAFFS1 legacy mode) | 61 | #define MTD_NANDECC_PLACE 1 // Use the given placement in the structure (YAFFS1 legacy mode) |
61 | #define MTD_NANDECC_AUTOPLACE 2 // Use the default placement scheme | 62 | #define MTD_NANDECC_AUTOPLACE 2 // Use the default placement scheme |
62 | #define MTD_NANDECC_PLACEONLY 3 // Use the given placement in the structure (Do not store ecc result on read) | 63 | #define MTD_NANDECC_PLACEONLY 3 // Use the given placement in the structure (Do not store ecc result on read) |
64 | #define MTD_NANDECC_AUTOPL_USR 4 // Use the given autoplacement scheme rather than using the default | ||
65 | |||
66 | /* OTP mode selection */ | ||
67 | #define MTD_OTP_OFF 0 | ||
68 | #define MTD_OTP_FACTORY 1 | ||
69 | #define MTD_OTP_USER 2 | ||
63 | 70 | ||
64 | struct mtd_info_user { | 71 | struct mtd_info_user { |
65 | uint8_t type; | 72 | uint8_t type; |
@@ -80,6 +87,12 @@ struct region_info_user { | |||
80 | uint32_t regionindex; | 87 | uint32_t regionindex; |
81 | }; | 88 | }; |
82 | 89 | ||
90 | struct otp_info { | ||
91 | uint32_t start; | ||
92 | uint32_t length; | ||
93 | uint32_t locked; | ||
94 | }; | ||
95 | |||
83 | #define MEMGETINFO _IOR('M', 1, struct mtd_info_user) | 96 | #define MEMGETINFO _IOR('M', 1, struct mtd_info_user) |
84 | #define MEMERASE _IOW('M', 2, struct erase_info_user) | 97 | #define MEMERASE _IOW('M', 2, struct erase_info_user) |
85 | #define MEMWRITEOOB _IOWR('M', 3, struct mtd_oob_buf) | 98 | #define MEMWRITEOOB _IOWR('M', 3, struct mtd_oob_buf) |
@@ -92,6 +105,10 @@ struct region_info_user { | |||
92 | #define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo) | 105 | #define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo) |
93 | #define MEMGETBADBLOCK _IOW('M', 11, loff_t) | 106 | #define MEMGETBADBLOCK _IOW('M', 11, loff_t) |
94 | #define MEMSETBADBLOCK _IOW('M', 12, loff_t) | 107 | #define MEMSETBADBLOCK _IOW('M', 12, loff_t) |
108 | #define OTPSELECT _IOR('M', 13, int) | ||
109 | #define OTPGETREGIONCOUNT _IOW('M', 14, int) | ||
110 | #define OTPGETREGIONINFO _IOW('M', 15, struct otp_info) | ||
111 | #define OTPLOCK _IOR('M', 16, struct otp_info) | ||
95 | 112 | ||
96 | struct nand_oobinfo { | 113 | struct nand_oobinfo { |
97 | uint32_t useecc; | 114 | uint32_t useecc; |