1 /*
2  * Export MIPS64-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, 1999, 2000, 2001 by Ralf Baechle
9  * Copyright (C) 1999, 2000, 2001 Silicon Graphics, Inc.
10  */
11 #include <linux/config.h>
12 #include <linux/module.h>
13 #include <linux/string.h>
14 #include <linux/mm.h>
15 #include <linux/interrupt.h>
16 #include <linux/in6.h>
17 #include <linux/pci.h>
18 #include <linux/tty.h>
19 
20 #include <asm/bootinfo.h>
21 #include <asm/dma.h>
22 #if defined(CONFIG_BLK_DEV_FD) || defined(CONFIG_BLK_DEV_FD_MODULE)
23 #include <asm/floppy.h>
24 #endif
25 #include <asm/io.h>
26 #include <asm/page.h>
27 #include <asm/pgalloc.h>
28 #include <asm/semaphore.h>
29 #include <asm/softirq.h>
30 #include <asm/uaccess.h>
31 #include <asm/checksum.h>
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 
45 #ifdef CONFIG_EISA
46 EXPORT_SYMBOL(EISA_bus);
47 #endif
48 
49 /*
50  * String functions
51  */
52 EXPORT_SYMBOL_NOVERS(memcmp);
53 EXPORT_SYMBOL_NOVERS(memset);
54 EXPORT_SYMBOL_NOVERS(memcpy);
55 EXPORT_SYMBOL_NOVERS(memmove);
56 EXPORT_SYMBOL_NOVERS(memscan);
57 EXPORT_SYMBOL_NOVERS(strcpy);
58 EXPORT_SYMBOL_NOVERS(strncpy);
59 EXPORT_SYMBOL_NOVERS(strcat);
60 EXPORT_SYMBOL_NOVERS(strchr);
61 EXPORT_SYMBOL_NOVERS(strncmp);
62 EXPORT_SYMBOL_NOVERS(strlen);
63 EXPORT_SYMBOL_NOVERS(strncat);
64 EXPORT_SYMBOL_NOVERS(strcmp);
65 EXPORT_SYMBOL_NOVERS(strnlen);
66 EXPORT_SYMBOL_NOVERS(strrchr);
67 EXPORT_SYMBOL_NOVERS(strtok);
68 EXPORT_SYMBOL_NOVERS(strpbrk);
69 
70 EXPORT_SYMBOL(clear_page);
71 EXPORT_SYMBOL(kernel_thread);
72 
73 /*
74  * Userspace access stuff.
75  */
76 EXPORT_SYMBOL_NOVERS(__copy_user);
77 EXPORT_SYMBOL_NOVERS(__bzero);
78 EXPORT_SYMBOL_NOVERS(__strncpy_from_user_nocheck_asm);
79 EXPORT_SYMBOL_NOVERS(__strncpy_from_user_asm);
80 EXPORT_SYMBOL_NOVERS(__strlen_user_nocheck_asm);
81 EXPORT_SYMBOL_NOVERS(__strlen_user_asm);
82 EXPORT_SYMBOL_NOVERS(__strnlen_user_nocheck_asm);
83 EXPORT_SYMBOL_NOVERS(__strnlen_user_asm);
84 
85 
86 /* Networking helper routines. */
87 EXPORT_SYMBOL(csum_partial_copy);
88 
89 EXPORT_SYMBOL(invalid_pte_table);
90 
91 /*
92  * Kernel hacking ...
93  */
94 #include <asm/branch.h>
95 #include <linux/sched.h>
96 
97 #ifdef CONFIG_VT
98 EXPORT_SYMBOL(screen_info);
99 #endif
100 
101 EXPORT_SYMBOL(get_wchan);
102