sparc: move EXPORT_SYMBOL to the symbols definition
[linux-2.6] / arch / sparc / kernel / sparc_ksyms_64.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 #define PROMLIB_INTERNAL
9
10 #include <linux/module.h>
11 #include <linux/types.h>
12 #include <linux/sched.h>
13 #include <linux/in6.h>
14 #include <linux/pci.h>
15 #include <linux/interrupt.h>
16 #include <linux/fs_struct.h>
17 #include <linux/fs.h>
18 #include <linux/mm.h>
19 #include <linux/socket.h>
20 #include <linux/syscalls.h>
21 #include <linux/percpu.h>
22 #include <linux/init.h>
23 #include <linux/rwsem.h>
24 #include <net/compat.h>
25
26 #include <asm/oplib.h>
27 #include <asm/system.h>
28 #include <asm/auxio.h>
29 #include <asm/pgtable.h>
30 #include <asm/io.h>
31 #include <asm/irq.h>
32 #include <asm/elf.h>
33 #include <asm/head.h>
34 #include <asm/smp.h>
35 #include <asm/ptrace.h>
36 #include <asm/uaccess.h>
37 #include <asm/checksum.h>
38 #include <asm/fpumacro.h>
39 #include <asm/pgalloc.h>
40 #include <asm/cacheflush.h>
41 #ifdef CONFIG_SBUS
42 #include <asm/dma.h>
43 #endif
44 #include <asm/ns87303.h>
45 #include <asm/timer.h>
46 #include <asm/cpudata.h>
47 #include <asm/ftrace.h>
48 #include <asm/hypervisor.h>
49
50 struct poll {
51         int fd;
52         short events;
53         short revents;
54 };
55
56 extern void die_if_kernel(char *str, struct pt_regs *regs);
57 extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
58 extern void sys_sigsuspend(void);
59 extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
60 extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
61 extern long sparc32_open(const char __user * filename, int flags, int mode);
62 extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
63         unsigned long pfn, unsigned long size, pgprot_t prot);
64
65 extern int __ashrdi3(int, int);
66
67 extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
68
69 /* used by various drivers */
70 #ifdef CONFIG_SMP
71 /* Out of line rw-locking implementation. */
72 EXPORT_SYMBOL(__read_lock);
73 EXPORT_SYMBOL(__read_unlock);
74 EXPORT_SYMBOL(__write_lock);
75 EXPORT_SYMBOL(__write_unlock);
76 EXPORT_SYMBOL(__write_trylock);
77 #endif /* CONFIG_SMP */
78
79 EXPORT_SYMBOL(sparc64_get_clock_tick);
80
81 EXPORT_SYMBOL(__flushw_user);
82
83 EXPORT_SYMBOL(tlb_type);
84 EXPORT_SYMBOL(sun4v_chip_type);
85 EXPORT_SYMBOL(get_fb_unmapped_area);
86 EXPORT_SYMBOL(flush_icache_range);
87
88 EXPORT_SYMBOL(flush_dcache_page);
89 #ifdef DCACHE_ALIASING_POSSIBLE
90 EXPORT_SYMBOL(__flush_dcache_range);
91 #endif
92
93 EXPORT_SYMBOL(sun4v_niagara_getperf);
94 EXPORT_SYMBOL(sun4v_niagara_setperf);
95 EXPORT_SYMBOL(sun4v_niagara2_getperf);
96 EXPORT_SYMBOL(sun4v_niagara2_setperf);
97
98 EXPORT_SYMBOL(auxio_set_led);
99 EXPORT_SYMBOL(auxio_set_lte);
100 #ifdef CONFIG_SBUS
101 EXPORT_SYMBOL(sbus_set_sbus64);
102 #endif
103 EXPORT_SYMBOL(outsb);
104 EXPORT_SYMBOL(outsw);
105 EXPORT_SYMBOL(outsl);
106 EXPORT_SYMBOL(insb);
107 EXPORT_SYMBOL(insw);
108 EXPORT_SYMBOL(insl);
109 #ifdef CONFIG_PCI
110 EXPORT_SYMBOL(pci_alloc_consistent);
111 EXPORT_SYMBOL(pci_free_consistent);
112 EXPORT_SYMBOL(pci_map_single);
113 EXPORT_SYMBOL(pci_unmap_single);
114 EXPORT_SYMBOL(pci_map_sg);
115 EXPORT_SYMBOL(pci_unmap_sg);
116 EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
117 EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
118 EXPORT_SYMBOL(pci_dma_supported);
119 #endif
120
121 /* I/O device mmaping on Sparc64. */
122 EXPORT_SYMBOL(io_remap_pfn_range);
123
124 EXPORT_SYMBOL(dump_fpu);
125
126 /* math-emu wants this */
127 EXPORT_SYMBOL(die_if_kernel);
128
129 /* Kernel thread creation. */
130 EXPORT_SYMBOL(kernel_thread);
131
132 /* prom symbols */
133 EXPORT_SYMBOL(prom_root_node);
134 EXPORT_SYMBOL(prom_getchild);
135 EXPORT_SYMBOL(prom_getsibling);
136 EXPORT_SYMBOL(prom_searchsiblings);
137 EXPORT_SYMBOL(prom_firstprop);
138 EXPORT_SYMBOL(prom_nextprop);
139 EXPORT_SYMBOL(prom_getproplen);
140 EXPORT_SYMBOL(prom_getproperty);
141 EXPORT_SYMBOL(prom_node_has_property);
142 EXPORT_SYMBOL(prom_setprop);
143 EXPORT_SYMBOL(saved_command_line);
144 EXPORT_SYMBOL(prom_finddevice);
145 EXPORT_SYMBOL(prom_feval);
146 EXPORT_SYMBOL(prom_getbool);
147 EXPORT_SYMBOL(prom_getstring);
148 EXPORT_SYMBOL(prom_getint);
149 EXPORT_SYMBOL(prom_getintdefault);
150 EXPORT_SYMBOL(__prom_getchild);
151 EXPORT_SYMBOL(__prom_getsibling);
152
153 /* Moving data to/from/in userspace. */
154 EXPORT_SYMBOL(copy_to_user_fixup);
155 EXPORT_SYMBOL(copy_from_user_fixup);
156 EXPORT_SYMBOL(copy_in_user_fixup);
157
158 /* Various address conversion macros use this. */
159 EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
160
161 /* No version information on this, heavily used in inline asm,
162  * and will always be 'void __ret_efault(void)'.
163  */
164 EXPORT_SYMBOL(__ret_efault);
165
166 /* for input/keybdev */
167 EXPORT_SYMBOL(sun_do_break);
168 EXPORT_SYMBOL(stop_a_enabled);
169
170 #ifdef CONFIG_DEBUG_BUGVERBOSE
171 EXPORT_SYMBOL(do_BUG);
172 #endif
173
174 /* for ns8703 */
175 EXPORT_SYMBOL(ns87303_lock);
176
177 EXPORT_SYMBOL(tick_ops);
178
179 EXPORT_SYMBOL_GPL(real_hard_smp_processor_id);