Pull thermal into release branch
[linux-drm-fsl-dcu.git] / arch / arm26 / kernel / armksyms.c
1 /*
2  *  linux/arch/arm26/kernel/armksyms.c
3  *
4  *  Copyright (C) 2003 Ian Molton
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 #include <linux/module.h>
11 #include <linux/module.h>
12 #include <linux/user.h>
13 #include <linux/string.h>
14 #include <linux/fs.h>
15 #include <linux/mm.h>
16 #include <linux/mman.h>
17 #include <linux/delay.h>
18 #include <linux/in6.h>
19 #include <linux/interrupt.h>
20 #include <linux/pm.h>
21 #include <linux/tty.h>
22 #include <linux/vt_kern.h>
23 #include <linux/syscalls.h>
24
25 #include <asm/byteorder.h>
26 #include <asm/elf.h>
27 #include <asm/io.h>
28 #include <asm/irq.h>
29 #include <asm/processor.h>
30 #include <asm/semaphore.h>
31 #include <asm/system.h>
32 #include <asm/uaccess.h>
33 #include <asm/checksum.h>
34 #include <asm/mach-types.h>
35
36 extern int dump_fpu(struct pt_regs *, struct user_fp_struct *);
37 extern void inswb(unsigned int port, void *to, int len);
38 extern void outswb(unsigned int port, const void *to, int len);
39
40 extern void __bad_xchg(volatile void *ptr, int size);
41
42 /*
43  * libgcc functions - functions that are used internally by the
44  * compiler...  (prototypes are not correct though, but that
45  * doesn't really matter since they're not versioned).
46  */
47 extern void __ashldi3(void);
48 extern void __ashrdi3(void);
49 extern void __divsi3(void);
50 extern void __lshrdi3(void);
51 extern void __modsi3(void);
52 extern void __muldi3(void);
53 extern void __ucmpdi2(void);
54 extern void __udivdi3(void);
55 extern void __umoddi3(void);
56 extern void __udivmoddi4(void);
57 extern void __udivsi3(void);
58 extern void __umodsi3(void);
59 extern void abort(void);
60
61 extern void ret_from_exception(void);
62 extern void fpundefinstr(void);
63 extern void fp_enter(void);
64
65 /*
66  * This has a special calling convention; it doesn't
67  * modify any of the usual registers, except for LR.
68  * FIXME - we used to use our own local version - looks to be in kernel/softirq now
69  */
70 //extern void __do_softirq(void);
71
72 #define EXPORT_SYMBOL_ALIAS(sym,orig)           \
73  const char __kstrtab_##sym[]                   \
74   __attribute__((section(".kstrtab"))) =        \
75     __MODULE_STRING(sym);                       \
76  const struct module_symbol __ksymtab_##sym     \
77   __attribute__((section("__ksymtab"))) =       \
78     { (unsigned long)&orig, __kstrtab_##sym };
79
80 /*
81  * floating point math emulator support.
82  * These symbols will never change their calling convention...
83  */
84 EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
85 EXPORT_SYMBOL_ALIAS(fp_printk,printk);
86 EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
87
88 EXPORT_SYMBOL(fpundefinstr);
89 EXPORT_SYMBOL(ret_from_exception);
90
91 #ifdef CONFIG_VT
92 EXPORT_SYMBOL(kd_mksound);
93 #endif
94
95 //EXPORT_SYMBOL(__do_softirq);
96
97         /* platform dependent support */
98 EXPORT_SYMBOL(dump_thread);
99 EXPORT_SYMBOL(dump_fpu);
100 EXPORT_SYMBOL(udelay);
101 EXPORT_SYMBOL(kernel_thread);
102 EXPORT_SYMBOL(system_rev);
103 EXPORT_SYMBOL(system_serial_low);
104 EXPORT_SYMBOL(system_serial_high);
105 #ifdef CONFIG_DEBUG_BUGVERBOSE
106 EXPORT_SYMBOL(__bug);
107 #endif
108 EXPORT_SYMBOL(__bad_xchg);
109 EXPORT_SYMBOL(__readwrite_bug);
110 EXPORT_SYMBOL(enable_irq);
111 EXPORT_SYMBOL(disable_irq);
112 EXPORT_SYMBOL(set_irq_type);
113 EXPORT_SYMBOL(pm_idle);
114 EXPORT_SYMBOL(pm_power_off);
115
116         /* processor dependencies */
117 EXPORT_SYMBOL(__machine_arch_type);
118
119         /* networking */
120 EXPORT_SYMBOL(csum_partial_copy_nocheck);
121 EXPORT_SYMBOL(__csum_ipv6_magic);
122
123         /* io */
124 #ifndef __raw_readsb
125 EXPORT_SYMBOL(__raw_readsb);
126 #endif
127 #ifndef __raw_readsw
128 EXPORT_SYMBOL(__raw_readsw);
129 #endif
130 #ifndef __raw_readsl
131 EXPORT_SYMBOL(__raw_readsl);
132 #endif
133 #ifndef __raw_writesb
134 EXPORT_SYMBOL(__raw_writesb);
135 #endif
136 #ifndef __raw_writesw
137 EXPORT_SYMBOL(__raw_writesw);
138 #endif
139 #ifndef __raw_writesl
140 EXPORT_SYMBOL(__raw_writesl);
141 #endif
142
143         /* string / mem functions */
144 EXPORT_SYMBOL(strcpy);
145 EXPORT_SYMBOL(strncpy);
146 EXPORT_SYMBOL(strcat);
147 EXPORT_SYMBOL(strncat);
148 EXPORT_SYMBOL(strcmp);
149 EXPORT_SYMBOL(strncmp);
150 EXPORT_SYMBOL(strchr);
151 EXPORT_SYMBOL(strlen);
152 EXPORT_SYMBOL(strnlen);
153 EXPORT_SYMBOL(strrchr);
154 EXPORT_SYMBOL(strstr);
155 EXPORT_SYMBOL(memset);
156 EXPORT_SYMBOL(memcpy);
157 EXPORT_SYMBOL(memmove);
158 EXPORT_SYMBOL(memcmp);
159 EXPORT_SYMBOL(memscan);
160 EXPORT_SYMBOL(__memzero);
161
162         /* user mem (segment) */
163 EXPORT_SYMBOL(uaccess_kernel);
164 EXPORT_SYMBOL(uaccess_user);
165
166 EXPORT_SYMBOL(__get_user_1);
167 EXPORT_SYMBOL(__get_user_2);
168 EXPORT_SYMBOL(__get_user_4);
169 EXPORT_SYMBOL(__get_user_8);
170
171 EXPORT_SYMBOL(__put_user_1);
172 EXPORT_SYMBOL(__put_user_2);
173 EXPORT_SYMBOL(__put_user_4);
174 EXPORT_SYMBOL(__put_user_8);
175
176         /* gcc lib functions */
177 EXPORT_SYMBOL(__ashldi3);
178 EXPORT_SYMBOL(__ashrdi3);
179 EXPORT_SYMBOL(__divsi3);
180 EXPORT_SYMBOL(__lshrdi3);
181 EXPORT_SYMBOL(__modsi3);
182 EXPORT_SYMBOL(__muldi3);
183 EXPORT_SYMBOL(__ucmpdi2);
184 EXPORT_SYMBOL(__udivdi3);
185 EXPORT_SYMBOL(__umoddi3);
186 EXPORT_SYMBOL(__udivmoddi4);
187 EXPORT_SYMBOL(__udivsi3);
188 EXPORT_SYMBOL(__umodsi3);
189
190         /* bitops */
191 EXPORT_SYMBOL(_set_bit_le);
192 EXPORT_SYMBOL(_test_and_set_bit_le);
193 EXPORT_SYMBOL(_clear_bit_le);
194 EXPORT_SYMBOL(_test_and_clear_bit_le);
195 EXPORT_SYMBOL(_change_bit_le);
196 EXPORT_SYMBOL(_test_and_change_bit_le);
197 EXPORT_SYMBOL(_find_first_zero_bit_le);
198 EXPORT_SYMBOL(_find_next_zero_bit_le);
199
200         /* elf */
201 EXPORT_SYMBOL(elf_platform);
202 EXPORT_SYMBOL(elf_hwcap);
203
204 #ifdef CONFIG_PREEMPT
205 EXPORT_SYMBOL(kernel_flag);
206 #endif