blob: 2ba659f401bea31dcd9095eff9f97a4519592486 [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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <linux/pm.h>
16#include <linux/bitops.h>
17
18#include <asm/page.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#include <asm/processor.h>
20#include <asm/uaccess.h>
21#include <asm/io.h>
22#include <asm/ide.h>
23#include <asm/atomic.h>
24#include <asm/checksum.h>
25#include <asm/pgtable.h>
26#include <asm/tlbflush.h>
27#include <linux/adb.h>
28#include <linux/cuda.h>
29#include <linux/pmu.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#include <asm/system.h>
31#include <asm/pci-bridge.h>
32#include <asm/irq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#include <asm/dma.h>
34#include <asm/machdep.h>
35#include <asm/hw_irq.h>
36#include <asm/nvram.h>
37#include <asm/mmu_context.h>
38#include <asm/backlight.h>
39#include <asm/time.h>
40#include <asm/cputable.h>
41#include <asm/btext.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#include <asm/xmon.h>
David Gibsonc5ff7002005-11-09 11:21:07 +110043#include <asm/signal.h>
David Gibsona2c70212007-02-06 11:48:28 +110044#include <asm/dcr.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
46#ifdef CONFIG_8xx
Jochen Friedrichb5677d82008-01-25 15:31:42 +010047#include <asm/cpm1.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070048#endif
49
Linus Torvalds1da177e2005-04-16 15:20:36 -070050extern void transfer_to_handler(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070051extern void do_IRQ(struct pt_regs *regs);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100052extern void machine_check_exception(struct pt_regs *regs);
53extern void alignment_exception(struct pt_regs *regs);
54extern void program_check_exception(struct pt_regs *regs);
55extern void single_step_exception(struct pt_regs *regs);
Linus Torvalds1da177e2005-04-16 15:20:36 -070056extern int sys_sigreturn(struct pt_regs *regs);
57
58long long __ashrdi3(long long, int);
59long long __ashldi3(long long, int);
60long long __lshrdi3(long long, int);
61
Linus Torvalds1da177e2005-04-16 15:20:36 -070062EXPORT_SYMBOL(clear_pages);
63EXPORT_SYMBOL(clear_user_page);
Linus Torvalds1da177e2005-04-16 15:20:36 -070064EXPORT_SYMBOL(transfer_to_handler);
65EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100066EXPORT_SYMBOL(machine_check_exception);
67EXPORT_SYMBOL(alignment_exception);
68EXPORT_SYMBOL(program_check_exception);
69EXPORT_SYMBOL(single_step_exception);
Linus Torvalds1da177e2005-04-16 15:20:36 -070070EXPORT_SYMBOL(sys_sigreturn);
71EXPORT_SYMBOL(ppc_n_lost_interrupts);
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
73EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
74EXPORT_SYMBOL(DMA_MODE_READ);
75EXPORT_SYMBOL(DMA_MODE_WRITE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
77#if !defined(__INLINE_BITOPS)
78EXPORT_SYMBOL(set_bit);
79EXPORT_SYMBOL(clear_bit);
80EXPORT_SYMBOL(change_bit);
81EXPORT_SYMBOL(test_and_set_bit);
82EXPORT_SYMBOL(test_and_clear_bit);
83EXPORT_SYMBOL(test_and_change_bit);
84#endif /* __INLINE_BITOPS */
85
86EXPORT_SYMBOL(strcpy);
87EXPORT_SYMBOL(strncpy);
88EXPORT_SYMBOL(strcat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070089EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070090EXPORT_SYMBOL(strcmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070091
92EXPORT_SYMBOL(csum_partial);
93EXPORT_SYMBOL(csum_partial_copy_generic);
94EXPORT_SYMBOL(ip_fast_csum);
95EXPORT_SYMBOL(csum_tcpudp_magic);
96
97EXPORT_SYMBOL(__copy_tofrom_user);
98EXPORT_SYMBOL(__clear_user);
99EXPORT_SYMBOL(__strncpy_from_user);
100EXPORT_SYMBOL(__strnlen_user);
101
102/*
103EXPORT_SYMBOL(inb);
104EXPORT_SYMBOL(inw);
105EXPORT_SYMBOL(inl);
106EXPORT_SYMBOL(outb);
107EXPORT_SYMBOL(outw);
108EXPORT_SYMBOL(outl);
109EXPORT_SYMBOL(outsl);*/
110
111EXPORT_SYMBOL(_insb);
112EXPORT_SYMBOL(_outsb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113EXPORT_SYMBOL(_insw_ns);
114EXPORT_SYMBOL(_outsw_ns);
115EXPORT_SYMBOL(_insl_ns);
116EXPORT_SYMBOL(_outsl_ns);
117EXPORT_SYMBOL(iopa);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118EXPORT_SYMBOL(ioremap);
119#ifdef CONFIG_44x
120EXPORT_SYMBOL(ioremap64);
121#endif
122EXPORT_SYMBOL(__ioremap);
123EXPORT_SYMBOL(iounmap);
124EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126#ifdef CONFIG_PCI
127EXPORT_SYMBOL(isa_io_base);
128EXPORT_SYMBOL(isa_mem_base);
129EXPORT_SYMBOL(pci_dram_offset);
130EXPORT_SYMBOL(pci_alloc_consistent);
131EXPORT_SYMBOL(pci_free_consistent);
132EXPORT_SYMBOL(pci_bus_io_base);
133EXPORT_SYMBOL(pci_bus_io_base_phys);
134EXPORT_SYMBOL(pci_bus_mem_base_phys);
135EXPORT_SYMBOL(pci_bus_to_hose);
136EXPORT_SYMBOL(pci_resource_to_bus);
137EXPORT_SYMBOL(pci_phys_to_bus);
138EXPORT_SYMBOL(pci_bus_to_phys);
139#endif /* CONFIG_PCI */
140
141#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100142extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143EXPORT_SYMBOL(flush_dcache_all);
144#endif
145
146EXPORT_SYMBOL(start_thread);
147EXPORT_SYMBOL(kernel_thread);
148
149EXPORT_SYMBOL(flush_instruction_cache);
150EXPORT_SYMBOL(giveup_fpu);
Otavio Salvador0e2d94f2005-11-29 08:02:24 +1100151EXPORT_SYMBOL(__flush_icache_range);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152EXPORT_SYMBOL(flush_dcache_range);
153EXPORT_SYMBOL(flush_icache_user_range);
154EXPORT_SYMBOL(flush_dcache_page);
155EXPORT_SYMBOL(flush_tlb_kernel_range);
156EXPORT_SYMBOL(flush_tlb_page);
157EXPORT_SYMBOL(_tlbie);
158#ifdef CONFIG_ALTIVEC
Al Viro3ba9d912006-01-18 22:34:20 -0500159#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160EXPORT_SYMBOL(last_task_used_altivec);
Al Viro3ba9d912006-01-18 22:34:20 -0500161#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162EXPORT_SYMBOL(giveup_altivec);
163#endif /* CONFIG_ALTIVEC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164#ifdef CONFIG_SMP
165EXPORT_SYMBOL(smp_call_function);
166EXPORT_SYMBOL(smp_hw_index);
167#endif
168
169EXPORT_SYMBOL(ppc_md);
170
171#ifdef CONFIG_ADB
172EXPORT_SYMBOL(adb_request);
173EXPORT_SYMBOL(adb_register);
174EXPORT_SYMBOL(adb_unregister);
175EXPORT_SYMBOL(adb_poll);
176EXPORT_SYMBOL(adb_try_handler_change);
177#endif /* CONFIG_ADB */
178#ifdef CONFIG_ADB_CUDA
179EXPORT_SYMBOL(cuda_request);
180EXPORT_SYMBOL(cuda_poll);
181#endif /* CONFIG_ADB_CUDA */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182#if defined(CONFIG_BOOTX_TEXT)
183EXPORT_SYMBOL(btext_update_display);
184#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185#ifdef CONFIG_VT
186EXPORT_SYMBOL(kd_mksound);
187#endif
188EXPORT_SYMBOL(to_tm);
189
190EXPORT_SYMBOL(pm_power_off);
191
192EXPORT_SYMBOL(__ashrdi3);
193EXPORT_SYMBOL(__ashldi3);
194EXPORT_SYMBOL(__lshrdi3);
195EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700196EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700197EXPORT_SYMBOL(memset);
198EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199EXPORT_SYMBOL(memcmp);
200EXPORT_SYMBOL(memchr);
201
202#if defined(CONFIG_FB_VGA16_MODULE)
203EXPORT_SYMBOL(screen_info);
204#endif
205
206EXPORT_SYMBOL(__delay);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207EXPORT_SYMBOL(timer_interrupt);
208EXPORT_SYMBOL(irq_desc);
209EXPORT_SYMBOL(tb_ticks_per_jiffy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700210EXPORT_SYMBOL(console_drivers);
211#ifdef CONFIG_XMON
212EXPORT_SYMBOL(xmon);
213EXPORT_SYMBOL(xmon_printf);
214#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215
216#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
217extern void (*debugger)(struct pt_regs *regs);
218extern int (*debugger_bpt)(struct pt_regs *regs);
219extern int (*debugger_sstep)(struct pt_regs *regs);
220extern int (*debugger_iabr_match)(struct pt_regs *regs);
221extern int (*debugger_dabr_match)(struct pt_regs *regs);
222extern void (*debugger_fault_handler)(struct pt_regs *regs);
223
224EXPORT_SYMBOL(debugger);
225EXPORT_SYMBOL(debugger_bpt);
226EXPORT_SYMBOL(debugger_sstep);
227EXPORT_SYMBOL(debugger_iabr_match);
228EXPORT_SYMBOL(debugger_dabr_match);
229EXPORT_SYMBOL(debugger_fault_handler);
230#endif
231
232#ifdef CONFIG_8xx
233EXPORT_SYMBOL(cpm_install_handler);
234EXPORT_SYMBOL(cpm_free_handler);
235#endif /* CONFIG_8xx */
Kumar Galac42f3ad2008-01-27 14:06:14 -0600236#if defined(CONFIG_8xx) || defined(CONFIG_40x)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237EXPORT_SYMBOL(__res);
238#endif
239
240EXPORT_SYMBOL(next_mmu_context);
241EXPORT_SYMBOL(set_context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700242EXPORT_SYMBOL(disarm_decr);
243#ifdef CONFIG_PPC_STD_MMU
244extern long mol_trampoline;
245EXPORT_SYMBOL(mol_trampoline); /* For MOL */
246EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
247#ifdef CONFIG_SMP
248extern int mmu_hash_lock;
249EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
250#endif /* CONFIG_SMP */
251extern long *intercept_table;
252EXPORT_SYMBOL(intercept_table);
253#endif /* CONFIG_PPC_STD_MMU */
Rojhalat Ibrahim862a7282007-02-09 15:10:38 +0100254#ifdef CONFIG_PPC_DCR_NATIVE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255EXPORT_SYMBOL(__mtdcr);
256EXPORT_SYMBOL(__mfdcr);
257#endif