blob: 63f0a987139b4335b2255a76f5834ea47ac5dcb5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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>
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#include <asm/system.h>
32#include <asm/pci-bridge.h>
33#include <asm/irq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070043#include <asm/xmon.h>
David Gibsonc5ff7002005-11-09 11:21:07 +110044#include <asm/signal.h>
David Gibsona2c70212007-02-06 11:48:28 +110045#include <asm/dcr.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070046
47#ifdef CONFIG_8xx
48#include <asm/commproc.h>
49#endif
50
Linus Torvalds1da177e2005-04-16 15:20:36 -070051extern void transfer_to_handler(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070052extern void do_IRQ(struct pt_regs *regs);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100053extern void machine_check_exception(struct pt_regs *regs);
54extern void alignment_exception(struct pt_regs *regs);
55extern void program_check_exception(struct pt_regs *regs);
56extern void single_step_exception(struct pt_regs *regs);
Linus Torvalds1da177e2005-04-16 15:20:36 -070057extern int sys_sigreturn(struct pt_regs *regs);
58
59long long __ashrdi3(long long, int);
60long long __ashldi3(long long, int);
61long long __lshrdi3(long long, int);
62
63extern unsigned long mm_ptov (unsigned long paddr);
64
65EXPORT_SYMBOL(clear_pages);
66EXPORT_SYMBOL(clear_user_page);
Linus Torvalds1da177e2005-04-16 15:20:36 -070067EXPORT_SYMBOL(transfer_to_handler);
68EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100069EXPORT_SYMBOL(machine_check_exception);
70EXPORT_SYMBOL(alignment_exception);
71EXPORT_SYMBOL(program_check_exception);
72EXPORT_SYMBOL(single_step_exception);
Linus Torvalds1da177e2005-04-16 15:20:36 -070073EXPORT_SYMBOL(sys_sigreturn);
74EXPORT_SYMBOL(ppc_n_lost_interrupts);
Linus Torvalds1da177e2005-04-16 15:20:36 -070075
76EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
77EXPORT_SYMBOL(DMA_MODE_READ);
78EXPORT_SYMBOL(DMA_MODE_WRITE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070079
80#if !defined(__INLINE_BITOPS)
81EXPORT_SYMBOL(set_bit);
82EXPORT_SYMBOL(clear_bit);
83EXPORT_SYMBOL(change_bit);
84EXPORT_SYMBOL(test_and_set_bit);
85EXPORT_SYMBOL(test_and_clear_bit);
86EXPORT_SYMBOL(test_and_change_bit);
87#endif /* __INLINE_BITOPS */
88
89EXPORT_SYMBOL(strcpy);
90EXPORT_SYMBOL(strncpy);
91EXPORT_SYMBOL(strcat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070092EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070093EXPORT_SYMBOL(strcmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070094
95EXPORT_SYMBOL(csum_partial);
96EXPORT_SYMBOL(csum_partial_copy_generic);
97EXPORT_SYMBOL(ip_fast_csum);
98EXPORT_SYMBOL(csum_tcpudp_magic);
99
100EXPORT_SYMBOL(__copy_tofrom_user);
101EXPORT_SYMBOL(__clear_user);
102EXPORT_SYMBOL(__strncpy_from_user);
103EXPORT_SYMBOL(__strnlen_user);
104
105/*
106EXPORT_SYMBOL(inb);
107EXPORT_SYMBOL(inw);
108EXPORT_SYMBOL(inl);
109EXPORT_SYMBOL(outb);
110EXPORT_SYMBOL(outw);
111EXPORT_SYMBOL(outl);
112EXPORT_SYMBOL(outsl);*/
113
114EXPORT_SYMBOL(_insb);
115EXPORT_SYMBOL(_outsb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116EXPORT_SYMBOL(_insw_ns);
117EXPORT_SYMBOL(_outsw_ns);
118EXPORT_SYMBOL(_insl_ns);
119EXPORT_SYMBOL(_outsl_ns);
120EXPORT_SYMBOL(iopa);
121EXPORT_SYMBOL(mm_ptov);
122EXPORT_SYMBOL(ioremap);
123#ifdef CONFIG_44x
124EXPORT_SYMBOL(ioremap64);
125#endif
126EXPORT_SYMBOL(__ioremap);
127EXPORT_SYMBOL(iounmap);
128EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
129
130#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
131EXPORT_SYMBOL(ppc_ide_md);
132#endif
133
134#ifdef CONFIG_PCI
135EXPORT_SYMBOL(isa_io_base);
136EXPORT_SYMBOL(isa_mem_base);
137EXPORT_SYMBOL(pci_dram_offset);
138EXPORT_SYMBOL(pci_alloc_consistent);
139EXPORT_SYMBOL(pci_free_consistent);
140EXPORT_SYMBOL(pci_bus_io_base);
141EXPORT_SYMBOL(pci_bus_io_base_phys);
142EXPORT_SYMBOL(pci_bus_mem_base_phys);
143EXPORT_SYMBOL(pci_bus_to_hose);
144EXPORT_SYMBOL(pci_resource_to_bus);
145EXPORT_SYMBOL(pci_phys_to_bus);
146EXPORT_SYMBOL(pci_bus_to_phys);
147#endif /* CONFIG_PCI */
148
149#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100150extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151EXPORT_SYMBOL(flush_dcache_all);
152#endif
153
154EXPORT_SYMBOL(start_thread);
155EXPORT_SYMBOL(kernel_thread);
156
157EXPORT_SYMBOL(flush_instruction_cache);
158EXPORT_SYMBOL(giveup_fpu);
Otavio Salvador0e2d94f2005-11-29 08:02:24 +1100159EXPORT_SYMBOL(__flush_icache_range);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160EXPORT_SYMBOL(flush_dcache_range);
161EXPORT_SYMBOL(flush_icache_user_range);
162EXPORT_SYMBOL(flush_dcache_page);
163EXPORT_SYMBOL(flush_tlb_kernel_range);
164EXPORT_SYMBOL(flush_tlb_page);
165EXPORT_SYMBOL(_tlbie);
166#ifdef CONFIG_ALTIVEC
Al Viro3ba9d912006-01-18 22:34:20 -0500167#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168EXPORT_SYMBOL(last_task_used_altivec);
Al Viro3ba9d912006-01-18 22:34:20 -0500169#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700170EXPORT_SYMBOL(giveup_altivec);
171#endif /* CONFIG_ALTIVEC */
172#ifdef CONFIG_SPE
Al Viro3ba9d912006-01-18 22:34:20 -0500173#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700174EXPORT_SYMBOL(last_task_used_spe);
Al Viro3ba9d912006-01-18 22:34:20 -0500175#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176EXPORT_SYMBOL(giveup_spe);
177#endif /* CONFIG_SPE */
178#ifdef CONFIG_SMP
179EXPORT_SYMBOL(smp_call_function);
180EXPORT_SYMBOL(smp_hw_index);
181#endif
182
183EXPORT_SYMBOL(ppc_md);
184
185#ifdef CONFIG_ADB
186EXPORT_SYMBOL(adb_request);
187EXPORT_SYMBOL(adb_register);
188EXPORT_SYMBOL(adb_unregister);
189EXPORT_SYMBOL(adb_poll);
190EXPORT_SYMBOL(adb_try_handler_change);
191#endif /* CONFIG_ADB */
192#ifdef CONFIG_ADB_CUDA
193EXPORT_SYMBOL(cuda_request);
194EXPORT_SYMBOL(cuda_poll);
195#endif /* CONFIG_ADB_CUDA */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196#if defined(CONFIG_BOOTX_TEXT)
197EXPORT_SYMBOL(btext_update_display);
198#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199#ifdef CONFIG_VT
200EXPORT_SYMBOL(kd_mksound);
201#endif
202EXPORT_SYMBOL(to_tm);
203
204EXPORT_SYMBOL(pm_power_off);
205
206EXPORT_SYMBOL(__ashrdi3);
207EXPORT_SYMBOL(__ashldi3);
208EXPORT_SYMBOL(__lshrdi3);
209EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700210EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211EXPORT_SYMBOL(memset);
212EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213EXPORT_SYMBOL(memcmp);
214EXPORT_SYMBOL(memchr);
215
216#if defined(CONFIG_FB_VGA16_MODULE)
217EXPORT_SYMBOL(screen_info);
218#endif
219
220EXPORT_SYMBOL(__delay);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700221EXPORT_SYMBOL(timer_interrupt);
222EXPORT_SYMBOL(irq_desc);
223EXPORT_SYMBOL(tb_ticks_per_jiffy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700224EXPORT_SYMBOL(console_drivers);
225#ifdef CONFIG_XMON
226EXPORT_SYMBOL(xmon);
227EXPORT_SYMBOL(xmon_printf);
228#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700229
230#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
231extern void (*debugger)(struct pt_regs *regs);
232extern int (*debugger_bpt)(struct pt_regs *regs);
233extern int (*debugger_sstep)(struct pt_regs *regs);
234extern int (*debugger_iabr_match)(struct pt_regs *regs);
235extern int (*debugger_dabr_match)(struct pt_regs *regs);
236extern void (*debugger_fault_handler)(struct pt_regs *regs);
237
238EXPORT_SYMBOL(debugger);
239EXPORT_SYMBOL(debugger_bpt);
240EXPORT_SYMBOL(debugger_sstep);
241EXPORT_SYMBOL(debugger_iabr_match);
242EXPORT_SYMBOL(debugger_dabr_match);
243EXPORT_SYMBOL(debugger_fault_handler);
244#endif
245
246#ifdef CONFIG_8xx
247EXPORT_SYMBOL(cpm_install_handler);
248EXPORT_SYMBOL(cpm_free_handler);
249#endif /* CONFIG_8xx */
250#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
251 defined(CONFIG_83xx)
252EXPORT_SYMBOL(__res);
253#endif
254
255EXPORT_SYMBOL(next_mmu_context);
256EXPORT_SYMBOL(set_context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257EXPORT_SYMBOL(disarm_decr);
258#ifdef CONFIG_PPC_STD_MMU
259extern long mol_trampoline;
260EXPORT_SYMBOL(mol_trampoline); /* For MOL */
261EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
262#ifdef CONFIG_SMP
263extern int mmu_hash_lock;
264EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
265#endif /* CONFIG_SMP */
266extern long *intercept_table;
267EXPORT_SYMBOL(intercept_table);
268#endif /* CONFIG_PPC_STD_MMU */
Rojhalat Ibrahim862a7282007-02-09 15:10:38 +0100269#ifdef CONFIG_PPC_DCR_NATIVE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270EXPORT_SYMBOL(__mtdcr);
271EXPORT_SYMBOL(__mfdcr);
272#endif