~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/mtd/inftl-user.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  * Parts of INFTL headers shared with userspace
  4  *
  5  */
  6 
  7 #ifndef __MTD_INFTL_USER_H__
  8 #define __MTD_INFTL_USER_H__
  9 
 10 #include <linux/types.h>
 11 
 12 #define OSAK_VERSION    0x5120
 13 #define PERCENTUSED     98
 14 
 15 #define SECTORSIZE      512
 16 
 17 /* Block Control Information */
 18 
 19 struct inftl_bci {
 20         __u8 ECCsig[6];
 21         __u8 Status;
 22         __u8 Status1;
 23 } __attribute__((packed));
 24 
 25 struct inftl_unithead1 {
 26         __u16 virtualUnitNo;
 27         __u16 prevUnitNo;
 28         __u8 ANAC;
 29         __u8 NACs;
 30         __u8 parityPerField;
 31         __u8 discarded;
 32 } __attribute__((packed));
 33 
 34 struct inftl_unithead2 {
 35         __u8 parityPerField;
 36         __u8 ANAC;
 37         __u16 prevUnitNo;
 38         __u16 virtualUnitNo;
 39         __u8 NACs;
 40         __u8 discarded;
 41 } __attribute__((packed));
 42 
 43 struct inftl_unittail {
 44         __u8 Reserved[4];
 45         __u16 EraseMark;
 46         __u16 EraseMark1;
 47 } __attribute__((packed));
 48 
 49 union inftl_uci {
 50         struct inftl_unithead1 a;
 51         struct inftl_unithead2 b;
 52         struct inftl_unittail c;
 53 };
 54 
 55 struct inftl_oob {
 56         struct inftl_bci b;
 57         union inftl_uci u;
 58 };
 59 
 60 
 61 /* INFTL Media Header */
 62 
 63 struct INFTLPartition {
 64         __u32 virtualUnits;
 65         __u32 firstUnit;
 66         __u32 lastUnit;
 67         __u32 flags;
 68         __u32 spareUnits;
 69         __u32 Reserved0;
 70         __u32 Reserved1;
 71 } __attribute__((packed));
 72 
 73 struct INFTLMediaHeader {
 74         char bootRecordID[8];
 75         __u32 NoOfBootImageBlocks;
 76         __u32 NoOfBinaryPartitions;
 77         __u32 NoOfBDTLPartitions;
 78         __u32 BlockMultiplierBits;
 79         __u32 FormatFlags;
 80         __u32 OsakVersion;
 81         __u32 PercentUsed;
 82         struct INFTLPartition Partitions[4];
 83 } __attribute__((packed));
 84 
 85 /* Partition flag types */
 86 #define INFTL_BINARY    0x20000000
 87 #define INFTL_BDTL      0x40000000
 88 #define INFTL_LAST      0x80000000
 89 
 90 #endif /* __MTD_INFTL_USER_H__ */
 91 
 92 
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php