patch-2_6_7-vs1_9_1_12
[linux-2.6.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
19 #include <asm/page.h>
20 #include <asm/semaphore.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/bitops.h>
27 #include <asm/checksum.h>
28 #include <asm/pgtable.h>
29 #include <asm/tlbflush.h>
30 #include <linux/adb.h>
31 #include <linux/cuda.h>
32 #include <linux/pmu.h>
33 #include <asm/prom.h>
34 #include <asm/system.h>
35 #include <asm/pci-bridge.h>
36 #include <asm/irq.h>
37 #include <asm/pmac_feature.h>
38 #include <asm/dma.h>
39 #include <asm/machdep.h>
40 #include <asm/hw_irq.h>
41 #include <asm/nvram.h>
42 #include <asm/mmu_context.h>
43 #include <asm/backlight.h>
44 #include <asm/time.h>
45 #include <asm/cputable.h>
46 #include <asm/btext.h>
47 #include <asm/div64.h>
48 #include <asm/xmon.h>
49
50 #ifdef  CONFIG_8xx
51 #include <asm/commproc.h>
52 #endif
53
54 /* Tell string.h we don't want memcpy etc. as cpp defines */
55 #define EXPORT_SYMTAB_STROPS
56
57 extern void transfer_to_handler(void);
58 extern void do_syscall_trace(void);
59 extern void do_IRQ(struct pt_regs *regs);
60 extern void MachineCheckException(struct pt_regs *regs);
61 extern void AlignmentException(struct pt_regs *regs);
62 extern void ProgramCheckException(struct pt_regs *regs);
63 extern void SingleStepException(struct pt_regs *regs);
64 extern int do_signal(sigset_t *, struct pt_regs *);
65 extern int pmac_newworld;
66 extern int sys_sigreturn(struct pt_regs *regs);
67
68 long long __ashrdi3(long long, int);
69 long long __ashldi3(long long, int);
70 long long __lshrdi3(long long, int);
71 int abs(int);
72
73 extern unsigned long mm_ptov (unsigned long paddr);
74
75 EXPORT_SYMBOL(clear_pages);
76 EXPORT_SYMBOL(clear_user_page);
77 EXPORT_SYMBOL(do_signal);
78 EXPORT_SYMBOL(do_syscall_trace);
79 EXPORT_SYMBOL(transfer_to_handler);
80 EXPORT_SYMBOL(do_IRQ);
81 EXPORT_SYMBOL(MachineCheckException);
82 EXPORT_SYMBOL(AlignmentException);
83 EXPORT_SYMBOL(ProgramCheckException);
84 EXPORT_SYMBOL(SingleStepException);
85 EXPORT_SYMBOL(sys_sigreturn);
86 EXPORT_SYMBOL(ppc_n_lost_interrupts);
87 EXPORT_SYMBOL(ppc_lost_interrupts);
88 EXPORT_SYMBOL(enable_irq);
89 EXPORT_SYMBOL(disable_irq);
90 EXPORT_SYMBOL(disable_irq_nosync);
91 EXPORT_SYMBOL(probe_irq_mask);
92
93 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
94 EXPORT_SYMBOL(DMA_MODE_READ);
95 EXPORT_SYMBOL(DMA_MODE_WRITE);
96 #if defined(CONFIG_PPC_PREP)
97 EXPORT_SYMBOL(_prep_type);
98 EXPORT_SYMBOL(ucSystemType);
99 #endif
100
101 #if !defined(__INLINE_BITOPS)
102 EXPORT_SYMBOL(set_bit);
103 EXPORT_SYMBOL(clear_bit);
104 EXPORT_SYMBOL(change_bit);
105 EXPORT_SYMBOL(test_and_set_bit);
106 EXPORT_SYMBOL(test_and_clear_bit);
107 EXPORT_SYMBOL(test_and_change_bit);
108 #endif /* __INLINE_BITOPS */
109
110 EXPORT_SYMBOL(strcpy);
111 EXPORT_SYMBOL(strncpy);
112 EXPORT_SYMBOL(strcat);
113 EXPORT_SYMBOL(strncat);
114 EXPORT_SYMBOL(strchr);
115 EXPORT_SYMBOL(strrchr);
116 EXPORT_SYMBOL(strpbrk);
117 EXPORT_SYMBOL(strstr);
118 EXPORT_SYMBOL(strlen);
119 EXPORT_SYMBOL(strnlen);
120 EXPORT_SYMBOL(strcmp);
121 EXPORT_SYMBOL(strncmp);
122 EXPORT_SYMBOL(strcasecmp);
123 EXPORT_SYMBOL(__div64_32);
124
125 EXPORT_SYMBOL(csum_partial);
126 EXPORT_SYMBOL(csum_partial_copy_generic);
127 EXPORT_SYMBOL(ip_fast_csum);
128 EXPORT_SYMBOL(csum_tcpudp_magic);
129
130 EXPORT_SYMBOL(__copy_tofrom_user);
131 EXPORT_SYMBOL(__clear_user);
132 EXPORT_SYMBOL(__strncpy_from_user);
133 EXPORT_SYMBOL(__strnlen_user);
134
135 /*
136 EXPORT_SYMBOL(inb);
137 EXPORT_SYMBOL(inw);
138 EXPORT_SYMBOL(inl);
139 EXPORT_SYMBOL(outb);
140 EXPORT_SYMBOL(outw);
141 EXPORT_SYMBOL(outl);
142 EXPORT_SYMBOL(outsl);*/
143
144 EXPORT_SYMBOL(_insb);
145 EXPORT_SYMBOL(_outsb);
146 EXPORT_SYMBOL(_insw);
147 EXPORT_SYMBOL(_outsw);
148 EXPORT_SYMBOL(_insl);
149 EXPORT_SYMBOL(_outsl);
150 EXPORT_SYMBOL(_insw_ns);
151 EXPORT_SYMBOL(_outsw_ns);
152 EXPORT_SYMBOL(_insl_ns);
153 EXPORT_SYMBOL(_outsl_ns);
154 EXPORT_SYMBOL(iopa);
155 EXPORT_SYMBOL(mm_ptov);
156 EXPORT_SYMBOL(ioremap);
157 #ifdef CONFIG_44x
158 EXPORT_SYMBOL(ioremap64);
159 #endif
160 EXPORT_SYMBOL(__ioremap);
161 EXPORT_SYMBOL(iounmap);
162 EXPORT_SYMBOL(ioremap_bot);     /* aka VMALLOC_END */
163
164 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
165 EXPORT_SYMBOL(ppc_ide_md);
166 #endif
167
168 #ifdef CONFIG_PCI
169 EXPORT_SYMBOL(isa_io_base);
170 EXPORT_SYMBOL(isa_mem_base);
171 EXPORT_SYMBOL(pci_dram_offset);
172 EXPORT_SYMBOL(pci_alloc_consistent);
173 EXPORT_SYMBOL(pci_free_consistent);
174 EXPORT_SYMBOL(pci_bus_io_base);
175 EXPORT_SYMBOL(pci_bus_io_base_phys);
176 EXPORT_SYMBOL(pci_bus_mem_base_phys);
177 EXPORT_SYMBOL(pci_bus_to_hose);
178 EXPORT_SYMBOL(pci_resource_to_bus);
179 EXPORT_SYMBOL(pci_phys_to_bus);
180 EXPORT_SYMBOL(pci_bus_to_phys);
181 #endif /* CONFIG_PCI */
182
183 #ifdef CONFIG_NOT_COHERENT_CACHE
184 EXPORT_SYMBOL(flush_dcache_all);
185 #endif
186
187 EXPORT_SYMBOL(start_thread);
188 EXPORT_SYMBOL(kernel_thread);
189
190 EXPORT_SYMBOL(flush_instruction_cache);
191 EXPORT_SYMBOL(giveup_fpu);
192 EXPORT_SYMBOL(flush_icache_range);
193 EXPORT_SYMBOL(flush_dcache_range);
194 EXPORT_SYMBOL(flush_icache_user_range);
195 EXPORT_SYMBOL(flush_dcache_page);
196 EXPORT_SYMBOL(flush_tlb_kernel_range);
197 EXPORT_SYMBOL(flush_tlb_page);
198 #ifdef CONFIG_ALTIVEC
199 EXPORT_SYMBOL(last_task_used_altivec);
200 EXPORT_SYMBOL(giveup_altivec);
201 #endif /* CONFIG_ALTIVEC */
202 #ifdef CONFIG_SMP
203 EXPORT_SYMBOL(smp_call_function);
204 EXPORT_SYMBOL(smp_hw_index);
205 EXPORT_SYMBOL(synchronize_irq);
206 #endif
207
208 EXPORT_SYMBOL(ppc_md);
209
210 #ifdef CONFIG_ADB
211 EXPORT_SYMBOL(adb_request);
212 EXPORT_SYMBOL(adb_register);
213 EXPORT_SYMBOL(adb_unregister);
214 EXPORT_SYMBOL(adb_poll);
215 EXPORT_SYMBOL(adb_try_handler_change);
216 #endif /* CONFIG_ADB */
217 #ifdef CONFIG_ADB_CUDA
218 EXPORT_SYMBOL(cuda_request);
219 EXPORT_SYMBOL(cuda_poll);
220 #endif /* CONFIG_ADB_CUDA */
221 #ifdef CONFIG_PPC_MULTIPLATFORM
222 EXPORT_SYMBOL(_machine);
223 #endif
224 #ifdef CONFIG_PPC_PMAC
225 EXPORT_SYMBOL(sys_ctrler);
226 EXPORT_SYMBOL(pmac_newworld);
227 #endif
228 #ifdef CONFIG_PPC_OF
229 EXPORT_SYMBOL(find_devices);
230 EXPORT_SYMBOL(find_type_devices);
231 EXPORT_SYMBOL(find_compatible_devices);
232 EXPORT_SYMBOL(find_path_device);
233 EXPORT_SYMBOL(device_is_compatible);
234 EXPORT_SYMBOL(machine_is_compatible);
235 EXPORT_SYMBOL(find_all_nodes);
236 EXPORT_SYMBOL(get_property);
237 EXPORT_SYMBOL(request_OF_resource);
238 EXPORT_SYMBOL(release_OF_resource);
239 EXPORT_SYMBOL(pci_busdev_to_OF_node);
240 EXPORT_SYMBOL(pci_device_to_OF_node);
241 EXPORT_SYMBOL(pci_device_from_OF_node);
242 EXPORT_SYMBOL(of_find_node_by_name);
243 EXPORT_SYMBOL(of_find_node_by_type);
244 EXPORT_SYMBOL(of_find_compatible_node);
245 EXPORT_SYMBOL(of_find_node_by_path);
246 EXPORT_SYMBOL(of_find_all_nodes);
247 EXPORT_SYMBOL(of_get_parent);
248 EXPORT_SYMBOL(of_get_next_child);
249 EXPORT_SYMBOL(of_node_get);
250 EXPORT_SYMBOL(of_node_put);
251 #endif /* CONFIG_PPC_OF */
252 #if defined(CONFIG_BOOTX_TEXT)
253 EXPORT_SYMBOL(btext_update_display);
254 #endif
255 #if defined(CONFIG_SCSI) && defined(CONFIG_PPC_PMAC)
256 EXPORT_SYMBOL(note_scsi_host);
257 #endif
258 #ifdef CONFIG_VT
259 EXPORT_SYMBOL(kd_mksound);
260 #endif
261 EXPORT_SYMBOL(to_tm);
262
263 EXPORT_SYMBOL(pm_power_off);
264
265 EXPORT_SYMBOL(__ashrdi3);
266 EXPORT_SYMBOL(__ashldi3);
267 EXPORT_SYMBOL(__lshrdi3);
268 EXPORT_SYMBOL(memcpy);
269 EXPORT_SYMBOL(memset);
270 EXPORT_SYMBOL(memmove);
271 EXPORT_SYMBOL(memscan);
272 EXPORT_SYMBOL(memcmp);
273 EXPORT_SYMBOL(memchr);
274
275 EXPORT_SYMBOL(abs);
276
277 #if defined(CONFIG_FB_VGA16_MODULE)
278 EXPORT_SYMBOL(screen_info);
279 #endif
280
281 EXPORT_SYMBOL(__delay);
282 #ifndef INLINE_IRQS
283 EXPORT_SYMBOL(local_irq_enable);
284 EXPORT_SYMBOL(local_irq_enable_end);
285 EXPORT_SYMBOL(local_irq_disable);
286 EXPORT_SYMBOL(local_irq_disable_end);
287 EXPORT_SYMBOL(local_save_flags_ptr);
288 EXPORT_SYMBOL(local_save_flags_ptr_end);
289 EXPORT_SYMBOL(local_irq_restore);
290 EXPORT_SYMBOL(local_irq_restore_end);
291 #endif
292 EXPORT_SYMBOL(timer_interrupt);
293 EXPORT_SYMBOL(irq_desc);
294 void ppc_irq_dispatch_handler(struct pt_regs *, int);
295 EXPORT_SYMBOL(ppc_irq_dispatch_handler);
296 EXPORT_SYMBOL(tb_ticks_per_jiffy);
297 EXPORT_SYMBOL(get_wchan);
298 EXPORT_SYMBOL(console_drivers);
299 #ifdef CONFIG_XMON
300 EXPORT_SYMBOL(xmon);
301 EXPORT_SYMBOL(xmon_printf);
302 #endif
303 EXPORT_SYMBOL(__up);
304 EXPORT_SYMBOL(__down);
305 EXPORT_SYMBOL(__down_interruptible);
306
307 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
308 extern void (*debugger)(struct pt_regs *regs);
309 extern int (*debugger_bpt)(struct pt_regs *regs);
310 extern int (*debugger_sstep)(struct pt_regs *regs);
311 extern int (*debugger_iabr_match)(struct pt_regs *regs);
312 extern int (*debugger_dabr_match)(struct pt_regs *regs);
313 extern void (*debugger_fault_handler)(struct pt_regs *regs);
314
315 EXPORT_SYMBOL(debugger);
316 EXPORT_SYMBOL(debugger_bpt);
317 EXPORT_SYMBOL(debugger_sstep);
318 EXPORT_SYMBOL(debugger_iabr_match);
319 EXPORT_SYMBOL(debugger_dabr_match);
320 EXPORT_SYMBOL(debugger_fault_handler);
321 #endif
322
323 #ifdef  CONFIG_8xx
324 EXPORT_SYMBOL(cpm_install_handler);
325 EXPORT_SYMBOL(cpm_free_handler);
326 #endif /* CONFIG_8xx */
327 #if defined(CONFIG_8xx) || defined(CONFIG_40x)
328 EXPORT_SYMBOL(__res);
329 #endif
330 #if defined(CONFIG_8xx)
331 EXPORT_SYMBOL(request_8xxirq);
332 #endif
333
334 EXPORT_SYMBOL(next_mmu_context);
335 EXPORT_SYMBOL(set_context);
336 EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
337 EXPORT_SYMBOL(disarm_decr);
338 #ifdef CONFIG_PPC_STD_MMU
339 extern long mol_trampoline;
340 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
341 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
342 #ifdef CONFIG_SMP
343 extern int mmu_hash_lock;
344 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
345 #endif /* CONFIG_SMP */
346 extern long *intercept_table;
347 EXPORT_SYMBOL(intercept_table);
348 #endif /* CONFIG_PPC_STD_MMU */
349 EXPORT_SYMBOL(cur_cpu_spec);
350 #ifdef CONFIG_PPC_PMAC
351 extern unsigned long agp_special_page;
352 EXPORT_SYMBOL(agp_special_page);
353 #endif