powerpc: Get 64-bit configs to compile with ARCH=powerpc
[linux-2.6-block.git] / arch / powerpc / kernel / ppc_ksyms.c
CommitLineData
20c8c210
PM
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/semaphore.h>
22#include <asm/processor.h>
23#include <asm/uaccess.h>
24#include <asm/io.h>
25#include <asm/ide.h>
26#include <asm/atomic.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
40ef8cbc 54#ifdef CONFIG_PPC32
20c8c210
PM
55extern void transfer_to_handler(void);
56extern void do_IRQ(struct pt_regs *regs);
dc1c1ca3
SR
57extern void machine_check_exception(struct pt_regs *regs);
58extern void alignment_exception(struct pt_regs *regs);
59extern void program_check_exception(struct pt_regs *regs);
60extern void single_step_exception(struct pt_regs *regs);
20c8c210
PM
61extern int do_signal(sigset_t *, struct pt_regs *);
62extern int pmac_newworld;
63extern int sys_sigreturn(struct pt_regs *regs);
64
20c8c210 65EXPORT_SYMBOL(clear_pages);
40ef8cbc
PM
66EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
67EXPORT_SYMBOL(DMA_MODE_READ);
68EXPORT_SYMBOL(DMA_MODE_WRITE);
69EXPORT_SYMBOL(__div64_32);
70
20c8c210
PM
71EXPORT_SYMBOL(do_signal);
72EXPORT_SYMBOL(transfer_to_handler);
73EXPORT_SYMBOL(do_IRQ);
dc1c1ca3
SR
74EXPORT_SYMBOL(machine_check_exception);
75EXPORT_SYMBOL(alignment_exception);
76EXPORT_SYMBOL(program_check_exception);
77EXPORT_SYMBOL(single_step_exception);
20c8c210 78EXPORT_SYMBOL(sys_sigreturn);
40ef8cbc 79#endif
20c8c210 80
20c8c210
PM
81#if defined(CONFIG_PPC_PREP)
82EXPORT_SYMBOL(_prep_type);
83EXPORT_SYMBOL(ucSystemType);
84#endif
85
86#if !defined(__INLINE_BITOPS)
87EXPORT_SYMBOL(set_bit);
88EXPORT_SYMBOL(clear_bit);
89EXPORT_SYMBOL(change_bit);
90EXPORT_SYMBOL(test_and_set_bit);
91EXPORT_SYMBOL(test_and_clear_bit);
92EXPORT_SYMBOL(test_and_change_bit);
93#endif /* __INLINE_BITOPS */
94
95EXPORT_SYMBOL(strcpy);
96EXPORT_SYMBOL(strncpy);
97EXPORT_SYMBOL(strcat);
98EXPORT_SYMBOL(strncat);
99EXPORT_SYMBOL(strchr);
100EXPORT_SYMBOL(strrchr);
101EXPORT_SYMBOL(strpbrk);
102EXPORT_SYMBOL(strstr);
103EXPORT_SYMBOL(strlen);
104EXPORT_SYMBOL(strnlen);
105EXPORT_SYMBOL(strcmp);
106EXPORT_SYMBOL(strncmp);
107EXPORT_SYMBOL(strcasecmp);
20c8c210
PM
108
109EXPORT_SYMBOL(csum_partial);
110EXPORT_SYMBOL(csum_partial_copy_generic);
111EXPORT_SYMBOL(ip_fast_csum);
112EXPORT_SYMBOL(csum_tcpudp_magic);
113
114EXPORT_SYMBOL(__copy_tofrom_user);
115EXPORT_SYMBOL(__clear_user);
116EXPORT_SYMBOL(__strncpy_from_user);
117EXPORT_SYMBOL(__strnlen_user);
118
119EXPORT_SYMBOL(_insb);
120EXPORT_SYMBOL(_outsb);
121EXPORT_SYMBOL(_insw);
122EXPORT_SYMBOL(_outsw);
123EXPORT_SYMBOL(_insl);
124EXPORT_SYMBOL(_outsl);
125EXPORT_SYMBOL(_insw_ns);
126EXPORT_SYMBOL(_outsw_ns);
127EXPORT_SYMBOL(_insl_ns);
128EXPORT_SYMBOL(_outsl_ns);
20c8c210
PM
129EXPORT_SYMBOL(ioremap);
130#ifdef CONFIG_44x
131EXPORT_SYMBOL(ioremap64);
132#endif
133EXPORT_SYMBOL(__ioremap);
134EXPORT_SYMBOL(iounmap);
40ef8cbc 135#ifdef CONFIG_PPC32
20c8c210 136EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
40ef8cbc 137#endif
20c8c210 138
40ef8cbc 139#if defined(CONFIG_PPC32) && (defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE))
20c8c210
PM
140EXPORT_SYMBOL(ppc_ide_md);
141#endif
142
40ef8cbc 143#if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
20c8c210
PM
144EXPORT_SYMBOL(isa_io_base);
145EXPORT_SYMBOL(isa_mem_base);
146EXPORT_SYMBOL(pci_dram_offset);
147EXPORT_SYMBOL(pci_alloc_consistent);
148EXPORT_SYMBOL(pci_free_consistent);
149EXPORT_SYMBOL(pci_bus_io_base);
150EXPORT_SYMBOL(pci_bus_io_base_phys);
151EXPORT_SYMBOL(pci_bus_mem_base_phys);
152EXPORT_SYMBOL(pci_bus_to_hose);
153EXPORT_SYMBOL(pci_resource_to_bus);
154EXPORT_SYMBOL(pci_phys_to_bus);
155EXPORT_SYMBOL(pci_bus_to_phys);
156#endif /* CONFIG_PCI */
157
158#ifdef CONFIG_NOT_COHERENT_CACHE
159EXPORT_SYMBOL(flush_dcache_all);
160#endif
161
162EXPORT_SYMBOL(start_thread);
163EXPORT_SYMBOL(kernel_thread);
164
20c8c210 165EXPORT_SYMBOL(giveup_fpu);
40ef8cbc
PM
166#ifdef CONFIG_ALTIVEC
167EXPORT_SYMBOL(giveup_altivec);
168#endif /* CONFIG_ALTIVEC */
169#ifdef CONFIG_SPE
170EXPORT_SYMBOL(giveup_spe);
171#endif /* CONFIG_SPE */
172
20c8c210
PM
173#ifdef CONFIG_PPC64
174EXPORT_SYMBOL(__flush_icache_range);
175#else
40ef8cbc 176EXPORT_SYMBOL(flush_instruction_cache);
20c8c210 177EXPORT_SYMBOL(flush_icache_range);
20c8c210
PM
178EXPORT_SYMBOL(flush_tlb_kernel_range);
179EXPORT_SYMBOL(flush_tlb_page);
180EXPORT_SYMBOL(_tlbie);
40ef8cbc
PM
181#endif
182EXPORT_SYMBOL(flush_dcache_range);
183
20c8c210
PM
184#ifdef CONFIG_SMP
185EXPORT_SYMBOL(smp_call_function);
40ef8cbc 186#ifdef CONFIG_PPC32
20c8c210
PM
187EXPORT_SYMBOL(smp_hw_index);
188#endif
40ef8cbc 189#endif
20c8c210
PM
190
191#ifdef CONFIG_ADB
192EXPORT_SYMBOL(adb_request);
193EXPORT_SYMBOL(adb_register);
194EXPORT_SYMBOL(adb_unregister);
195EXPORT_SYMBOL(adb_poll);
196EXPORT_SYMBOL(adb_try_handler_change);
197#endif /* CONFIG_ADB */
198#ifdef CONFIG_ADB_CUDA
199EXPORT_SYMBOL(cuda_request);
200EXPORT_SYMBOL(cuda_poll);
201#endif /* CONFIG_ADB_CUDA */
40ef8cbc 202#if defined(CONFIG_PPC_MULTIPLATFORM) && defined(CONFIG_PPC32)
20c8c210
PM
203EXPORT_SYMBOL(_machine);
204#endif
205#ifdef CONFIG_PPC_PMAC
206EXPORT_SYMBOL(sys_ctrler);
20c8c210 207#endif
20c8c210
PM
208#ifdef CONFIG_VT
209EXPORT_SYMBOL(kd_mksound);
210#endif
211EXPORT_SYMBOL(to_tm);
212
40ef8cbc
PM
213#ifdef CONFIG_PPC32
214long long __ashrdi3(long long, int);
215long long __ashldi3(long long, int);
216long long __lshrdi3(long long, int);
20c8c210
PM
217EXPORT_SYMBOL(__ashrdi3);
218EXPORT_SYMBOL(__ashldi3);
219EXPORT_SYMBOL(__lshrdi3);
40ef8cbc
PM
220#endif
221
20c8c210 222EXPORT_SYMBOL(memcpy);
20c8c210
PM
223EXPORT_SYMBOL(memset);
224EXPORT_SYMBOL(memmove);
225EXPORT_SYMBOL(memscan);
226EXPORT_SYMBOL(memcmp);
227EXPORT_SYMBOL(memchr);
228
229#if defined(CONFIG_FB_VGA16_MODULE)
230EXPORT_SYMBOL(screen_info);
231#endif
232
40ef8cbc
PM
233#ifdef CONFIG_PPC32
234EXPORT_SYMBOL(pm_power_off);
20c8c210
PM
235EXPORT_SYMBOL(__delay);
236EXPORT_SYMBOL(timer_interrupt);
237EXPORT_SYMBOL(irq_desc);
238EXPORT_SYMBOL(tb_ticks_per_jiffy);
20c8c210 239EXPORT_SYMBOL(console_drivers);
40ef8cbc 240EXPORT_SYMBOL(cacheable_memcpy);
20c8c210
PM
241#endif
242
243#ifdef CONFIG_XMON
244EXPORT_SYMBOL(xmon);
245EXPORT_SYMBOL(xmon_printf);
246#endif
247EXPORT_SYMBOL(__up);
248EXPORT_SYMBOL(__down);
249EXPORT_SYMBOL(__down_interruptible);
250
20c8c210
PM
251#ifdef CONFIG_8xx
252EXPORT_SYMBOL(cpm_install_handler);
253EXPORT_SYMBOL(cpm_free_handler);
254#endif /* CONFIG_8xx */
255#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
256 defined(CONFIG_83xx)
257EXPORT_SYMBOL(__res);
258#endif
259
40ef8cbc 260#ifdef CONFIG_PPC32
20c8c210
PM
261EXPORT_SYMBOL(next_mmu_context);
262EXPORT_SYMBOL(set_context);
20c8c210 263EXPORT_SYMBOL(disarm_decr);
40ef8cbc
PM
264#endif
265
266#ifdef CONFIG_PPC_STD_MMU_32
20c8c210
PM
267extern long mol_trampoline;
268EXPORT_SYMBOL(mol_trampoline); /* For MOL */
269EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
40ef8cbc 270EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */
20c8c210
PM
271#ifdef CONFIG_SMP
272extern int mmu_hash_lock;
273EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
274#endif /* CONFIG_SMP */
275extern long *intercept_table;
276EXPORT_SYMBOL(intercept_table);
40ef8cbc 277#endif /* CONFIG_PPC_STD_MMU_32 */
20c8c210
PM
278#ifdef CONFIG_PPC_PMAC
279extern unsigned long agp_special_page;
280EXPORT_SYMBOL(agp_special_page);
281#endif
282#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
283EXPORT_SYMBOL(__mtdcr);
284EXPORT_SYMBOL(__mfdcr);
285#endif