Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | 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_S_H__
21
#define __MSDOS_S_H__
22
 
23
#include <fs/types.h>
24
 
25
struct msdos_super_block {
26
  __uint32_t lfat;      /* fat start at? (logical sector) */
27
  __uint32_t lroot;     /* root directory start at? (logical sector) */
28
  __uint32_t ldata;     /* data start at? (logical sector) */
29
  __uint32_t lsize;     /* numbers of sectors in volume */
30
 
31
  __uint16_t spc;       /* sectors per cluster */
32
  __uint32_t spf;       /* sectors per fat */
33
  __uint32_t rootsect;  /* root directory size in sectors */
34
  __uint16_t nfat;      /* number of fats */
35
 
36
  __uint16_t stclust;   /* cluster on which begin search for free cluster */
37
};
38
 
39
#define MSDOS_SB(ptr) (ptr->u.msdos_sb)
40
 
41
#endif