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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [fat/] [fatfs_syms.c] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1628 jcastillo
/*
2
 * linux/fs/fat/fatfs_syms.c
3
 *
4
 * Exported kernel symbols for the low-level FAT-based fs support.
5
 *
6
 */
7
#define ASC_LINUX_VERSION(V, P, S)      (((V) * 65536) + ((P) * 256) + (S))
8
#include <linux/version.h>
9
#include <linux/module.h>
10
 
11
#include <linux/mm.h>
12
#include <linux/msdos_fs.h>
13
 
14
#include "msbuffer.h"
15
 
16
extern struct file_operations fat_dir_operations;
17
 
18
#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
19
#define X(sym) EXPORT_SYMBOL(sym);
20
#define X_PUNCT ;
21
#else
22
#define X_PUNCT ,
23
static struct symbol_table fat_syms = {
24
#include <linux/symtab_begin.h>
25
#endif
26
X(fat_add_cluster) X_PUNCT
27
X(fat_bmap) X_PUNCT
28
X(fat_brelse) X_PUNCT
29
X(fat_cache_inval_inode) X_PUNCT
30
X(fat_esc2uni) X_PUNCT
31
X(fat_date_unix2dos) X_PUNCT
32
X(fat_dir_operations) X_PUNCT
33
X(fat_file_read) X_PUNCT
34
X(fat_file_write) X_PUNCT
35
X(fat_fs_panic) X_PUNCT
36
X(fat_get_entry) X_PUNCT
37
X(fat_lock_creation) X_PUNCT
38
X(fat_mark_buffer_dirty) X_PUNCT
39
X(fat_mmap) X_PUNCT
40
X(fat_notify_change) X_PUNCT
41
X(fat_parent_ino) X_PUNCT
42
X(fat_put_inode) X_PUNCT
43
X(fat_put_super) X_PUNCT
44
X(fat_read_inode) X_PUNCT
45
X(fat_read_super) X_PUNCT
46
X(fat_readdirx) X_PUNCT
47
X(fat_readdir) X_PUNCT
48
X(fat_scan) X_PUNCT
49
X(fat_smap) X_PUNCT
50
X(fat_statfs) X_PUNCT
51
X(fat_truncate) X_PUNCT
52
X(fat_uni2esc) X_PUNCT
53
X(fat_unlock_creation) X_PUNCT
54
X(fat_write_inode) X_PUNCT
55
#if LINUX_VERSION_CODE < ASC_LINUX_VERSION(2,1,0)
56
#include <linux/symtab_end.h>
57
};
58
#endif
59
 
60
int init_fat_fs(void)
61
{
62
#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
63
        return 0;
64
#else
65
        return register_symtab(&fat_syms);
66
#endif
67
}

powered by: WebSVN 2.1.0

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