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