]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/powerpc/kernel/ppc_ksyms.c
powerpc: Move more symbol exports next to function definitions
[karo-tx-linux.git] / arch / powerpc / kernel / ppc_ksyms.c
1 #include <linux/export.h>
2 #include <linux/threads.h>
3 #include <linux/smp.h>
4 #include <linux/sched.h>
5 #include <linux/elfcore.h>
6 #include <linux/string.h>
7 #include <linux/interrupt.h>
8 #include <linux/vt_kern.h>
9 #include <linux/nvram.h>
10 #include <linux/irq.h>
11 #include <linux/pci.h>
12 #include <linux/delay.h>
13 #include <linux/bitops.h>
14
15 #include <asm/page.h>
16 #include <asm/processor.h>
17 #include <asm/cacheflush.h>
18 #include <asm/uaccess.h>
19 #include <asm/io.h>
20 #include <linux/atomic.h>
21 #include <asm/checksum.h>
22 #include <asm/pgtable.h>
23 #include <asm/tlbflush.h>
24 #include <linux/adb.h>
25 #include <linux/cuda.h>
26 #include <linux/pmu.h>
27 #include <asm/prom.h>
28 #include <asm/pci-bridge.h>
29 #include <asm/irq.h>
30 #include <asm/pmac_feature.h>
31 #include <asm/dma.h>
32 #include <asm/machdep.h>
33 #include <asm/hw_irq.h>
34 #include <asm/nvram.h>
35 #include <asm/mmu_context.h>
36 #include <asm/backlight.h>
37 #include <asm/time.h>
38 #include <asm/cputable.h>
39 #include <asm/btext.h>
40 #include <asm/div64.h>
41 #include <asm/signal.h>
42 #include <asm/dcr.h>
43 #include <asm/ftrace.h>
44 #include <asm/switch_to.h>
45 #include <asm/epapr_hcalls.h>
46
47 #ifdef CONFIG_PPC32
48 extern void transfer_to_handler(void);
49 extern void do_IRQ(struct pt_regs *regs);
50 extern void machine_check_exception(struct pt_regs *regs);
51 extern void alignment_exception(struct pt_regs *regs);
52 extern void program_check_exception(struct pt_regs *regs);
53 extern void single_step_exception(struct pt_regs *regs);
54 extern int sys_sigreturn(struct pt_regs *regs);
55
56 EXPORT_SYMBOL(clear_pages);
57 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
58 EXPORT_SYMBOL(DMA_MODE_READ);
59 EXPORT_SYMBOL(DMA_MODE_WRITE);
60
61 EXPORT_SYMBOL(transfer_to_handler);
62 EXPORT_SYMBOL(do_IRQ);
63 EXPORT_SYMBOL(machine_check_exception);
64 EXPORT_SYMBOL(alignment_exception);
65 EXPORT_SYMBOL(program_check_exception);
66 EXPORT_SYMBOL(single_step_exception);
67 EXPORT_SYMBOL(sys_sigreturn);
68 #endif
69
70 #ifdef CONFIG_FUNCTION_TRACER
71 EXPORT_SYMBOL(_mcount);
72 #endif
73
74 EXPORT_SYMBOL(strcpy);
75 EXPORT_SYMBOL(strncpy);
76 EXPORT_SYMBOL(strcat);
77 EXPORT_SYMBOL(strlen);
78 EXPORT_SYMBOL(strcmp);
79 EXPORT_SYMBOL(strncmp);
80
81 #ifndef CONFIG_GENERIC_CSUM
82 EXPORT_SYMBOL(csum_partial);
83 EXPORT_SYMBOL(csum_partial_copy_generic);
84 EXPORT_SYMBOL(ip_fast_csum);
85 EXPORT_SYMBOL(csum_tcpudp_magic);
86 #endif
87
88 EXPORT_SYMBOL(__copy_tofrom_user);
89 EXPORT_SYMBOL(__clear_user);
90 EXPORT_SYMBOL(copy_page);
91
92 #if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
93 EXPORT_SYMBOL(isa_io_base);
94 EXPORT_SYMBOL(isa_mem_base);
95 EXPORT_SYMBOL(pci_dram_offset);
96 #endif /* CONFIG_PCI */
97
98 #ifdef CONFIG_PPC_FPU
99 EXPORT_SYMBOL(giveup_fpu);
100 EXPORT_SYMBOL(load_fp_state);
101 EXPORT_SYMBOL(store_fp_state);
102 #endif
103 #ifdef CONFIG_ALTIVEC
104 EXPORT_SYMBOL(giveup_altivec);
105 EXPORT_SYMBOL(load_vr_state);
106 EXPORT_SYMBOL(store_vr_state);
107 #endif /* CONFIG_ALTIVEC */
108 #ifdef CONFIG_VSX
109 EXPORT_SYMBOL_GPL(__giveup_vsx);
110 #endif /* CONFIG_VSX */
111 #ifdef CONFIG_SPE
112 EXPORT_SYMBOL(giveup_spe);
113 #endif /* CONFIG_SPE */
114
115 #ifndef CONFIG_PPC64
116 EXPORT_SYMBOL(flush_instruction_cache);
117 #endif
118 EXPORT_SYMBOL(flush_dcache_range);
119 EXPORT_SYMBOL(flush_icache_range);
120
121 #ifdef CONFIG_SMP
122 #ifdef CONFIG_PPC32
123 EXPORT_SYMBOL(smp_hw_index);
124 #endif
125 #endif
126
127 #ifdef CONFIG_PPC32
128 long long __ashrdi3(long long, int);
129 long long __ashldi3(long long, int);
130 long long __lshrdi3(long long, int);
131 EXPORT_SYMBOL(__ashrdi3);
132 EXPORT_SYMBOL(__ashldi3);
133 EXPORT_SYMBOL(__lshrdi3);
134 int __ucmpdi2(unsigned long long, unsigned long long);
135 EXPORT_SYMBOL(__ucmpdi2);
136 int __cmpdi2(long long, long long);
137 EXPORT_SYMBOL(__cmpdi2);
138 #endif
139 long long __bswapdi2(long long);
140 EXPORT_SYMBOL(__bswapdi2);
141 EXPORT_SYMBOL(memcpy);
142 EXPORT_SYMBOL(memset);
143 EXPORT_SYMBOL(memmove);
144 EXPORT_SYMBOL(memcmp);
145 EXPORT_SYMBOL(memchr);
146
147 #ifdef CONFIG_PPC32
148 EXPORT_SYMBOL(timer_interrupt);
149 EXPORT_SYMBOL(tb_ticks_per_jiffy);
150 EXPORT_SYMBOL(cacheable_memcpy);
151 EXPORT_SYMBOL(cacheable_memzero);
152 #endif
153
154 #ifdef CONFIG_PPC32
155 EXPORT_SYMBOL(switch_mmu_context);
156 #endif
157
158 #ifdef CONFIG_PPC_STD_MMU_32
159 extern long mol_trampoline;
160 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
161 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
162 #ifdef CONFIG_SMP
163 extern int mmu_hash_lock;
164 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
165 #endif /* CONFIG_SMP */
166 extern long *intercept_table;
167 EXPORT_SYMBOL(intercept_table);
168 #endif /* CONFIG_PPC_STD_MMU_32 */
169 #ifdef CONFIG_PPC_DCR_NATIVE
170 EXPORT_SYMBOL(__mtdcr);
171 EXPORT_SYMBOL(__mfdcr);
172 #endif
173 EXPORT_SYMBOL(empty_zero_page);
174
175 #ifdef CONFIG_PPC64
176 EXPORT_SYMBOL(__arch_hweight8);
177 EXPORT_SYMBOL(__arch_hweight16);
178 EXPORT_SYMBOL(__arch_hweight32);
179 EXPORT_SYMBOL(__arch_hweight64);
180 #endif
181
182 #ifdef CONFIG_EPAPR_PARAVIRT
183 EXPORT_SYMBOL(epapr_hypercall_start);
184 #endif