Subversion Repositories NaviCtrl

Rev

Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 433
Line 302... Line 302...
302
#define CLUSTER_UNDEFINED       0x0000
302
#define CLUSTER_UNDEFINED       0x0000
Line 303... Line 303...
303
 
303
 
304
#define FSTATE_UNUSED   0
304
#define FSTATE_UNUSED   0
Line 305... Line -...
305
#define FSTATE_USED             1
-
 
306
 
-
 
307
typedef struct
-
 
308
{
-
 
309
        u8      IsValid;                                // 0 means invalid, else valid
-
 
310
        u8      SectorsPerCluster;              // how many sectors does a cluster contain?
-
 
311
        u8      FatCopies;                              // Numbers of copies of the FAT
-
 
312
        u16     MaxRootEntries;                 // Possible number of entries in the root directory.
-
 
313
        u16     SectorsPerFat;                  // how many sectors does a fat16 contain?
-
 
314
        u32 FirstFatSector;                     // sector of the start of the fat
-
 
315
        u32 FirstRootDirSector;         // sector of the rootdirectory
-
 
316
        u32 FirstDataSector;            // sector of the first cluster containing data (cluster2).
-
 
317
        u32 LastDataSector;                     // the last data sector of the partition
-
 
318
        u8  VolumeLabel[12];        // the volume label
-
 
319
        u32     CurrentWorkingDirectory;// A pointer to the directory we are actual using
-
 
Line 320... Line 305...
320
        s8      PathToCwd[256];                 // a string containing the complete path to the current working directory
305
#define FSTATE_USED             1
Line 321... Line 306...
321
}   __attribute__((packed)) Partition_t;
306