]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/sparc64/kernel/sparc64_ksyms.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
[linux-2.6-omap-h63xx.git] / arch / sparc64 / kernel / sparc64_ksyms.c
1 /* arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support.
2  *
3  * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
4  * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
5  * Copyright (C) 1999 Jakub Jelinek (jj@ultra.linux.cz)
6  */
7
8 /* Tell string.h we don't want memcpy etc. as cpp defines */
9 #define EXPORT_SYMTAB_STROPS
10 #define PROMLIB_INTERNAL
11
12 #include <linux/module.h>
13 #include <linux/types.h>
14 #include <linux/string.h>
15 #include <linux/sched.h>
16 #include <linux/in6.h>
17 #include <linux/pci.h>
18 #include <linux/interrupt.h>
19 #include <linux/fs_struct.h>
20 #include <linux/fs.h>
21 #include <linux/mm.h>
22 #include <linux/socket.h>
23 #include <linux/syscalls.h>
24 #include <linux/percpu.h>
25 #include <linux/init.h>
26 #include <linux/rwsem.h>
27 #include <net/compat.h>
28
29 #include <asm/oplib.h>
30 #include <asm/system.h>
31 #include <asm/auxio.h>
32 #include <asm/pgtable.h>
33 #include <asm/io.h>
34 #include <asm/irq.h>
35 #include <asm/idprom.h>
36 #include <asm/elf.h>
37 #include <asm/head.h>
38 #include <asm/smp.h>
39 #include <asm/mostek.h>
40 #include <asm/ptrace.h>
41 #include <asm/uaccess.h>
42 #include <asm/checksum.h>
43 #include <asm/fpumacro.h>
44 #include <asm/pgalloc.h>
45 #include <asm/cacheflush.h>
46 #ifdef CONFIG_SBUS
47 #include <asm/sbus.h>
48 #include <asm/dma.h>
49 #endif
50 #ifdef CONFIG_PCI
51 #include <asm/ebus.h>
52 #endif
53 #include <asm/ns87303.h>
54 #include <asm/timer.h>
55 #include <asm/cpudata.h>
56 #include <asm/ftrace.h>
57
58 struct poll {
59         int fd;
60         short events;
61         short revents;
62 };
63
64 extern void die_if_kernel(char *str, struct pt_regs *regs);
65 extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
66 extern void *__bzero(void *, size_t);
67 extern void *__memscan_zero(void *, size_t);
68 extern void *__memscan_generic(void *, int, size_t);
69 extern int __memcmp(const void *, const void *, __kernel_size_t);
70 extern __kernel_size_t strlen(const char *);
71 extern void syscall_trace(struct pt_regs *, int);
72 extern void sys_sigsuspend(void);
73 extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
74 extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
75 extern long sparc32_open(const char __user * filename, int flags, int mode);
76 extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
77         unsigned long pfn, unsigned long size, pgprot_t prot);
78
79 extern int __ashrdi3(int, int);
80
81 extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
82
83 extern void xor_vis_2(unsigned long, unsigned long *, unsigned long *);
84 extern void xor_vis_3(unsigned long, unsigned long *, unsigned long *,
85                       unsigned long *);
86 extern void xor_vis_4(unsigned long, unsigned long *, unsigned long *,
87                       unsigned long *, unsigned long *);
88 extern void xor_vis_5(unsigned long, unsigned long *, unsigned long *,
89                       unsigned long *, unsigned long *, unsigned long *);
90
91 extern void xor_niagara_2(unsigned long, unsigned long *, unsigned long *);
92 extern void xor_niagara_3(unsigned long, unsigned long *, unsigned long *,
93                           unsigned long *);
94 extern void xor_niagara_4(unsigned long, unsigned long *, unsigned long *,
95                           unsigned long *, unsigned long *);
96 extern void xor_niagara_5(unsigned long, unsigned long *, unsigned long *,
97                           unsigned long *, unsigned long *, unsigned long *);
98
99 /* Per-CPU information table */
100 EXPORT_PER_CPU_SYMBOL(__cpu_data);
101
102 /* used by various drivers */
103 #ifdef CONFIG_SMP
104 /* Out of line rw-locking implementation. */
105 EXPORT_SYMBOL(__read_lock);
106 EXPORT_SYMBOL(__read_unlock);
107 EXPORT_SYMBOL(__write_lock);
108 EXPORT_SYMBOL(__write_unlock);
109 EXPORT_SYMBOL(__write_trylock);
110 #endif /* CONFIG_SMP */
111
112 #ifdef CONFIG_MCOUNT
113 EXPORT_SYMBOL(_mcount);
114 #endif
115
116 EXPORT_SYMBOL(sparc64_get_clock_tick);
117
118 /* RW semaphores */
119 EXPORT_SYMBOL(__down_read);
120 EXPORT_SYMBOL(__down_read_trylock);
121 EXPORT_SYMBOL(__down_write);
122 EXPORT_SYMBOL(__down_write_trylock);
123 EXPORT_SYMBOL(__up_read);
124 EXPORT_SYMBOL(__up_write);
125 EXPORT_SYMBOL(__downgrade_write);
126
127 /* Atomic counter implementation. */
128 EXPORT_SYMBOL(atomic_add);
129 EXPORT_SYMBOL(atomic_add_ret);
130 EXPORT_SYMBOL(atomic_sub);
131 EXPORT_SYMBOL(atomic_sub_ret);
132 EXPORT_SYMBOL(atomic64_add);
133 EXPORT_SYMBOL(atomic64_add_ret);
134 EXPORT_SYMBOL(atomic64_sub);
135 EXPORT_SYMBOL(atomic64_sub_ret);
136
137 /* Atomic bit operations. */
138 EXPORT_SYMBOL(test_and_set_bit);
139 EXPORT_SYMBOL(test_and_clear_bit);
140 EXPORT_SYMBOL(test_and_change_bit);
141 EXPORT_SYMBOL(set_bit);
142 EXPORT_SYMBOL(clear_bit);
143 EXPORT_SYMBOL(change_bit);
144
145 EXPORT_SYMBOL(__flushw_user);
146
147 EXPORT_SYMBOL(tlb_type);
148 EXPORT_SYMBOL(sun4v_chip_type);
149 EXPORT_SYMBOL(get_fb_unmapped_area);
150 EXPORT_SYMBOL(flush_icache_range);
151
152 EXPORT_SYMBOL(flush_dcache_page);
153 #ifdef DCACHE_ALIASING_POSSIBLE
154 EXPORT_SYMBOL(__flush_dcache_range);
155 #endif
156
157 EXPORT_SYMBOL(mostek_lock);
158 EXPORT_SYMBOL(mstk48t02_regs);
159 #ifdef CONFIG_SUN_AUXIO
160 EXPORT_SYMBOL(auxio_set_led);
161 EXPORT_SYMBOL(auxio_set_lte);
162 #endif
163 #ifdef CONFIG_SBUS
164 EXPORT_SYMBOL(sbus_root);
165 EXPORT_SYMBOL(dma_chain);
166 EXPORT_SYMBOL(sbus_set_sbus64);
167 EXPORT_SYMBOL(sbus_alloc_consistent);
168 EXPORT_SYMBOL(sbus_free_consistent);
169 EXPORT_SYMBOL(sbus_map_single);
170 EXPORT_SYMBOL(sbus_unmap_single);
171 EXPORT_SYMBOL(sbus_map_sg);
172 EXPORT_SYMBOL(sbus_unmap_sg);
173 EXPORT_SYMBOL(sbus_dma_sync_single_for_cpu);
174 EXPORT_SYMBOL(sbus_dma_sync_single_for_device);
175 EXPORT_SYMBOL(sbus_dma_sync_sg_for_cpu);
176 EXPORT_SYMBOL(sbus_dma_sync_sg_for_device);
177 #endif
178 EXPORT_SYMBOL(outsb);
179 EXPORT_SYMBOL(outsw);
180 EXPORT_SYMBOL(outsl);
181 EXPORT_SYMBOL(insb);
182 EXPORT_SYMBOL(insw);
183 EXPORT_SYMBOL(insl);
184 #ifdef CONFIG_PCI
185 EXPORT_SYMBOL(ebus_chain);
186 EXPORT_SYMBOL(pci_alloc_consistent);
187 EXPORT_SYMBOL(pci_free_consistent);
188 EXPORT_SYMBOL(pci_map_single);
189 EXPORT_SYMBOL(pci_unmap_single);
190 EXPORT_SYMBOL(pci_map_sg);
191 EXPORT_SYMBOL(pci_unmap_sg);
192 EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
193 EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
194 EXPORT_SYMBOL(pci_dma_supported);
195 #endif
196
197 /* I/O device mmaping on Sparc64. */
198 EXPORT_SYMBOL(io_remap_pfn_range);
199
200 EXPORT_SYMBOL(dump_fpu);
201 EXPORT_SYMBOL(put_fs_struct);
202
203 /* math-emu wants this */
204 EXPORT_SYMBOL(die_if_kernel);
205
206 /* Kernel thread creation. */
207 EXPORT_SYMBOL(kernel_thread);
208
209 /* prom symbols */
210 EXPORT_SYMBOL(idprom);
211 EXPORT_SYMBOL(prom_root_node);
212 EXPORT_SYMBOL(prom_getchild);
213 EXPORT_SYMBOL(prom_getsibling);
214 EXPORT_SYMBOL(prom_searchsiblings);
215 EXPORT_SYMBOL(prom_firstprop);
216 EXPORT_SYMBOL(prom_nextprop);
217 EXPORT_SYMBOL(prom_getproplen);
218 EXPORT_SYMBOL(prom_getproperty);
219 EXPORT_SYMBOL(prom_node_has_property);
220 EXPORT_SYMBOL(prom_setprop);
221 EXPORT_SYMBOL(saved_command_line);
222 EXPORT_SYMBOL(prom_finddevice);
223 EXPORT_SYMBOL(prom_feval);
224 EXPORT_SYMBOL(prom_getbool);
225 EXPORT_SYMBOL(prom_getstring);
226 EXPORT_SYMBOL(prom_getint);
227 EXPORT_SYMBOL(prom_getintdefault);
228 EXPORT_SYMBOL(__prom_getchild);
229 EXPORT_SYMBOL(__prom_getsibling);
230
231 /* sparc library symbols */
232 EXPORT_SYMBOL(strlen);
233 EXPORT_SYMBOL(__strlen_user);
234 EXPORT_SYMBOL(__strnlen_user);
235
236 /* Special internal versions of library functions. */
237 EXPORT_SYMBOL(_clear_page);
238 EXPORT_SYMBOL(clear_user_page);
239 EXPORT_SYMBOL(copy_user_page);
240 EXPORT_SYMBOL(__bzero);
241 EXPORT_SYMBOL(__memscan_zero);
242 EXPORT_SYMBOL(__memscan_generic);
243 EXPORT_SYMBOL(__memcmp);
244 EXPORT_SYMBOL(__memset);
245
246 EXPORT_SYMBOL(csum_partial);
247 EXPORT_SYMBOL(csum_partial_copy_nocheck);
248 EXPORT_SYMBOL(__csum_partial_copy_from_user);
249 EXPORT_SYMBOL(__csum_partial_copy_to_user);
250 EXPORT_SYMBOL(ip_fast_csum);
251
252 /* Moving data to/from/in userspace. */
253 EXPORT_SYMBOL(___copy_to_user);
254 EXPORT_SYMBOL(___copy_from_user);
255 EXPORT_SYMBOL(___copy_in_user);
256 EXPORT_SYMBOL(copy_to_user_fixup);
257 EXPORT_SYMBOL(copy_from_user_fixup);
258 EXPORT_SYMBOL(copy_in_user_fixup);
259 EXPORT_SYMBOL(__strncpy_from_user);
260 EXPORT_SYMBOL(__clear_user);
261
262 /* Various address conversion macros use this. */
263 EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
264
265 /* No version information on this, heavily used in inline asm,
266  * and will always be 'void __ret_efault(void)'.
267  */
268 EXPORT_SYMBOL(__ret_efault);
269
270 /* No version information on these, as gcc produces such symbols. */
271 EXPORT_SYMBOL(memcmp);
272 EXPORT_SYMBOL(memcpy);
273 EXPORT_SYMBOL(memset);
274 EXPORT_SYMBOL(memmove);
275 EXPORT_SYMBOL(strncmp);
276
277 void VISenter(void);
278 /* RAID code needs this */
279 EXPORT_SYMBOL(VISenter);
280
281 /* for input/keybdev */
282 EXPORT_SYMBOL(sun_do_break);
283 EXPORT_SYMBOL(stop_a_enabled);
284
285 #ifdef CONFIG_DEBUG_BUGVERBOSE
286 EXPORT_SYMBOL(do_BUG);
287 #endif
288
289 /* for ns8703 */
290 EXPORT_SYMBOL(ns87303_lock);
291
292 EXPORT_SYMBOL(tick_ops);
293
294 EXPORT_SYMBOL(xor_vis_2);
295 EXPORT_SYMBOL(xor_vis_3);
296 EXPORT_SYMBOL(xor_vis_4);
297 EXPORT_SYMBOL(xor_vis_5);
298
299 EXPORT_SYMBOL(xor_niagara_2);
300 EXPORT_SYMBOL(xor_niagara_3);
301 EXPORT_SYMBOL(xor_niagara_4);
302 EXPORT_SYMBOL(xor_niagara_5);