ppc: Remove CHRP, POWER3 and POWER4 support from arch/ppc
[linux-3.10.git] / arch / ppc / kernel / ppc_ksyms.c
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/threads.h>
4 #include <linux/smp.h>
5 #include <linux/sched.h>
6 #include <linux/elfcore.h>
7 #include <linux/string.h>
8 #include <linux/interrupt.h>
9 #include <linux/tty.h>
10 #include <linux/vt_kern.h>
11 #include <linux/nvram.h>
12 #include <linux/console.h>
13 #include <linux/irq.h>
14 #include <linux/pci.h>
15 #include <linux/delay.h>
16 #include <linux/ide.h>
17 #include <linux/pm.h>
18 #include <linux/bitops.h>
19
20 #include <asm/page.h>
21 #include <asm/processor.h>
22 #include <asm/uaccess.h>
23 #include <asm/io.h>
24 #include <asm/ide.h>
25 #include <asm/atomic.h>
26 #include <asm/checksum.h>
27 #include <asm/pgtable.h>
28 #include <asm/tlbflush.h>
29 #include <linux/adb.h>
30 #include <linux/cuda.h>
31 #include <linux/pmu.h>
32 #include <asm/system.h>
33 #include <asm/pci-bridge.h>
34 #include <asm/irq.h>
35 #include <asm/dma.h>
36 #include <asm/machdep.h>
37 #include <asm/hw_irq.h>
38 #include <asm/nvram.h>
39 #include <asm/mmu_context.h>
40 #include <asm/backlight.h>
41 #include <asm/time.h>
42 #include <asm/cputable.h>
43 #include <asm/btext.h>
44 #include <asm/div64.h>
45 #include <asm/xmon.h>
46 #include <asm/signal.h>
47
48 #ifdef  CONFIG_8xx
49 #include <asm/commproc.h>
50 #endif
51
52 extern void transfer_to_handler(void);
53 extern void do_IRQ(struct pt_regs *regs);
54 extern void machine_check_exception(struct pt_regs *regs);
55 extern void alignment_exception(struct pt_regs *regs);
56 extern void program_check_exception(struct pt_regs *regs);
57 extern void single_step_exception(struct pt_regs *regs);
58 extern int sys_sigreturn(struct pt_regs *regs);
59
60 long long __ashrdi3(long long, int);
61 long long __ashldi3(long long, int);
62 long long __lshrdi3(long long, int);
63
64 extern unsigned long mm_ptov (unsigned long paddr);
65
66 EXPORT_SYMBOL(clear_pages);
67 EXPORT_SYMBOL(clear_user_page);
68 EXPORT_SYMBOL(do_signal);
69 EXPORT_SYMBOL(transfer_to_handler);
70 EXPORT_SYMBOL(do_IRQ);
71 EXPORT_SYMBOL(machine_check_exception);
72 EXPORT_SYMBOL(alignment_exception);
73 EXPORT_SYMBOL(program_check_exception);
74 EXPORT_SYMBOL(single_step_exception);
75 EXPORT_SYMBOL(sys_sigreturn);
76 EXPORT_SYMBOL(ppc_n_lost_interrupts);
77
78 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
79 EXPORT_SYMBOL(DMA_MODE_READ);
80 EXPORT_SYMBOL(DMA_MODE_WRITE);
81
82 #if !defined(__INLINE_BITOPS)
83 EXPORT_SYMBOL(set_bit);
84 EXPORT_SYMBOL(clear_bit);
85 EXPORT_SYMBOL(change_bit);
86 EXPORT_SYMBOL(test_and_set_bit);
87 EXPORT_SYMBOL(test_and_clear_bit);
88 EXPORT_SYMBOL(test_and_change_bit);
89 #endif /* __INLINE_BITOPS */
90
91 EXPORT_SYMBOL(strcpy);
92 EXPORT_SYMBOL(strncpy);
93 EXPORT_SYMBOL(strcat);
94 EXPORT_SYMBOL(strlen);
95 EXPORT_SYMBOL(strcmp);
96 EXPORT_SYMBOL(strcasecmp);
97 EXPORT_SYMBOL(__div64_32);
98
99 EXPORT_SYMBOL(csum_partial);
100 EXPORT_SYMBOL(csum_partial_copy_generic);
101 EXPORT_SYMBOL(ip_fast_csum);
102 EXPORT_SYMBOL(csum_tcpudp_magic);
103
104 EXPORT_SYMBOL(__copy_tofrom_user);
105 EXPORT_SYMBOL(__clear_user);
106 EXPORT_SYMBOL(__strncpy_from_user);
107 EXPORT_SYMBOL(__strnlen_user);
108
109 /*
110 EXPORT_SYMBOL(inb);
111 EXPORT_SYMBOL(inw);
112 EXPORT_SYMBOL(inl);
113 EXPORT_SYMBOL(outb);
114 EXPORT_SYMBOL(outw);
115 EXPORT_SYMBOL(outl);
116 EXPORT_SYMBOL(outsl);*/
117
118 EXPORT_SYMBOL(__ide_mm_insl);
119 EXPORT_SYMBOL(__ide_mm_outsw);
120 EXPORT_SYMBOL(__ide_mm_insw);
121 EXPORT_SYMBOL(__ide_mm_outsl);
122
123 EXPORT_SYMBOL(_insb);
124 EXPORT_SYMBOL(_outsb);
125 EXPORT_SYMBOL(_insw);
126 EXPORT_SYMBOL(_outsw);
127 EXPORT_SYMBOL(_insl);
128 EXPORT_SYMBOL(_outsl);
129 EXPORT_SYMBOL(_insw_ns);
130 EXPORT_SYMBOL(_outsw_ns);
131 EXPORT_SYMBOL(_insl_ns);
132 EXPORT_SYMBOL(_outsl_ns);
133 EXPORT_SYMBOL(iopa);
134 EXPORT_SYMBOL(mm_ptov);
135 EXPORT_SYMBOL(ioremap);
136 #ifdef CONFIG_44x
137 EXPORT_SYMBOL(ioremap64);
138 #endif
139 EXPORT_SYMBOL(__ioremap);
140 EXPORT_SYMBOL(iounmap);
141 EXPORT_SYMBOL(ioremap_bot);     /* aka VMALLOC_END */
142
143 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
144 EXPORT_SYMBOL(ppc_ide_md);
145 #endif
146
147 #ifdef CONFIG_PCI
148 EXPORT_SYMBOL(isa_io_base);
149 EXPORT_SYMBOL(isa_mem_base);
150 EXPORT_SYMBOL(pci_dram_offset);
151 EXPORT_SYMBOL(pci_alloc_consistent);
152 EXPORT_SYMBOL(pci_free_consistent);
153 EXPORT_SYMBOL(pci_bus_io_base);
154 EXPORT_SYMBOL(pci_bus_io_base_phys);
155 EXPORT_SYMBOL(pci_bus_mem_base_phys);
156 EXPORT_SYMBOL(pci_bus_to_hose);
157 EXPORT_SYMBOL(pci_resource_to_bus);
158 EXPORT_SYMBOL(pci_phys_to_bus);
159 EXPORT_SYMBOL(pci_bus_to_phys);
160 #endif /* CONFIG_PCI */
161
162 #ifdef CONFIG_NOT_COHERENT_CACHE
163 extern void flush_dcache_all(void);
164 EXPORT_SYMBOL(flush_dcache_all);
165 #endif
166
167 EXPORT_SYMBOL(start_thread);
168 EXPORT_SYMBOL(kernel_thread);
169
170 EXPORT_SYMBOL(flush_instruction_cache);
171 EXPORT_SYMBOL(giveup_fpu);
172 EXPORT_SYMBOL(__flush_icache_range);
173 EXPORT_SYMBOL(flush_dcache_range);
174 EXPORT_SYMBOL(flush_icache_user_range);
175 EXPORT_SYMBOL(flush_dcache_page);
176 EXPORT_SYMBOL(flush_tlb_kernel_range);
177 EXPORT_SYMBOL(flush_tlb_page);
178 EXPORT_SYMBOL(_tlbie);
179 #ifdef CONFIG_ALTIVEC
180 #ifndef CONFIG_SMP
181 EXPORT_SYMBOL(last_task_used_altivec);
182 #endif
183 EXPORT_SYMBOL(giveup_altivec);
184 #endif /* CONFIG_ALTIVEC */
185 #ifdef CONFIG_SPE
186 #ifndef CONFIG_SMP
187 EXPORT_SYMBOL(last_task_used_spe);
188 #endif
189 EXPORT_SYMBOL(giveup_spe);
190 #endif /* CONFIG_SPE */
191 #ifdef CONFIG_SMP
192 EXPORT_SYMBOL(smp_call_function);
193 EXPORT_SYMBOL(smp_hw_index);
194 #endif
195
196 EXPORT_SYMBOL(ppc_md);
197
198 #ifdef CONFIG_ADB
199 EXPORT_SYMBOL(adb_request);
200 EXPORT_SYMBOL(adb_register);
201 EXPORT_SYMBOL(adb_unregister);
202 EXPORT_SYMBOL(adb_poll);
203 EXPORT_SYMBOL(adb_try_handler_change);
204 #endif /* CONFIG_ADB */
205 #ifdef CONFIG_ADB_CUDA
206 EXPORT_SYMBOL(cuda_request);
207 EXPORT_SYMBOL(cuda_poll);
208 #endif /* CONFIG_ADB_CUDA */
209 #if defined(CONFIG_BOOTX_TEXT)
210 EXPORT_SYMBOL(btext_update_display);
211 #endif
212 #ifdef CONFIG_VT
213 EXPORT_SYMBOL(kd_mksound);
214 #endif
215 EXPORT_SYMBOL(to_tm);
216
217 EXPORT_SYMBOL(pm_power_off);
218
219 EXPORT_SYMBOL(__ashrdi3);
220 EXPORT_SYMBOL(__ashldi3);
221 EXPORT_SYMBOL(__lshrdi3);
222 EXPORT_SYMBOL(memcpy);
223 EXPORT_SYMBOL(cacheable_memcpy);
224 EXPORT_SYMBOL(memset);
225 EXPORT_SYMBOL(memmove);
226 EXPORT_SYMBOL(memcmp);
227 EXPORT_SYMBOL(memchr);
228
229 #if defined(CONFIG_FB_VGA16_MODULE)
230 EXPORT_SYMBOL(screen_info);
231 #endif
232
233 EXPORT_SYMBOL(__delay);
234 EXPORT_SYMBOL(timer_interrupt);
235 EXPORT_SYMBOL(irq_desc);
236 EXPORT_SYMBOL(tb_ticks_per_jiffy);
237 EXPORT_SYMBOL(console_drivers);
238 #ifdef CONFIG_XMON
239 EXPORT_SYMBOL(xmon);
240 EXPORT_SYMBOL(xmon_printf);
241 #endif
242
243 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
244 extern void (*debugger)(struct pt_regs *regs);
245 extern int (*debugger_bpt)(struct pt_regs *regs);
246 extern int (*debugger_sstep)(struct pt_regs *regs);
247 extern int (*debugger_iabr_match)(struct pt_regs *regs);
248 extern int (*debugger_dabr_match)(struct pt_regs *regs);
249 extern void (*debugger_fault_handler)(struct pt_regs *regs);
250
251 EXPORT_SYMBOL(debugger);
252 EXPORT_SYMBOL(debugger_bpt);
253 EXPORT_SYMBOL(debugger_sstep);
254 EXPORT_SYMBOL(debugger_iabr_match);
255 EXPORT_SYMBOL(debugger_dabr_match);
256 EXPORT_SYMBOL(debugger_fault_handler);
257 #endif
258
259 #ifdef  CONFIG_8xx
260 EXPORT_SYMBOL(cpm_install_handler);
261 EXPORT_SYMBOL(cpm_free_handler);
262 #endif /* CONFIG_8xx */
263 #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
264         defined(CONFIG_83xx)
265 EXPORT_SYMBOL(__res);
266 #endif
267
268 EXPORT_SYMBOL(next_mmu_context);
269 EXPORT_SYMBOL(set_context);
270 EXPORT_SYMBOL(disarm_decr);
271 #ifdef CONFIG_PPC_STD_MMU
272 extern long mol_trampoline;
273 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
274 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
275 #ifdef CONFIG_SMP
276 extern int mmu_hash_lock;
277 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
278 #endif /* CONFIG_SMP */
279 extern long *intercept_table;
280 EXPORT_SYMBOL(intercept_table);
281 #endif /* CONFIG_PPC_STD_MMU */
282 #if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
283 EXPORT_SYMBOL(__mtdcr);
284 EXPORT_SYMBOL(__mfdcr);
285 #endif