blob: c8b65ca8a350e8c5ecc8c5acc90c4f0b845ecbc1 [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>
43#include <asm/div64.h>
44#include <asm/xmon.h>
David Gibsonc5ff7002005-11-09 11:21:07 +110045#include <asm/signal.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);
67EXPORT_SYMBOL(do_signal);
Linus Torvalds1da177e2005-04-16 15:20:36 -070068EXPORT_SYMBOL(transfer_to_handler);
69EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100070EXPORT_SYMBOL(machine_check_exception);
71EXPORT_SYMBOL(alignment_exception);
72EXPORT_SYMBOL(program_check_exception);
73EXPORT_SYMBOL(single_step_exception);
Linus Torvalds1da177e2005-04-16 15:20:36 -070074EXPORT_SYMBOL(sys_sigreturn);
75EXPORT_SYMBOL(ppc_n_lost_interrupts);
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
77EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
78EXPORT_SYMBOL(DMA_MODE_READ);
79EXPORT_SYMBOL(DMA_MODE_WRITE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070080
81#if !defined(__INLINE_BITOPS)
82EXPORT_SYMBOL(set_bit);
83EXPORT_SYMBOL(clear_bit);
84EXPORT_SYMBOL(change_bit);
85EXPORT_SYMBOL(test_and_set_bit);
86EXPORT_SYMBOL(test_and_clear_bit);
87EXPORT_SYMBOL(test_and_change_bit);
88#endif /* __INLINE_BITOPS */
89
90EXPORT_SYMBOL(strcpy);
91EXPORT_SYMBOL(strncpy);
92EXPORT_SYMBOL(strcat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070093EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070094EXPORT_SYMBOL(strcmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070095EXPORT_SYMBOL(strcasecmp);
Kumar Gala34ddf732006-04-02 16:01:58 -050096EXPORT_SYMBOL(strncasecmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070097EXPORT_SYMBOL(__div64_32);
98
99EXPORT_SYMBOL(csum_partial);
100EXPORT_SYMBOL(csum_partial_copy_generic);
101EXPORT_SYMBOL(ip_fast_csum);
102EXPORT_SYMBOL(csum_tcpudp_magic);
103
104EXPORT_SYMBOL(__copy_tofrom_user);
105EXPORT_SYMBOL(__clear_user);
106EXPORT_SYMBOL(__strncpy_from_user);
107EXPORT_SYMBOL(__strnlen_user);
108
109/*
110EXPORT_SYMBOL(inb);
111EXPORT_SYMBOL(inw);
112EXPORT_SYMBOL(inl);
113EXPORT_SYMBOL(outb);
114EXPORT_SYMBOL(outw);
115EXPORT_SYMBOL(outl);
116EXPORT_SYMBOL(outsl);*/
117
118EXPORT_SYMBOL(_insb);
119EXPORT_SYMBOL(_outsb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120EXPORT_SYMBOL(_insw_ns);
121EXPORT_SYMBOL(_outsw_ns);
122EXPORT_SYMBOL(_insl_ns);
123EXPORT_SYMBOL(_outsl_ns);
124EXPORT_SYMBOL(iopa);
125EXPORT_SYMBOL(mm_ptov);
126EXPORT_SYMBOL(ioremap);
127#ifdef CONFIG_44x
128EXPORT_SYMBOL(ioremap64);
129#endif
130EXPORT_SYMBOL(__ioremap);
131EXPORT_SYMBOL(iounmap);
132EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
133
134#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
135EXPORT_SYMBOL(ppc_ide_md);
136#endif
137
138#ifdef CONFIG_PCI
139EXPORT_SYMBOL(isa_io_base);
140EXPORT_SYMBOL(isa_mem_base);
141EXPORT_SYMBOL(pci_dram_offset);
142EXPORT_SYMBOL(pci_alloc_consistent);
143EXPORT_SYMBOL(pci_free_consistent);
144EXPORT_SYMBOL(pci_bus_io_base);
145EXPORT_SYMBOL(pci_bus_io_base_phys);
146EXPORT_SYMBOL(pci_bus_mem_base_phys);
147EXPORT_SYMBOL(pci_bus_to_hose);
148EXPORT_SYMBOL(pci_resource_to_bus);
149EXPORT_SYMBOL(pci_phys_to_bus);
150EXPORT_SYMBOL(pci_bus_to_phys);
151#endif /* CONFIG_PCI */
152
153#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100154extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700155EXPORT_SYMBOL(flush_dcache_all);
156#endif
157
158EXPORT_SYMBOL(start_thread);
159EXPORT_SYMBOL(kernel_thread);
160
161EXPORT_SYMBOL(flush_instruction_cache);
162EXPORT_SYMBOL(giveup_fpu);
Otavio Salvador0e2d94f2005-11-29 08:02:24 +1100163EXPORT_SYMBOL(__flush_icache_range);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164EXPORT_SYMBOL(flush_dcache_range);
165EXPORT_SYMBOL(flush_icache_user_range);
166EXPORT_SYMBOL(flush_dcache_page);
167EXPORT_SYMBOL(flush_tlb_kernel_range);
168EXPORT_SYMBOL(flush_tlb_page);
169EXPORT_SYMBOL(_tlbie);
170#ifdef CONFIG_ALTIVEC
Al Viro3ba9d912006-01-18 22:34:20 -0500171#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700172EXPORT_SYMBOL(last_task_used_altivec);
Al Viro3ba9d912006-01-18 22:34:20 -0500173#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700174EXPORT_SYMBOL(giveup_altivec);
175#endif /* CONFIG_ALTIVEC */
176#ifdef CONFIG_SPE
Al Viro3ba9d912006-01-18 22:34:20 -0500177#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700178EXPORT_SYMBOL(last_task_used_spe);
Al Viro3ba9d912006-01-18 22:34:20 -0500179#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700180EXPORT_SYMBOL(giveup_spe);
181#endif /* CONFIG_SPE */
182#ifdef CONFIG_SMP
183EXPORT_SYMBOL(smp_call_function);
184EXPORT_SYMBOL(smp_hw_index);
185#endif
186
187EXPORT_SYMBOL(ppc_md);
188
189#ifdef CONFIG_ADB
190EXPORT_SYMBOL(adb_request);
191EXPORT_SYMBOL(adb_register);
192EXPORT_SYMBOL(adb_unregister);
193EXPORT_SYMBOL(adb_poll);
194EXPORT_SYMBOL(adb_try_handler_change);
195#endif /* CONFIG_ADB */
196#ifdef CONFIG_ADB_CUDA
197EXPORT_SYMBOL(cuda_request);
198EXPORT_SYMBOL(cuda_poll);
199#endif /* CONFIG_ADB_CUDA */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700200#if defined(CONFIG_BOOTX_TEXT)
201EXPORT_SYMBOL(btext_update_display);
202#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203#ifdef CONFIG_VT
204EXPORT_SYMBOL(kd_mksound);
205#endif
206EXPORT_SYMBOL(to_tm);
207
208EXPORT_SYMBOL(pm_power_off);
209
210EXPORT_SYMBOL(__ashrdi3);
211EXPORT_SYMBOL(__ashldi3);
212EXPORT_SYMBOL(__lshrdi3);
213EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700214EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215EXPORT_SYMBOL(memset);
216EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217EXPORT_SYMBOL(memcmp);
218EXPORT_SYMBOL(memchr);
219
220#if defined(CONFIG_FB_VGA16_MODULE)
221EXPORT_SYMBOL(screen_info);
222#endif
223
224EXPORT_SYMBOL(__delay);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700225EXPORT_SYMBOL(timer_interrupt);
226EXPORT_SYMBOL(irq_desc);
227EXPORT_SYMBOL(tb_ticks_per_jiffy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700228EXPORT_SYMBOL(console_drivers);
229#ifdef CONFIG_XMON
230EXPORT_SYMBOL(xmon);
231EXPORT_SYMBOL(xmon_printf);
232#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233
234#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
235extern void (*debugger)(struct pt_regs *regs);
236extern int (*debugger_bpt)(struct pt_regs *regs);
237extern int (*debugger_sstep)(struct pt_regs *regs);
238extern int (*debugger_iabr_match)(struct pt_regs *regs);
239extern int (*debugger_dabr_match)(struct pt_regs *regs);
240extern void (*debugger_fault_handler)(struct pt_regs *regs);
241
242EXPORT_SYMBOL(debugger);
243EXPORT_SYMBOL(debugger_bpt);
244EXPORT_SYMBOL(debugger_sstep);
245EXPORT_SYMBOL(debugger_iabr_match);
246EXPORT_SYMBOL(debugger_dabr_match);
247EXPORT_SYMBOL(debugger_fault_handler);
248#endif
249
250#ifdef CONFIG_8xx
251EXPORT_SYMBOL(cpm_install_handler);
252EXPORT_SYMBOL(cpm_free_handler);
253#endif /* CONFIG_8xx */
254#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
255 defined(CONFIG_83xx)
256EXPORT_SYMBOL(__res);
257#endif
258
259EXPORT_SYMBOL(next_mmu_context);
260EXPORT_SYMBOL(set_context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261EXPORT_SYMBOL(disarm_decr);
262#ifdef CONFIG_PPC_STD_MMU
263extern long mol_trampoline;
264EXPORT_SYMBOL(mol_trampoline); /* For MOL */
265EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
266#ifdef CONFIG_SMP
267extern int mmu_hash_lock;
268EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
269#endif /* CONFIG_SMP */
270extern long *intercept_table;
271EXPORT_SYMBOL(intercept_table);
272#endif /* CONFIG_PPC_STD_MMU */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
274EXPORT_SYMBOL(__mtdcr);
275EXPORT_SYMBOL(__mfdcr);
276#endif