Home | History | Annotate | Download | only in mtd
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __MTD_INFTL_USER_H__
     20 #define __MTD_INFTL_USER_H__
     21 #include <linux/types.h>
     22 #define OSAK_VERSION 0x5120
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define PERCENTUSED 98
     25 #define SECTORSIZE 512
     26 struct inftl_bci {
     27  __u8 ECCsig[6];
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  __u8 Status;
     30  __u8 Status1;
     31 } __attribute__((packed));
     32 struct inftl_unithead1 {
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  __u16 virtualUnitNo;
     35  __u16 prevUnitNo;
     36  __u8 ANAC;
     37  __u8 NACs;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  __u8 parityPerField;
     40  __u8 discarded;
     41 } __attribute__((packed));
     42 struct inftl_unithead2 {
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  __u8 parityPerField;
     45  __u8 ANAC;
     46  __u16 prevUnitNo;
     47  __u16 virtualUnitNo;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  __u8 NACs;
     50  __u8 discarded;
     51 } __attribute__((packed));
     52 struct inftl_unittail {
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  __u8 Reserved[4];
     55  __u16 EraseMark;
     56  __u16 EraseMark1;
     57 } __attribute__((packed));
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 union inftl_uci {
     60  struct inftl_unithead1 a;
     61  struct inftl_unithead2 b;
     62  struct inftl_unittail c;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 };
     65 struct inftl_oob {
     66  struct inftl_bci b;
     67  union inftl_uci u;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 };
     70 struct INFTLPartition {
     71  __u32 virtualUnits;
     72  __u32 firstUnit;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  __u32 lastUnit;
     75  __u32 flags;
     76  __u32 spareUnits;
     77  __u32 Reserved0;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  __u32 Reserved1;
     80 } __attribute__((packed));
     81 struct INFTLMediaHeader {
     82  char bootRecordID[8];
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  __u32 NoOfBootImageBlocks;
     85  __u32 NoOfBinaryPartitions;
     86  __u32 NoOfBDTLPartitions;
     87  __u32 BlockMultiplierBits;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  __u32 FormatFlags;
     90  __u32 OsakVersion;
     91  __u32 PercentUsed;
     92  struct INFTLPartition Partitions[4];
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 } __attribute__((packed));
     95 #define INFTL_BINARY 0x20000000
     96 #define INFTL_BDTL 0x40000000
     97 #define INFTL_LAST 0x80000000
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #endif
    100