Rev 3 | 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 | */ |
||
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> |
||
80 | pj | 37 | #include "ll/sys/cdefs.h" |
2 | pj | 38 | |
80 | pj | 39 | __BEGIN_DECLS |
40 | |||
2 | pj | 41 | /* |
42 | * file systems params structure |
||
43 | */ |
||
44 | |||
45 | extern NPP_mutexattr_t fsdef_mutexattr; |
||
46 | |||
47 | typedef struct filesystem_parms { |
||
48 | __dev_t device; /* root device (default: /dev/hda1) */ |
||
49 | __uint8_t fs_ind; /* root device filesystem (default: FS_DEFAULT) */ |
||
50 | __uint32_t fs_showinfo:1; /* show info on startup */ |
||
51 | void *fs_mutexattr; |
||
52 | struct mount_opts *fs_opts; |
||
53 | } FILESYSTEM_PARMS; |
||
54 | |||
55 | #define BASE_FILESYSTEM {makedev(MAJOR_B_IDE,1),FS_DEFAULT,0, \ |
||
56 | &fsdef_mutexattr,NULL} |
||
57 | |||
58 | #define filesystem_def_rootdevice(par,rootdev) ((par).device=(rootdev)) |
||
59 | #define filesystem_def_fs(par,fs) ((par).fs_ind=(fs)) |
||
60 | #define filesystem_def_showinfo(par,show) ((par).fs_showinfo=(show)) |
||
61 | #define filesystem_def_options(par,opts) ((par).fs_opts=&(opts)) |
||
62 | |||
63 | /**/ |
||
64 | |||
65 | int filesystem_init(FILESYSTEM_PARMS *); |
||
66 | |||
67 | #ifdef MSDOS_FILESYSTEM |
||
68 | int msdos_fs_init(FILESYSTEM_PARMS *); |
||
69 | #endif |
||
70 | |||
80 | pj | 71 | __END_DECLS |
2 | pj | 72 | #endif |