blob: 22494ec123ea4261511e525286e9593f8a5b636c [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070063EXPORT_SYMBOL(clear_pages);
64EXPORT_SYMBOL(clear_user_page);
Linus Torvalds1da177e2005-04-16 15:20:36 -070065EXPORT_SYMBOL(transfer_to_handler);
66EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100067EXPORT_SYMBOL(machine_check_exception);
68EXPORT_SYMBOL(alignment_exception);
69EXPORT_SYMBOL(program_check_exception);
70EXPORT_SYMBOL(single_step_exception);
Linus Torvalds1da177e2005-04-16 15:20:36 -070071EXPORT_SYMBOL(sys_sigreturn);
72EXPORT_SYMBOL(ppc_n_lost_interrupts);
Linus Torvalds1da177e2005-04-16 15:20:36 -070073
74EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
75EXPORT_SYMBOL(DMA_MODE_READ);
76EXPORT_SYMBOL(DMA_MODE_WRITE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070077
78#if !defined(__INLINE_BITOPS)
79EXPORT_SYMBOL(set_bit);
80EXPORT_SYMBOL(clear_bit);
81EXPORT_SYMBOL(change_bit);
82EXPORT_SYMBOL(test_and_set_bit);
83EXPORT_SYMBOL(test_and_clear_bit);
84EXPORT_SYMBOL(test_and_change_bit);
85#endif /* __INLINE_BITOPS */
86
87EXPORT_SYMBOL(strcpy);
88EXPORT_SYMBOL(strncpy);
89EXPORT_SYMBOL(strcat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070090EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070091EXPORT_SYMBOL(strcmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070092
93EXPORT_SYMBOL(csum_partial);
94EXPORT_SYMBOL(csum_partial_copy_generic);
95EXPORT_SYMBOL(ip_fast_csum);
96EXPORT_SYMBOL(csum_tcpudp_magic);
97
98EXPORT_SYMBOL(__copy_tofrom_user);
99EXPORT_SYMBOL(__clear_user);
100EXPORT_SYMBOL(__strncpy_from_user);
101EXPORT_SYMBOL(__strnlen_user);
102
103/*
104EXPORT_SYMBOL(inb);
105EXPORT_SYMBOL(inw);
106EXPORT_SYMBOL(inl);
107EXPORT_SYMBOL(outb);
108EXPORT_SYMBOL(outw);
109EXPORT_SYMBOL(outl);
110EXPORT_SYMBOL(outsl);*/
111
112EXPORT_SYMBOL(_insb);
113EXPORT_SYMBOL(_outsb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114EXPORT_SYMBOL(_insw_ns);
115EXPORT_SYMBOL(_outsw_ns);
116EXPORT_SYMBOL(_insl_ns);
117EXPORT_SYMBOL(_outsl_ns);
118EXPORT_SYMBOL(iopa);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119EXPORT_SYMBOL(ioremap);
120#ifdef CONFIG_44x
121EXPORT_SYMBOL(ioremap64);
122#endif
123EXPORT_SYMBOL(__ioremap);
124EXPORT_SYMBOL(iounmap);
125EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
126
127#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
128EXPORT_SYMBOL(ppc_ide_md);
129#endif
130
131#ifdef CONFIG_PCI
132EXPORT_SYMBOL(isa_io_base);
133EXPORT_SYMBOL(isa_mem_base);
134EXPORT_SYMBOL(pci_dram_offset);
135EXPORT_SYMBOL(pci_alloc_consistent);
136EXPORT_SYMBOL(pci_free_consistent);
137EXPORT_SYMBOL(pci_bus_io_base);
138EXPORT_SYMBOL(pci_bus_io_base_phys);
139EXPORT_SYMBOL(pci_bus_mem_base_phys);
140EXPORT_SYMBOL(pci_bus_to_hose);
141EXPORT_SYMBOL(pci_resource_to_bus);
142EXPORT_SYMBOL(pci_phys_to_bus);
143EXPORT_SYMBOL(pci_bus_to_phys);
144#endif /* CONFIG_PCI */
145
146#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100147extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148EXPORT_SYMBOL(flush_dcache_all);
149#endif
150
151EXPORT_SYMBOL(start_thread);
152EXPORT_SYMBOL(kernel_thread);
153
154EXPORT_SYMBOL(flush_instruction_cache);
155EXPORT_SYMBOL(giveup_fpu);
Otavio Salvador0e2d94f2005-11-29 08:02:24 +1100156EXPORT_SYMBOL(__flush_icache_range);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157EXPORT_SYMBOL(flush_dcache_range);
158EXPORT_SYMBOL(flush_icache_user_range);
159EXPORT_SYMBOL(flush_dcache_page);
160EXPORT_SYMBOL(flush_tlb_kernel_range);
161EXPORT_SYMBOL(flush_tlb_page);
162EXPORT_SYMBOL(_tlbie);
163#ifdef CONFIG_ALTIVEC
Al Viro3ba9d912006-01-18 22:34:20 -0500164#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165EXPORT_SYMBOL(last_task_used_altivec);
Al Viro3ba9d912006-01-18 22:34:20 -0500166#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167EXPORT_SYMBOL(giveup_altivec);
168#endif /* CONFIG_ALTIVEC */
169#ifdef CONFIG_SPE
Al Viro3ba9d912006-01-18 22:34:20 -0500170#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171EXPORT_SYMBOL(last_task_used_spe);
Al Viro3ba9d912006-01-18 22:34:20 -0500172#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173EXPORT_SYMBOL(giveup_spe);
174#endif /* CONFIG_SPE */
175#ifdef CONFIG_SMP
176EXPORT_SYMBOL(smp_call_function);
177EXPORT_SYMBOL(smp_hw_index);
178#endif
179
180EXPORT_SYMBOL(ppc_md);
181
182#ifdef CONFIG_ADB
183EXPORT_SYMBOL(adb_request);
184EXPORT_SYMBOL(adb_register);
185EXPORT_SYMBOL(adb_unregister);
186EXPORT_SYMBOL(adb_poll);
187EXPORT_SYMBOL(adb_try_handler_change);
188#endif /* CONFIG_ADB */
189#ifdef CONFIG_ADB_CUDA
190EXPORT_SYMBOL(cuda_request);
191EXPORT_SYMBOL(cuda_poll);
192#endif /* CONFIG_ADB_CUDA */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193#if defined(CONFIG_BOOTX_TEXT)
194EXPORT_SYMBOL(btext_update_display);
195#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196#ifdef CONFIG_VT
197EXPORT_SYMBOL(kd_mksound);
198#endif
199EXPORT_SYMBOL(to_tm);
200
201EXPORT_SYMBOL(pm_power_off);
202
203EXPORT_SYMBOL(__ashrdi3);
204EXPORT_SYMBOL(__ashldi3);
205EXPORT_SYMBOL(__lshrdi3);
206EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700207EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700208EXPORT_SYMBOL(memset);
209EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700210EXPORT_SYMBOL(memcmp);
211EXPORT_SYMBOL(memchr);
212
213#if defined(CONFIG_FB_VGA16_MODULE)
214EXPORT_SYMBOL(screen_info);
215#endif
216
217EXPORT_SYMBOL(__delay);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218EXPORT_SYMBOL(timer_interrupt);
219EXPORT_SYMBOL(irq_desc);
220EXPORT_SYMBOL(tb_ticks_per_jiffy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700221EXPORT_SYMBOL(console_drivers);
222#ifdef CONFIG_XMON
223EXPORT_SYMBOL(xmon);
224EXPORT_SYMBOL(xmon_printf);
225#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700226
227#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
228extern void (*debugger)(struct pt_regs *regs);
229extern int (*debugger_bpt)(struct pt_regs *regs);
230extern int (*debugger_sstep)(struct pt_regs *regs);
231extern int (*debugger_iabr_match)(struct pt_regs *regs);
232extern int (*debugger_dabr_match)(struct pt_regs *regs);
233extern void (*debugger_fault_handler)(struct pt_regs *regs);
234
235EXPORT_SYMBOL(debugger);
236EXPORT_SYMBOL(debugger_bpt);
237EXPORT_SYMBOL(debugger_sstep);
238EXPORT_SYMBOL(debugger_iabr_match);
239EXPORT_SYMBOL(debugger_dabr_match);
240EXPORT_SYMBOL(debugger_fault_handler);
241#endif
242
243#ifdef CONFIG_8xx
244EXPORT_SYMBOL(cpm_install_handler);
245EXPORT_SYMBOL(cpm_free_handler);
246#endif /* CONFIG_8xx */
247#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
248 defined(CONFIG_83xx)
249EXPORT_SYMBOL(__res);
250#endif
251
252EXPORT_SYMBOL(next_mmu_context);
253EXPORT_SYMBOL(set_context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254EXPORT_SYMBOL(disarm_decr);
255#ifdef CONFIG_PPC_STD_MMU
256extern long mol_trampoline;
257EXPORT_SYMBOL(mol_trampoline); /* For MOL */
258EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
259#ifdef CONFIG_SMP
260extern int mmu_hash_lock;
261EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
262#endif /* CONFIG_SMP */
263extern long *intercept_table;
264EXPORT_SYMBOL(intercept_table);
265#endif /* CONFIG_PPC_STD_MMU */
Rojhalat Ibrahim862a7282007-02-09 15:10:38 +0100266#ifdef CONFIG_PPC_DCR_NATIVE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267EXPORT_SYMBOL(__mtdcr);
268EXPORT_SYMBOL(__mfdcr);
269#endif