a905d8f334fe603a7b96f125f3ee69fa4b42b383
[linux-flexiantxendom0-3.2.10.git] / arch / mips / kernel / mips_ksyms.c
1 /*
2  * Export MIPS-specific functions needed for loadable modules.
3  *
4  * This file is subject to the terms and conditions of the GNU General Public
5  * License.  See the file "COPYING" in the main directory of this archive
6  * for more details.
7  *
8  * Copyright (C) 1996, 1997, 1998, 2000, 2001 by Ralf Baechle
9  */
10 #include <linux/config.h>
11 #include <linux/module.h>
12 #include <linux/string.h>
13 #include <linux/mm.h>
14 #include <linux/interrupt.h>
15 #include <linux/in6.h>
16 #include <linux/pci.h>
17 #include <linux/tty.h>
18 #include <linux/ide.h>
19
20 #include <asm/bootinfo.h>
21 #include <asm/checksum.h>
22 #include <asm/dma.h>
23 #include <asm/io.h>
24 #include <asm/page.h>
25 #include <asm/pgalloc.h>
26 #include <asm/semaphore.h>
27 #include <asm/softirq.h>
28 #include <asm/uaccess.h>
29 #ifdef CONFIG_BLK_DEV_FD
30 #include <asm/floppy.h>
31 #endif
32
33 extern void *__bzero(void *__s, size_t __count);
34 extern long __strncpy_from_user_nocheck_asm(char *__to,
35                                             const char *__from, long __len);
36 extern long __strncpy_from_user_asm(char *__to, const char *__from,
37                                     long __len);
38 extern long __strlen_user_nocheck_asm(const char *s);
39 extern long __strlen_user_asm(const char *s);
40 extern long __strnlen_user_nocheck_asm(const char *s);
41 extern long __strnlen_user_asm(const char *s);
42
43 EXPORT_SYMBOL(mips_machtype);
44 #ifdef CONFIG_EISA
45 EXPORT_SYMBOL(EISA_bus);
46 #endif
47
48 /*
49  * String functions
50  */
51 EXPORT_SYMBOL_NOVERS(memcmp);
52 EXPORT_SYMBOL_NOVERS(memset);
53 EXPORT_SYMBOL_NOVERS(memcpy);
54 EXPORT_SYMBOL_NOVERS(memmove);
55 EXPORT_SYMBOL_NOVERS(strcat);
56 EXPORT_SYMBOL_NOVERS(strchr);
57 EXPORT_SYMBOL_NOVERS(strlen);
58 EXPORT_SYMBOL_NOVERS(strpbrk);
59 EXPORT_SYMBOL_NOVERS(strncat);
60 EXPORT_SYMBOL_NOVERS(strnlen);
61 EXPORT_SYMBOL_NOVERS(strrchr);
62 EXPORT_SYMBOL_NOVERS(strstr);
63
64 EXPORT_SYMBOL(_clear_page);
65 EXPORT_SYMBOL(kernel_thread);
66
67 /*
68  * Userspace access stuff.
69  */
70 EXPORT_SYMBOL_NOVERS(__copy_user);
71 EXPORT_SYMBOL_NOVERS(__bzero);
72 EXPORT_SYMBOL_NOVERS(__strncpy_from_user_nocheck_asm);
73 EXPORT_SYMBOL_NOVERS(__strncpy_from_user_asm);
74 EXPORT_SYMBOL_NOVERS(__strlen_user_nocheck_asm);
75 EXPORT_SYMBOL_NOVERS(__strlen_user_asm);
76 EXPORT_SYMBOL_NOVERS(__strnlen_user_nocheck_asm);
77 EXPORT_SYMBOL_NOVERS(__strnlen_user_asm);
78
79 EXPORT_SYMBOL(invalid_pte_table);
80
81 /*
82  * Semaphore stuff
83  */
84 EXPORT_SYMBOL(__down);
85 EXPORT_SYMBOL(__down_interruptible);
86 EXPORT_SYMBOL(__down_trylock);
87 EXPORT_SYMBOL(__up);
88
89 /*
90  * Kernel hacking ...
91  */
92 #include <asm/branch.h>
93 #include <linux/sched.h>
94
95 #ifdef CONFIG_VT
96 EXPORT_SYMBOL(screen_info);
97 #endif
98
99 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
100 EXPORT_SYMBOL(ide_ops);
101 #endif
102
103 EXPORT_SYMBOL(get_wchan);