Rev 1063 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1063 | tullio | 1 | |
2 | pj | 2 | /* |
1063 | tullio | 3 | * This program is free software; you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by |
||
5 | * the Free Software Foundation; either version 2 of the License, or |
||
6 | * (at your option) any later version. |
||
2 | pj | 7 | * |
1063 | tullio | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
11 | * GNU General Public License for more details. |
||
2 | pj | 12 | * |
1063 | tullio | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program; if not, write to the Free Software |
||
15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
2 | pj | 16 | * |
17 | */ |
||
18 | |||
1063 | tullio | 19 | |
2 | pj | 20 | #ifndef __MSDOS_F_H__ |
21 | #define __MSDOS_F_H__ |
||
22 | |||
23 | #include <fs/types.h> |
||
24 | |||
25 | struct msdos_file_info { |
||
26 | /* these informations are redundant but are used to increase performance */ |
||
27 | __uint16_t cluster; /* actual cluster */ |
||
28 | __uint32_t lsector; /* actual logical sector */ |
||
29 | __uint16_t sectnum; /* sector number (relative to start of cluster) */ |
||
30 | __uint16_t bpos; /* byte position (relative to start of sector) */ |
||
31 | /**/ |
||
32 | __uint16_t bakcluster; /* see msdos_i.c at __advance() & __increase() */ |
||
33 | }; |
||
34 | |||
35 | #define MSDOS_F(ptr) ((ptr)->u.msdos_f) |
||
36 | |||
37 | #endif |