Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
/*
21
 *
22
 *
23
 *
24
 */
25
 
26
#ifndef __FS_FSINIT_H__
27
#define __FS_FSINIT_H__
28
 
29
#include <kernel/model.h>
30
 
31
#include <fs/types.h>
32
#include <fs/const.h>
33
#include <fs/sysmacro.h>
34
#include <fs/major.h>
35
#include <fs/fsind.h>
36
#include <fs/mount.h>
37
 
38
/*
39
 * file systems params structure
40
 */
41
 
42
extern NPP_mutexattr_t fsdef_mutexattr;
43
 
44
typedef struct filesystem_parms {
45
  __dev_t           device;  /* root device (default: /dev/hda1) */
46
  __uint8_t         fs_ind;  /* root device filesystem (default: FS_DEFAULT) */
47
  __uint32_t        fs_showinfo:1; /* show info on startup */
48
  void              *fs_mutexattr;
49
  struct mount_opts *fs_opts;  
50
} FILESYSTEM_PARMS;
51
 
52
#define BASE_FILESYSTEM {makedev(MAJOR_B_IDE,1),FS_DEFAULT,0, \
53
    &fsdef_mutexattr,NULL}
54
 
55
#define filesystem_def_rootdevice(par,rootdev) ((par).device=(rootdev))
56
#define filesystem_def_fs(par,fs) ((par).fs_ind=(fs))
57
#define filesystem_def_showinfo(par,show) ((par).fs_showinfo=(show))
58
#define filesystem_def_options(par,opts) ((par).fs_opts=&(opts))
59
 
60
/**/
61
 
62
int filesystem_init(FILESYSTEM_PARMS *);
63
 
64
#ifdef MSDOS_FILESYSTEM
65
int msdos_fs_init(FILESYSTEM_PARMS *);
66
#endif
67
 
68
#endif