Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * |
||
3 | * |
||
4 | * |
||
5 | * |
||
6 | */ |
||
7 | |||
8 | #ifndef __MSDOS_F_H__ |
||
9 | #define __MSDOS_F_H__ |
||
10 | |||
11 | #include <fs/types.h> |
||
12 | |||
13 | struct msdos_file_info { |
||
14 | /* these informations are redundant but are used to increase performance */ |
||
15 | __uint16_t cluster; /* actual cluster */ |
||
16 | __uint32_t lsector; /* actual logical sector */ |
||
17 | __uint16_t sectnum; /* sector number (relative to start of cluster) */ |
||
18 | __uint16_t bpos; /* byte position (relative to start of sector) */ |
||
19 | /**/ |
||
20 | __uint16_t bakcluster; /* see msdos_i.c at __advance() & __increase() */ |
||
21 | }; |
||
22 | |||
23 | #define MSDOS_F(ptr) ((ptr)->u.msdos_f) |
||
24 | |||
25 | #endif |