1 typedef struct Dosboot Dosboot;
2 typedef struct Dos Dos;
3 typedef struct Dosdir Dosdir;
4 typedef struct Dosfile Dosfile;
5 typedef struct Dospart Dospart;
9 uchar flag; /* active flag */
10 uchar shead; /* starting head */
11 uchar scs[2]; /* starting cylinder/sector */
12 uchar type; /* partition type */
13 uchar ehead; /* ending head */
14 uchar ecs[2]; /* ending cylinder/sector */
15 uchar start[4]; /* starting sector */
16 uchar len[4]; /* length in sectors */
31 Dos *dos; /* owning dos file system */
36 long pstart; /* physical start cluster address */
37 long pcurrent; /* physical current cluster address */
38 long lcurrent; /* logical current cluster address */
43 long start; /* start of file system */
44 int sectsize; /* in bytes */
45 int clustsize; /* in sectors */
46 int clustbytes; /* in bytes */
47 int nresrv; /* sectors */
48 int nfats; /* usually 2 */
49 int rootsize; /* number of entries */
50 int volsize; /* in sectors */
52 int fatsize; /* in sectors */
54 int fatbits; /* 12 or 16 */
55 long fataddr; /* sector number */
62 extern int dosinit(Fs*);