Merge branch 'master'
[linux-2.6] / arch / frv / kernel / frv_ksyms.c
1 #include <linux/module.h>
2 #include <linux/linkage.h>
3 #include <linux/sched.h>
4 #include <linux/string.h>
5 #include <linux/mm.h>
6 #include <linux/user.h>
7 #include <linux/elfcore.h>
8 #include <linux/in6.h>
9 #include <linux/interrupt.h>
10 #include <linux/config.h>
11
12 #include <asm/setup.h>
13 #include <asm/pgalloc.h>
14 #include <asm/irq.h>
15 #include <asm/io.h>
16 #include <asm/semaphore.h>
17 #include <asm/checksum.h>
18 #include <asm/hardirq.h>
19 #include <asm/cacheflush.h>
20
21 extern long __memcpy_user(void *dst, const void *src, size_t count);
22 extern long __memset_user(void *dst, const void *src, size_t count);
23
24 /* platform dependent support */
25
26 EXPORT_SYMBOL(__ioremap);
27 EXPORT_SYMBOL(iounmap);
28
29 EXPORT_SYMBOL(strnlen);
30 EXPORT_SYMBOL(strpbrk);
31 EXPORT_SYMBOL(strrchr);
32 EXPORT_SYMBOL(strstr);
33 EXPORT_SYMBOL(strchr);
34 EXPORT_SYMBOL(strcat);
35 EXPORT_SYMBOL(strlen);
36 EXPORT_SYMBOL(strcmp);
37 EXPORT_SYMBOL(strncmp);
38 EXPORT_SYMBOL(strncpy);
39
40 EXPORT_SYMBOL(ip_fast_csum);
41
42 #if 0
43 EXPORT_SYMBOL(local_irq_count);
44 EXPORT_SYMBOL(local_bh_count);
45 #endif
46 EXPORT_SYMBOL(kernel_thread);
47
48 EXPORT_SYMBOL(enable_irq);
49 EXPORT_SYMBOL(disable_irq);
50 EXPORT_SYMBOL(__res_bus_clock_speed_HZ);
51 EXPORT_SYMBOL(__page_offset);
52 EXPORT_SYMBOL(__memcpy_user);
53 EXPORT_SYMBOL(__memset_user);
54 EXPORT_SYMBOL(frv_dcache_writeback);
55 EXPORT_SYMBOL(frv_cache_invalidate);
56 EXPORT_SYMBOL(frv_icache_invalidate);
57 EXPORT_SYMBOL(frv_cache_wback_inv);
58
59 #ifndef CONFIG_MMU
60 EXPORT_SYMBOL(memory_start);
61 EXPORT_SYMBOL(memory_end);
62 #endif
63
64 EXPORT_SYMBOL(__debug_bug_trap);
65
66 /* Networking helper routines. */
67 EXPORT_SYMBOL(csum_partial_copy);
68
69 /* The following are special because they're not called
70    explicitly (the C compiler generates them).  Fortunately,
71    their interface isn't gonna change any time soon now, so
72    it's OK to leave it out of version control.  */
73 EXPORT_SYMBOL(memcpy);
74 EXPORT_SYMBOL(memset);
75 EXPORT_SYMBOL(memcmp);
76 EXPORT_SYMBOL(memscan);
77 EXPORT_SYMBOL(memmove);
78
79 EXPORT_SYMBOL(__outsl_ns);
80 EXPORT_SYMBOL(__insl_ns);
81
82 #ifdef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS
83 EXPORT_SYMBOL(atomic_test_and_ANDNOT_mask);
84 EXPORT_SYMBOL(atomic_test_and_OR_mask);
85 EXPORT_SYMBOL(atomic_test_and_XOR_mask);
86 EXPORT_SYMBOL(atomic_add_return);
87 EXPORT_SYMBOL(atomic_sub_return);
88 EXPORT_SYMBOL(__xchg_32);
89 EXPORT_SYMBOL(__cmpxchg_32);
90 #endif
91
92 EXPORT_SYMBOL(__debug_bug_printk);
93 EXPORT_SYMBOL(__delay_loops_MHz);
94
95 /*
96  * libgcc functions - functions that are used internally by the
97  * compiler...  (prototypes are not correct though, but that
98  * doesn't really matter since they're not versioned).
99  */
100 extern void __gcc_bcmp(void);
101 extern void __ashldi3(void);
102 extern void __ashrdi3(void);
103 extern void __cmpdi2(void);
104 extern void __divdi3(void);
105 extern void __lshrdi3(void);
106 extern void __moddi3(void);
107 extern void __muldi3(void);
108 extern void __mulll(void);
109 extern void __umulll(void);
110 extern void __negdi2(void);
111 extern void __ucmpdi2(void);
112 extern void __udivdi3(void);
113 extern void __udivmoddi4(void);
114 extern void __umoddi3(void);
115
116         /* gcc lib functions */
117 //EXPORT_SYMBOL(__gcc_bcmp);
118 EXPORT_SYMBOL(__ashldi3);
119 EXPORT_SYMBOL(__ashrdi3);
120 //EXPORT_SYMBOL(__cmpdi2);
121 //EXPORT_SYMBOL(__divdi3);
122 EXPORT_SYMBOL(__lshrdi3);
123 //EXPORT_SYMBOL(__moddi3);
124 EXPORT_SYMBOL(__muldi3);
125 EXPORT_SYMBOL(__mulll);
126 EXPORT_SYMBOL(__umulll);
127 EXPORT_SYMBOL(__negdi2);
128 EXPORT_SYMBOL(__ucmpdi2);
129 //EXPORT_SYMBOL(__udivdi3);
130 //EXPORT_SYMBOL(__udivmoddi4);
131 //EXPORT_SYMBOL(__umoddi3);