Subversion Repositories shark

Rev

Rev 80 | Go to most recent revision | Details | Compare with Previous | 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
 */
1063 tullio 20
 
2 pj 21
/*
1063 tullio 22
 * This program is free software; you can redistribute it and/or modify
23
 * it under the terms of the GNU General Public License as published by
24
 * the Free Software Foundation; either version 2 of the License, or
25
 * (at your option) any later version.
2 pj 26
 *
1063 tullio 27
 * This program is distributed in the hope that it will be useful,
28
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 * GNU General Public License for more details.
2 pj 31
 *
1063 tullio 32
 * You should have received a copy of the GNU General Public License
33
 * along with this program; if not, write to the Free Software
34
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
2 pj 35
 *
36
 */
37
 
1063 tullio 38
 
2 pj 39
#ifndef __FS_FSINIT_H__
40
#define __FS_FSINIT_H__
41
 
42
#include <kernel/model.h>
43
 
44
#include <fs/types.h>
45
#include <fs/const.h>
46
#include <fs/sysmacro.h>
47
#include <fs/major.h>
48
#include <fs/fsind.h>
49
#include <fs/mount.h>
80 pj 50
#include "ll/sys/cdefs.h"
2 pj 51
 
80 pj 52
__BEGIN_DECLS
53
 
2 pj 54
/*
55
 * file systems params structure
56
 */
57
 
58
extern NPP_mutexattr_t fsdef_mutexattr;
59
 
60
typedef struct filesystem_parms {
61
  __dev_t           device;  /* root device (default: /dev/hda1) */
62
  __uint8_t         fs_ind;  /* root device filesystem (default: FS_DEFAULT) */
63
  __uint32_t        fs_showinfo:1; /* show info on startup */
64
  void              *fs_mutexattr;
65
  struct mount_opts *fs_opts;  
66
} FILESYSTEM_PARMS;
67
 
68
#define BASE_FILESYSTEM {makedev(MAJOR_B_IDE,1),FS_DEFAULT,0, \
69
    &fsdef_mutexattr,NULL}
70
 
71
#define filesystem_def_rootdevice(par,rootdev) ((par).device=(rootdev))
72
#define filesystem_def_fs(par,fs) ((par).fs_ind=(fs))
73
#define filesystem_def_showinfo(par,show) ((par).fs_showinfo=(show))
74
#define filesystem_def_options(par,opts) ((par).fs_opts=&(opts))
75
 
76
/**/
77
 
78
int filesystem_init(FILESYSTEM_PARMS *);
79
 
80
#ifdef MSDOS_FILESYSTEM
81
int msdos_fs_init(FILESYSTEM_PARMS *);
82
#endif
83
 
80 pj 84
__END_DECLS
2 pj 85
#endif