blob: ecee596d28f6e73d222883564592517b5a94a16c [file] [log] [blame]
Paul Mackerras20c8c212005-09-28 20:28:14 +10001#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>
Jon Smirl894673e2006-07-10 04:44:13 -07008#include <linux/screen_info.h>
Paul Mackerras20c8c212005-09-28 20:28:14 +10009#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>
Paul Mackerras20c8c212005-09-28 20:28:14 +100016#include <linux/bitops.h>
17
18#include <asm/page.h>
19#include <asm/semaphore.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/prom.h>
32#include <asm/system.h>
33#include <asm/pci-bridge.h>
34#include <asm/irq.h>
35#include <asm/pmac_feature.h>
36#include <asm/dma.h>
37#include <asm/machdep.h>
38#include <asm/hw_irq.h>
39#include <asm/nvram.h>
40#include <asm/mmu_context.h>
41#include <asm/backlight.h>
42#include <asm/time.h>
43#include <asm/cputable.h>
44#include <asm/btext.h>
45#include <asm/div64.h>
David Gibsonc5ff7002005-11-09 11:21:07 +110046#include <asm/signal.h>
David Gibsona2c70212007-02-06 11:48:28 +110047#include <asm/dcr.h>
Paul Mackerras20c8c212005-09-28 20:28:14 +100048
49#ifdef CONFIG_8xx
50#include <asm/commproc.h>
51#endif
52
Paul Mackerrasd04c56f2006-10-04 16:47:49 +100053#ifdef CONFIG_PPC64
54EXPORT_SYMBOL(local_irq_restore);
55#endif
56
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100057#ifdef CONFIG_PPC32
Paul Mackerras20c8c212005-09-28 20:28:14 +100058extern void transfer_to_handler(void);
59extern void do_IRQ(struct pt_regs *regs);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100060extern void machine_check_exception(struct pt_regs *regs);
61extern void alignment_exception(struct pt_regs *regs);
62extern void program_check_exception(struct pt_regs *regs);
63extern void single_step_exception(struct pt_regs *regs);
Paul Mackerras20c8c212005-09-28 20:28:14 +100064extern int sys_sigreturn(struct pt_regs *regs);
65
Paul Mackerras20c8c212005-09-28 20:28:14 +100066EXPORT_SYMBOL(clear_pages);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100067EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
68EXPORT_SYMBOL(DMA_MODE_READ);
69EXPORT_SYMBOL(DMA_MODE_WRITE);
70EXPORT_SYMBOL(__div64_32);
71
Paul Mackerras20c8c212005-09-28 20:28:14 +100072EXPORT_SYMBOL(do_signal);
73EXPORT_SYMBOL(transfer_to_handler);
74EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100075EXPORT_SYMBOL(machine_check_exception);
76EXPORT_SYMBOL(alignment_exception);
77EXPORT_SYMBOL(program_check_exception);
78EXPORT_SYMBOL(single_step_exception);
Paul Mackerras20c8c212005-09-28 20:28:14 +100079EXPORT_SYMBOL(sys_sigreturn);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100080#endif
Paul Mackerras20c8c212005-09-28 20:28:14 +100081
Paul Mackerras20c8c212005-09-28 20:28:14 +100082EXPORT_SYMBOL(strcpy);
83EXPORT_SYMBOL(strncpy);
84EXPORT_SYMBOL(strcat);
Paul Mackerras20c8c212005-09-28 20:28:14 +100085EXPORT_SYMBOL(strlen);
Paul Mackerras20c8c212005-09-28 20:28:14 +100086EXPORT_SYMBOL(strcmp);
Paul Mackerras20c8c212005-09-28 20:28:14 +100087EXPORT_SYMBOL(strcasecmp);
Kumar Gala34ddf732006-04-02 16:01:58 -050088EXPORT_SYMBOL(strncasecmp);
Paul Mackerras20c8c212005-09-28 20:28:14 +100089
90EXPORT_SYMBOL(csum_partial);
91EXPORT_SYMBOL(csum_partial_copy_generic);
92EXPORT_SYMBOL(ip_fast_csum);
93EXPORT_SYMBOL(csum_tcpudp_magic);
94
95EXPORT_SYMBOL(__copy_tofrom_user);
96EXPORT_SYMBOL(__clear_user);
97EXPORT_SYMBOL(__strncpy_from_user);
98EXPORT_SYMBOL(__strnlen_user);
David Howells3dd836a2006-09-12 16:04:25 +010099#ifdef CONFIG_PPC64
100EXPORT_SYMBOL(copy_4K_page);
101#endif
Paul Mackerras20c8c212005-09-28 20:28:14 +1000102
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000103#if defined(CONFIG_PPC32) && (defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE))
Paul Mackerras20c8c212005-09-28 20:28:14 +1000104EXPORT_SYMBOL(ppc_ide_md);
105#endif
106
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000107#if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
Paul Mackerras20c8c212005-09-28 20:28:14 +1000108EXPORT_SYMBOL(isa_io_base);
109EXPORT_SYMBOL(isa_mem_base);
110EXPORT_SYMBOL(pci_dram_offset);
111EXPORT_SYMBOL(pci_alloc_consistent);
112EXPORT_SYMBOL(pci_free_consistent);
113EXPORT_SYMBOL(pci_bus_io_base);
114EXPORT_SYMBOL(pci_bus_io_base_phys);
115EXPORT_SYMBOL(pci_bus_mem_base_phys);
116EXPORT_SYMBOL(pci_bus_to_hose);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000117#endif /* CONFIG_PCI */
118
Paul Mackerras20c8c212005-09-28 20:28:14 +1000119EXPORT_SYMBOL(start_thread);
120EXPORT_SYMBOL(kernel_thread);
121
Paul Mackerras20c8c212005-09-28 20:28:14 +1000122EXPORT_SYMBOL(giveup_fpu);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000123#ifdef CONFIG_ALTIVEC
Paul Mackerras20c8c212005-09-28 20:28:14 +1000124EXPORT_SYMBOL(giveup_altivec);
125#endif /* CONFIG_ALTIVEC */
126#ifdef CONFIG_SPE
Paul Mackerras20c8c212005-09-28 20:28:14 +1000127EXPORT_SYMBOL(giveup_spe);
128#endif /* CONFIG_SPE */
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000129
Paul Mackerras666acb92005-11-29 15:50:58 +1100130#ifndef CONFIG_PPC64
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000131EXPORT_SYMBOL(flush_instruction_cache);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000132EXPORT_SYMBOL(flush_tlb_kernel_range);
133EXPORT_SYMBOL(flush_tlb_page);
134EXPORT_SYMBOL(_tlbie);
135#endif
Paul Mackerras666acb92005-11-29 15:50:58 +1100136EXPORT_SYMBOL(__flush_icache_range);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000137EXPORT_SYMBOL(flush_dcache_range);
138
Paul Mackerras20c8c212005-09-28 20:28:14 +1000139#ifdef CONFIG_SMP
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000140#ifdef CONFIG_PPC32
Paul Mackerras20c8c212005-09-28 20:28:14 +1000141EXPORT_SYMBOL(smp_hw_index);
142#endif
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000143#endif
Paul Mackerras20c8c212005-09-28 20:28:14 +1000144
145#ifdef CONFIG_ADB
146EXPORT_SYMBOL(adb_request);
147EXPORT_SYMBOL(adb_register);
148EXPORT_SYMBOL(adb_unregister);
149EXPORT_SYMBOL(adb_poll);
150EXPORT_SYMBOL(adb_try_handler_change);
151#endif /* CONFIG_ADB */
152#ifdef CONFIG_ADB_CUDA
153EXPORT_SYMBOL(cuda_request);
154EXPORT_SYMBOL(cuda_poll);
155#endif /* CONFIG_ADB_CUDA */
Paul Mackerras20c8c212005-09-28 20:28:14 +1000156#ifdef CONFIG_VT
157EXPORT_SYMBOL(kd_mksound);
158#endif
159EXPORT_SYMBOL(to_tm);
160
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000161#ifdef CONFIG_PPC32
162long long __ashrdi3(long long, int);
163long long __ashldi3(long long, int);
164long long __lshrdi3(long long, int);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000165EXPORT_SYMBOL(__ashrdi3);
166EXPORT_SYMBOL(__ashldi3);
167EXPORT_SYMBOL(__lshrdi3);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000168#endif
169
Paul Mackerras20c8c212005-09-28 20:28:14 +1000170EXPORT_SYMBOL(memcpy);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000171EXPORT_SYMBOL(memset);
172EXPORT_SYMBOL(memmove);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000173EXPORT_SYMBOL(memcmp);
174EXPORT_SYMBOL(memchr);
175
176#if defined(CONFIG_FB_VGA16_MODULE)
177EXPORT_SYMBOL(screen_info);
178#endif
179
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000180#ifdef CONFIG_PPC32
Paul Mackerras20c8c212005-09-28 20:28:14 +1000181EXPORT_SYMBOL(timer_interrupt);
182EXPORT_SYMBOL(irq_desc);
183EXPORT_SYMBOL(tb_ticks_per_jiffy);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000184EXPORT_SYMBOL(console_drivers);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000185EXPORT_SYMBOL(cacheable_memcpy);
Paul Mackerras20c8c212005-09-28 20:28:14 +1000186#endif
187
Paul Mackerras20c8c212005-09-28 20:28:14 +1000188#ifdef CONFIG_8xx
189EXPORT_SYMBOL(cpm_install_handler);
190EXPORT_SYMBOL(cpm_free_handler);
191#endif /* CONFIG_8xx */
Kumar Gala7d13d21a2006-01-13 11:19:58 -0600192#if defined(CONFIG_8xx) || defined(CONFIG_40x)
Paul Mackerras20c8c212005-09-28 20:28:14 +1000193EXPORT_SYMBOL(__res);
194#endif
195
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000196#ifdef CONFIG_PPC32
Paul Mackerras20c8c212005-09-28 20:28:14 +1000197EXPORT_SYMBOL(next_mmu_context);
198EXPORT_SYMBOL(set_context);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000199#endif
200
201#ifdef CONFIG_PPC_STD_MMU_32
Paul Mackerras20c8c212005-09-28 20:28:14 +1000202extern long mol_trampoline;
203EXPORT_SYMBOL(mol_trampoline); /* For MOL */
204EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
205#ifdef CONFIG_SMP
206extern int mmu_hash_lock;
207EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
208#endif /* CONFIG_SMP */
209extern long *intercept_table;
210EXPORT_SYMBOL(intercept_table);
Paul Mackerras40ef8cb2005-10-10 22:50:37 +1000211#endif /* CONFIG_PPC_STD_MMU_32 */
Kumar Gala45d8e7a2006-12-10 23:15:47 -0600212#ifdef CONFIG_PPC_DCR_NATIVE
Paul Mackerras20c8c212005-09-28 20:28:14 +1000213EXPORT_SYMBOL(__mtdcr);
214EXPORT_SYMBOL(__mfdcr);
215#endif