Merge ../powerpc-merge
[linux-2.6] / 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/syscalls.h>
15 #include <linux/in.h>
16 #include <linux/in6.h>
17 #include <linux/pci.h>
18 #include <linux/tty.h>
19 #include <linux/mm.h>
20 #include <linux/delay.h>
21 #include <linux/dma-mapping.h>
22
23 #include <asm/io.h>
24 #include <asm/console.h>
25 #include <asm/hwrpb.h>
26 #include <asm/uaccess.h>
27 #include <asm/processor.h>
28 #include <asm/checksum.h>
29 #include <linux/interrupt.h>
30 #include <asm/fpu.h>
31 #include <asm/irq.h>
32 #include <asm/machvec.h>
33 #include <asm/pgalloc.h>
34 #include <asm/semaphore.h>
35 #include <asm/tlbflush.h>
36 #include <asm/cacheflush.h>
37 #include <asm/vga.h>
38
39 #define __KERNEL_SYSCALLS__
40 #include <asm/unistd.h>
41
42 extern struct hwrpb_struct *hwrpb;
43 extern spinlock_t rtc_lock;
44
45 /* these are C runtime functions with special calling conventions: */
46 extern void __divl (void);
47 extern void __reml (void);
48 extern void __divq (void);
49 extern void __remq (void);
50 extern void __divlu (void);
51 extern void __remlu (void);
52 extern void __divqu (void);
53 extern void __remqu (void);
54
55 EXPORT_SYMBOL(alpha_mv);
56 EXPORT_SYMBOL(enable_irq);
57 EXPORT_SYMBOL(disable_irq);
58 EXPORT_SYMBOL(disable_irq_nosync);
59 EXPORT_SYMBOL(probe_irq_mask);
60 EXPORT_SYMBOL(screen_info);
61 EXPORT_SYMBOL(perf_irq);
62 EXPORT_SYMBOL(callback_getenv);
63 EXPORT_SYMBOL(callback_setenv);
64 EXPORT_SYMBOL(callback_save_env);
65 #ifdef CONFIG_ALPHA_GENERIC
66 EXPORT_SYMBOL(alpha_using_srm);
67 #endif /* CONFIG_ALPHA_GENERIC */
68
69 /* platform dependent support */
70 EXPORT_SYMBOL(strcat);
71 EXPORT_SYMBOL(strcmp);
72 EXPORT_SYMBOL(strcpy);
73 EXPORT_SYMBOL(strlen);
74 EXPORT_SYMBOL(strncmp);
75 EXPORT_SYMBOL(strncpy);
76 EXPORT_SYMBOL(strnlen);
77 EXPORT_SYMBOL(strncat);
78 EXPORT_SYMBOL(strstr);
79 EXPORT_SYMBOL(strpbrk);
80 EXPORT_SYMBOL(strchr);
81 EXPORT_SYMBOL(strrchr);
82 EXPORT_SYMBOL(memcmp);
83 EXPORT_SYMBOL(memmove);
84 EXPORT_SYMBOL(memscan);
85 EXPORT_SYMBOL(__memcpy);
86 EXPORT_SYMBOL(__memset);
87 EXPORT_SYMBOL(__memsetw);
88 EXPORT_SYMBOL(__constant_c_memset);
89 EXPORT_SYMBOL(copy_page);
90 EXPORT_SYMBOL(clear_page);
91
92 EXPORT_SYMBOL(__direct_map_base);
93 EXPORT_SYMBOL(__direct_map_size);
94
95 #ifdef CONFIG_PCI
96 EXPORT_SYMBOL(pci_alloc_consistent);
97 EXPORT_SYMBOL(pci_free_consistent);
98 EXPORT_SYMBOL(pci_map_single);
99 EXPORT_SYMBOL(pci_map_page);
100 EXPORT_SYMBOL(pci_unmap_single);
101 EXPORT_SYMBOL(pci_unmap_page);
102 EXPORT_SYMBOL(pci_map_sg);
103 EXPORT_SYMBOL(pci_unmap_sg);
104 EXPORT_SYMBOL(pci_dma_supported);
105 EXPORT_SYMBOL(pci_dac_dma_supported);
106 EXPORT_SYMBOL(pci_dac_page_to_dma);
107 EXPORT_SYMBOL(pci_dac_dma_to_page);
108 EXPORT_SYMBOL(pci_dac_dma_to_offset);
109 EXPORT_SYMBOL(alpha_gendev_to_pci);
110 #endif
111 EXPORT_SYMBOL(dma_set_mask);
112
113 EXPORT_SYMBOL(dump_thread);
114 EXPORT_SYMBOL(dump_elf_thread);
115 EXPORT_SYMBOL(dump_elf_task);
116 EXPORT_SYMBOL(dump_elf_task_fp);
117 EXPORT_SYMBOL(hwrpb);
118 EXPORT_SYMBOL(start_thread);
119 EXPORT_SYMBOL(alpha_read_fp_reg);
120 EXPORT_SYMBOL(alpha_read_fp_reg_s);
121 EXPORT_SYMBOL(alpha_write_fp_reg);
122 EXPORT_SYMBOL(alpha_write_fp_reg_s);
123
124 /* In-kernel system calls.  */
125 EXPORT_SYMBOL(kernel_thread);
126 EXPORT_SYMBOL(sys_open);
127 EXPORT_SYMBOL(sys_dup);
128 EXPORT_SYMBOL(sys_exit);
129 EXPORT_SYMBOL(sys_write);
130 EXPORT_SYMBOL(sys_read);
131 EXPORT_SYMBOL(sys_lseek);
132 EXPORT_SYMBOL(execve);
133 EXPORT_SYMBOL(sys_setsid);
134 EXPORT_SYMBOL(sys_wait4);
135
136 /* Networking helper routines. */
137 EXPORT_SYMBOL(csum_tcpudp_magic);
138 EXPORT_SYMBOL(ip_compute_csum);
139 EXPORT_SYMBOL(ip_fast_csum);
140 EXPORT_SYMBOL(csum_partial_copy_nocheck);
141 EXPORT_SYMBOL(csum_partial_copy_from_user);
142 EXPORT_SYMBOL(csum_ipv6_magic);
143
144 #ifdef CONFIG_MATHEMU_MODULE
145 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
146 extern long (*alpha_fp_emul) (unsigned long pc);
147 EXPORT_SYMBOL(alpha_fp_emul_imprecise);
148 EXPORT_SYMBOL(alpha_fp_emul);
149 #endif
150
151 #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK
152 EXPORT_SYMBOL(__min_ipl);
153 #endif
154
155 /*
156  * The following are specially called from the uaccess assembly stubs.
157  */
158 EXPORT_SYMBOL(__copy_user);
159 EXPORT_SYMBOL(__do_clear_user);
160 EXPORT_SYMBOL(__strncpy_from_user);
161 EXPORT_SYMBOL(__strnlen_user);
162
163 /* Semaphore helper functions.  */
164 EXPORT_SYMBOL(__down_failed);
165 EXPORT_SYMBOL(__down_failed_interruptible);
166 EXPORT_SYMBOL(__up_wakeup);
167 EXPORT_SYMBOL(down);
168 EXPORT_SYMBOL(down_interruptible);
169 EXPORT_SYMBOL(down_trylock);
170 EXPORT_SYMBOL(up);
171
172 /* 
173  * SMP-specific symbols.
174  */
175
176 #ifdef CONFIG_SMP
177 EXPORT_SYMBOL(flush_tlb_mm);
178 EXPORT_SYMBOL(flush_tlb_range);
179 EXPORT_SYMBOL(flush_tlb_page);
180 EXPORT_SYMBOL(smp_imb);
181 EXPORT_SYMBOL(cpu_data);
182 EXPORT_SYMBOL(smp_num_cpus);
183 EXPORT_SYMBOL(smp_call_function);
184 EXPORT_SYMBOL(smp_call_function_on_cpu);
185 EXPORT_SYMBOL(_atomic_dec_and_lock);
186 EXPORT_SYMBOL(cpu_present_mask);
187 #endif /* CONFIG_SMP */
188
189 /*
190  * NUMA specific symbols
191  */
192 #ifdef CONFIG_DISCONTIGMEM
193 EXPORT_SYMBOL(node_data);
194 #endif /* CONFIG_DISCONTIGMEM */
195
196 EXPORT_SYMBOL(rtc_lock);
197
198 /*
199  * The following are special because they're not called
200  * explicitly (the C compiler or assembler generates them in
201  * response to division operations).  Fortunately, their
202  * interface isn't gonna change any time soon now, so it's OK
203  * to leave it out of version control.
204  */
205 # undef memcpy
206 # undef memset
207 EXPORT_SYMBOL(__divl);
208 EXPORT_SYMBOL(__divlu);
209 EXPORT_SYMBOL(__divq);
210 EXPORT_SYMBOL(__divqu);
211 EXPORT_SYMBOL(__reml);
212 EXPORT_SYMBOL(__remlu);
213 EXPORT_SYMBOL(__remq);
214 EXPORT_SYMBOL(__remqu);
215 EXPORT_SYMBOL(memcpy);
216 EXPORT_SYMBOL(memset);
217 EXPORT_SYMBOL(memchr);
218
219 EXPORT_SYMBOL(get_wchan);
220
221 #ifdef CONFIG_ALPHA_IRONGATE
222 EXPORT_SYMBOL(irongate_ioremap);
223 EXPORT_SYMBOL(irongate_iounmap);
224 #endif