diff options
author | Kevin | 2014-11-15 10:00:36 +0800 |
---|---|---|
committer | Kevin | 2014-11-15 10:00:36 +0800 |
commit | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (patch) | |
tree | de942df665fac4bac0d9cb7ae86910fe937b0c1a /ANDROID_3.4.5/include/mtd/mtd-abi.h | |
parent | 392e8802486cb573b916e746010e141a75f507e6 (diff) | |
download | FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.gz FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.bz2 FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.zip |
add via modify part source code for wm8880 4.4 kitkat
Diffstat (limited to 'ANDROID_3.4.5/include/mtd/mtd-abi.h')
-rw-r--r-- | ANDROID_3.4.5/include/mtd/mtd-abi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/include/mtd/mtd-abi.h b/ANDROID_3.4.5/include/mtd/mtd-abi.h index 36eace03..fd098721 100644 --- a/ANDROID_3.4.5/include/mtd/mtd-abi.h +++ b/ANDROID_3.4.5/include/mtd/mtd-abi.h @@ -146,6 +146,27 @@ struct otp_info { __u32 locked; }; +struct env_info_user { + char varname[200]; + char *varpoint; + char varval[512]; + int varlen; +}; + +enum { + SIGNED_IMAGE_TYPE_WLOAD, + SIGNED_IMAGE_TYPE_UBOOT, + SIGNED_IMAGE_TYPE_UBOOT_ENV, +}; + +struct write_signed_image { + int type; + char * img_data; + int img_len; + char * sig_data; + int sig_len; + int flags; /* == 0 now */ +}; /* * Note, the following ioctl existed in the past and was removed: * #define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo) @@ -202,6 +223,9 @@ struct otp_info { * without OOB, e.g., NOR flash. */ #define MEMWRITE _IOWR('M', 24, struct mtd_write_req) +#define MEMGETENV _IOR('M', 128, struct env_info_user) +#define MEMSETENV _IOR('M', 129, struct env_info_user) +#define MEM_WRITE_SIGNED_IMAGE _IOR('M', 130, struct write_signed_image) /* * Obsolete legacy interface. Keep it in order not to break userspace |