91 |
91 |
92 typedef TUint32 TLinAddr; |
92 typedef TUint32 TLinAddr; |
93 typedef TUint32 TFat32Entry; |
93 typedef TUint32 TFat32Entry; |
94 typedef TUint16 TFat16Entry; |
94 typedef TUint16 TFat16Entry; |
95 |
95 |
96 const TUint16 K1KiloByteLog2 = 10; |
|
97 const TUint32 K1KiloByte = 1<<10; |
|
98 const TUint32 K1MegaByte = 1<<20; |
|
99 |
|
100 const TUint32 K1uSec = 1; ///< 1 misrosecond in TTimeIntervalMicroSeconds32 |
|
101 const TUint32 K1mSec = 1000; ///< 1 millisecond in TTimeIntervalMicroSeconds32 |
|
102 const TUint32 K1Sec = 1000*K1mSec; ///< 1 second in TTimeIntervalMicroSeconds32 |
|
103 |
|
104 _LIT8(KLit8ReplacementForUnconvertibleUnicodeCharacters, "_"); |
96 _LIT8(KLit8ReplacementForUnconvertibleUnicodeCharacters, "_"); |
105 _LIT8(KFileSystemName12,"FAT12 "); ///< Name in BPB given to a Fat12 volume |
97 _LIT8(KFileSystemName12,"FAT12 "); ///< Name in BPB given to a Fat12 volume |
106 _LIT8(KFileSystemName16,"FAT16 "); ///< Name in BPB given to a Fat16 volume |
98 _LIT8(KFileSystemName16,"FAT16 "); ///< Name in BPB given to a Fat16 volume |
107 _LIT8(KFileSystemName32,"FAT32 "); ///< Name in BPB given to a Fat32 volume |
99 _LIT8(KFileSystemName32,"FAT32 "); ///< Name in BPB given to a Fat32 volume |
108 _LIT8(KDefaultVendorID, "EPOC"); ///< Vendor Name for BPB for any volume formated using a Symbian OS device |
100 _LIT8(KDefaultVendorID, "EPOC"); ///< Vendor Name for BPB for any volume formated using a Symbian OS device |
116 const TInt KMaxVFatEntryName=13; ///< Maximum entries in a VFat name |
108 const TInt KMaxVFatEntryName=13; ///< Maximum entries in a VFat name |
117 const TInt KMaxFAT16Entries=0xFFF0; ///< Maximum number of clusters in a Fat16 Fat table, 65520 |
109 const TInt KMaxFAT16Entries=0xFFF0; ///< Maximum number of clusters in a Fat16 Fat table, 65520 |
118 const TInt KMaxFAT12Entries=0xFF0; ///< Maximum number of clusters in a Fat12 Fat table, 4080 |
110 const TInt KMaxFAT12Entries=0xFF0; ///< Maximum number of clusters in a Fat12 Fat table, 4080 |
119 const TUint8 KBootSectorMediaDescriptor=0xF8; ///< Media descriptor for a Fat volume, Generic disk |
111 const TUint8 KBootSectorMediaDescriptor=0xF8; ///< Media descriptor for a Fat volume, Generic disk |
120 const TUint8 KEntryErasedMarker=0xE5; ///< Erased entry marker for a directory entry |
112 const TUint8 KEntryErasedMarker=0xE5; ///< Erased entry marker for a directory entry |
121 |
|
122 const TUint KDefSectorSzLog2=9; ///< Log2 of the default sector size for FAT |
|
123 const TUint KDefaultSectorSize = 1 << KDefSectorSzLog2; ///< Default sector size for FAT, 512 bytes |
|
124 |
113 |
125 |
114 |
126 const TInt EOF_32Bit =0x0fffffff; ///< End of cluster chain value for Fat32 |
115 const TInt EOF_32Bit =0x0fffffff; ///< End of cluster chain value for Fat32 |
127 const TInt EOF_16Bit =0xffff; ///< End of cluster chain value for Fat16 |
116 const TInt EOF_16Bit =0xffff; ///< End of cluster chain value for Fat16 |
128 const TInt EOF_12Bit =0xfff; ///< End of cluster chain value for Fat12 |
117 const TInt EOF_12Bit =0xfff; ///< End of cluster chain value for Fat12 |