v2.4.8 -> v2.4.8.1
[opensuse:kernel.git] / arch / alpha / kernel / alpha_ksyms.c
1 /*
2  * linux/arch/alpha/kernel/ksyms.c
3  *
4  * Export the alpha-specific functions that are needed for loadable
5  * modules.
6  */
7
8 #include <linux/config.h>
9 #include <linux/module.h>
10 #include <linux/string.h>
11 #include <linux/user.h>
12 #include <linux/elfcore.h>
13 #include <linux/socket.h>
14 #include <linux/in.h>
15 #include <linux/in6.h>
16 #include <linux/pci.h>
17 #include <linux/tty.h>
18 #include <linux/mm.h>
19 #include <linux/delay.h>
20
21 #include <asm/io.h>
22 #include <asm/console.h>
23 #include <asm/hwrpb.h>
24 #include <asm/uaccess.h>
25 #include <asm/processor.h>
26 #include <asm/checksum.h>
27 #include <linux/interrupt.h>
28 #include <asm/softirq.h>
29 #include <asm/fpu.h>
30 #include <asm/irq.h>
31 #include <asm/machvec.h>
32 #include <asm/pgalloc.h>
33 #include <asm/semaphore.h>
34
35 #define __KERNEL_SYSCALLS__
36 #include <asm/unistd.h>
37
38 extern struct hwrpb_struct *hwrpb;
39 extern void dump_thread(struct pt_regs *, struct user *);
40 extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
41 extern spinlock_t kernel_flag;
42 extern spinlock_t rtc_lock;
43
44 /* these are C runtime functions with special calling conventions: */
45 extern void __divl (void);
46 extern void __reml (void);
47 extern void __divq (void);
48 extern void __remq (void);
49 extern void __divlu (void);
50 extern void __remlu (void);
51 extern void __divqu (void);
52 extern void __remqu (void);
53
54 EXPORT_SYMBOL(alpha_mv);
55 EXPORT_SYMBOL(enable_irq);
56 EXPORT_SYMBOL(disable_irq);
57 EXPORT_SYMBOL(disable_irq_nosync);
58 EXPORT_SYMBOL(probe_irq_mask);
59 EXPORT_SYMBOL(screen_info);
60 EXPORT_SYMBOL(perf_irq);
61 #ifdef CONFIG_ALPHA_SRM
62 EXPORT_SYMBOL(callback_getenv);
63 EXPORT_SYMBOL(callback_setenv);
64 EXPORT_SYMBOL(callback_save_env);
65 #endif /* CONFIG_ALPHA_SRM */
66
67 /* platform dependent support */
68 EXPORT_SYMBOL(_inb);
69 EXPORT_SYMBOL(_inw);
70 EXPORT_SYMBOL(_inl);
71 EXPORT_SYMBOL(_outb);
72 EXPORT_SYMBOL(_outw);
73 EXPORT_SYMBOL(_outl);
74 EXPORT_SYMBOL(_readb);
75 EXPORT_SYMBOL(_readw);
76 EXPORT_SYMBOL(_readl);
77 EXPORT_SYMBOL(_writeb);
78 EXPORT_SYMBOL(_writew);
79 EXPORT_SYMBOL(_writel);
80 EXPORT_SYMBOL(_memcpy_fromio);
81 EXPORT_SYMBOL(_memcpy_toio);
82 EXPORT_SYMBOL(_memset_c_io);
83 EXPORT_SYMBOL(insb);
84 EXPORT_SYMBOL(insw);
85 EXPORT_SYMBOL(insl);
86 EXPORT_SYMBOL(outsb);
87 EXPORT_SYMBOL(outsw);
88 EXPORT_SYMBOL(outsl);
89 EXPORT_SYMBOL(strcat);
90 EXPORT_SYMBOL(strcmp);
91 EXPORT_SYMBOL(strcpy);
92 EXPORT_SYMBOL(strlen);
93 EXPORT_SYMBOL(strncmp);
94 EXPORT_SYMBOL(strncpy);
95 EXPORT_SYMBOL(strnlen);
96 EXPORT_SYMBOL(strncat);
97 EXPORT_SYMBOL(strstr);
98 EXPORT_SYMBOL(strtok);
99 EXPORT_SYMBOL(strpbrk);
100 EXPORT_SYMBOL(strchr);
101 EXPORT_SYMBOL(strrchr);
102 EXPORT_SYMBOL(memcmp);
103 EXPORT_SYMBOL(memmove);
104 EXPORT_SYMBOL(__memcpy);
105 EXPORT_SYMBOL(__memset);
106 EXPORT_SYMBOL(__memsetw);
107 EXPORT_SYMBOL(__constant_c_memset);
108 EXPORT_SYMBOL(copy_page);
109 EXPORT_SYMBOL(clear_page);
110
111 EXPORT_SYMBOL(__delay);
112 EXPORT_SYMBOL(__udelay);
113 EXPORT_SYMBOL(udelay);
114
115 EXPORT_SYMBOL(__direct_map_base);
116 EXPORT_SYMBOL(__direct_map_size);
117
118 #ifdef CONFIG_PCI
119 EXPORT_SYMBOL(pci_alloc_consistent);
120 EXPORT_SYMBOL(pci_free_consistent);
121 EXPORT_SYMBOL(pci_map_single);
122 EXPORT_SYMBOL(pci_unmap_single);
123 EXPORT_SYMBOL(pci_map_sg);
124 EXPORT_SYMBOL(pci_unmap_sg);
125 EXPORT_SYMBOL(pci_dma_supported);
126 #endif
127
128 EXPORT_SYMBOL(dump_thread);
129 EXPORT_SYMBOL(dump_fpu);
130 EXPORT_SYMBOL(hwrpb);
131 EXPORT_SYMBOL(wrusp);
132 EXPORT_SYMBOL(start_thread);
133 EXPORT_SYMBOL(alpha_read_fp_reg);
134 EXPORT_SYMBOL(alpha_read_fp_reg_s);
135 EXPORT_SYMBOL(alpha_write_fp_reg);
136 EXPORT_SYMBOL(alpha_write_fp_reg_s);
137
138 /* In-kernel system calls.  */
139 EXPORT_SYMBOL(kernel_thread);
140 EXPORT_SYMBOL(sys_open);
141 EXPORT_SYMBOL(sys_dup);
142 EXPORT_SYMBOL(sys_exit);
143 EXPORT_SYMBOL(sys_write);
144 EXPORT_SYMBOL(sys_read);
145 EXPORT_SYMBOL(sys_lseek);
146 EXPORT_SYMBOL(__kernel_execve);
147 EXPORT_SYMBOL(sys_setsid);
148 EXPORT_SYMBOL(sys_sync);
149 EXPORT_SYMBOL(sys_wait4);
150
151 /* Networking helper routines. */
152 EXPORT_SYMBOL(csum_tcpudp_magic);
153 EXPORT_SYMBOL(ip_compute_csum);
154 EXPORT_SYMBOL(ip_fast_csum);
155 EXPORT_SYMBOL(csum_partial_copy);
156 EXPORT_SYMBOL(csum_partial_copy_nocheck);
157 EXPORT_SYMBOL(csum_partial_copy_from_user);
158 EXPORT_SYMBOL(csum_ipv6_magic);
159
160 #ifdef CONFIG_MATHEMU_MODULE
161 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
162 extern long (*alpha_fp_emul) (unsigned long pc);
163 EXPORT_SYMBOL(alpha_fp_emul_imprecise);
164 EXPORT_SYMBOL(alpha_fp_emul);
165 #endif
166
167 #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK
168 EXPORT_SYMBOL(__min_ipl);
169 #endif
170
171 /*
172  * The following are specially called from the uaccess assembly stubs.
173  */
174 EXPORT_SYMBOL_NOVERS(__copy_user);
175 EXPORT_SYMBOL_NOVERS(__do_clear_user);
176 EXPORT_SYMBOL(__strncpy_from_user);
177 EXPORT_SYMBOL(__strnlen_user);
178
179 /* Semaphore helper functions.  */
180 EXPORT_SYMBOL(__down_failed);
181 EXPORT_SYMBOL(__down_failed_interruptible);
182 EXPORT_SYMBOL(__up_wakeup);
183 EXPORT_SYMBOL(down);
184 EXPORT_SYMBOL(down_interruptible);
185 EXPORT_SYMBOL(down_trylock);
186 EXPORT_SYMBOL(up);
187
188 /* 
189  * SMP-specific symbols.
190  */
191
192 #ifdef CONFIG_SMP
193 EXPORT_SYMBOL(kernel_flag);
194 EXPORT_SYMBOL(synchronize_irq);
195 EXPORT_SYMBOL(flush_tlb_all);
196 EXPORT_SYMBOL(flush_tlb_mm);
197 EXPORT_SYMBOL(flush_tlb_range);
198 EXPORT_SYMBOL(flush_tlb_page);
199 EXPORT_SYMBOL(smp_imb);
200 EXPORT_SYMBOL(cpu_data);
201 EXPORT_SYMBOL(__cpu_number_map);
202 EXPORT_SYMBOL(smp_num_cpus);
203 EXPORT_SYMBOL(global_irq_holder);
204 EXPORT_SYMBOL(__global_cli);
205 EXPORT_SYMBOL(__global_sti);
206 EXPORT_SYMBOL(__global_save_flags);
207 EXPORT_SYMBOL(__global_restore_flags);
208 #if DEBUG_SPINLOCK
209 EXPORT_SYMBOL(spin_unlock);
210 EXPORT_SYMBOL(debug_spin_lock);
211 EXPORT_SYMBOL(debug_spin_trylock);
212 #endif
213 #if DEBUG_RWLOCK
214 EXPORT_SYMBOL(write_lock);
215 EXPORT_SYMBOL(read_lock);
216 #endif
217 EXPORT_SYMBOL(cpu_present_mask);
218 #endif /* CONFIG_SMP */
219
220 EXPORT_SYMBOL(rtc_lock);
221
222 /*
223  * The following are special because they're not called
224  * explicitly (the C compiler or assembler generates them in
225  * response to division operations).  Fortunately, their
226  * interface isn't gonna change any time soon now, so it's OK
227  * to leave it out of version control.
228  */
229 # undef memcpy
230 # undef memset
231 EXPORT_SYMBOL_NOVERS(__divl);
232 EXPORT_SYMBOL_NOVERS(__divlu);
233 EXPORT_SYMBOL_NOVERS(__divq);
234 EXPORT_SYMBOL_NOVERS(__divqu);
235 EXPORT_SYMBOL_NOVERS(__reml);
236 EXPORT_SYMBOL_NOVERS(__remlu);
237 EXPORT_SYMBOL_NOVERS(__remq);
238 EXPORT_SYMBOL_NOVERS(__remqu);
239 EXPORT_SYMBOL_NOVERS(memcpy);
240 EXPORT_SYMBOL_NOVERS(memset);
241 EXPORT_SYMBOL_NOVERS(memchr);
242
243 EXPORT_SYMBOL(get_wchan);