Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * |
||
3 | * |
||
4 | * |
||
5 | * |
||
6 | */ |
||
7 | |||
8 | #ifndef __MSDOS_S_H__ |
||
9 | #define __MSDOS_S_H__ |
||
10 | |||
11 | #include <fs/types.h> |
||
12 | |||
13 | struct msdos_super_block { |
||
14 | __uint32_t lfat; /* fat start at? (logical sector) */ |
||
15 | __uint32_t lroot; /* root directory start at? (logical sector) */ |
||
16 | __uint32_t ldata; /* data start at? (logical sector) */ |
||
17 | __uint32_t lsize; /* numbers of sectors in volume */ |
||
18 | |||
19 | __uint16_t spc; /* sectors per cluster */ |
||
20 | __uint32_t spf; /* sectors per fat */ |
||
21 | __uint32_t rootsect; /* root directory size in sectors */ |
||
22 | __uint16_t nfat; /* number of fats */ |
||
23 | |||
24 | __uint16_t stclust; /* cluster on which begin search for free cluster */ |
||
25 | }; |
||
26 | |||
27 | #define MSDOS_SB(ptr) (ptr->u.msdos_sb) |
||
28 | |||
29 | #endif |