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