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