OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [fs/] [vfat/] [vfatfs_syms.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * linux/fs/msdos/vfatfs_syms.c
3
 *
4
 * Exported kernel symbols for the VFAT filesystem.
5
 * These symbols are used by dmsdos.
6
 */
7
 
8
#define ASC_LINUX_VERSION(V, P, S)      (((V) * 65536) + ((P) * 256) + (S))
9
#include <linux/version.h>
10
#include <linux/module.h>
11
 
12
#include <linux/mm.h>
13
#include <linux/msdos_fs.h>
14
 
15
struct file_system_type vfat_fs_type = {
16
        vfat_read_super, "vfat", 1, NULL
17
};
18
 
19
#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
20
#define X(sym) EXPORT_SYMBOL(sym);
21
#define X_PUNCT ;
22
#else
23
#define X_PUNCT ,
24
static struct symbol_table vfat_syms = {
25
#include <linux/symtab_begin.h>
26
#endif
27
X(vfat_create) X_PUNCT
28
X(vfat_unlink) X_PUNCT
29
X(vfat_unlink_uvfat) X_PUNCT
30
X(vfat_mkdir) X_PUNCT
31
X(vfat_rmdir) X_PUNCT
32
X(vfat_rename) X_PUNCT
33
X(vfat_put_super) X_PUNCT
34
X(vfat_read_super) X_PUNCT
35
X(vfat_read_inode) X_PUNCT
36
X(vfat_lookup) X_PUNCT
37
#if LINUX_VERSION_CODE < ASC_LINUX_VERSION(2,1,0)
38
#include <linux/symtab_end.h>
39
};
40
#endif
41
 
42
int init_vfat_fs(void)
43
{
44
#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
45
        return register_filesystem(&vfat_fs_type);
46
#else
47
        int status;
48
 
49
        if ((status = register_filesystem(&vfat_fs_type)) == 0)
50
                status = register_symtab(&vfat_syms);
51
        return status;
52
#endif
53
}
54
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.