blob: 602c268fc8a2875ae55f5c51ddbbf59f510d4838 [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>
Segher Boessenkool9717e872008-05-07 08:58:49 +100027#include <asm/cacheflush.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#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
Jochen Friedrichb5677d82008-01-25 15:31:42 +010048#include <asm/cpm1.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070049#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);
Josh Boyer96f1bb82008-04-22 10:50:27 +100092EXPORT_SYMBOL(strncmp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070093
94EXPORT_SYMBOL(csum_partial);
95EXPORT_SYMBOL(csum_partial_copy_generic);
96EXPORT_SYMBOL(ip_fast_csum);
97EXPORT_SYMBOL(csum_tcpudp_magic);
98
99EXPORT_SYMBOL(__copy_tofrom_user);
100EXPORT_SYMBOL(__clear_user);
101EXPORT_SYMBOL(__strncpy_from_user);
102EXPORT_SYMBOL(__strnlen_user);
103
104/*
105EXPORT_SYMBOL(inb);
106EXPORT_SYMBOL(inw);
107EXPORT_SYMBOL(inl);
108EXPORT_SYMBOL(outb);
109EXPORT_SYMBOL(outw);
110EXPORT_SYMBOL(outl);
111EXPORT_SYMBOL(outsl);*/
112
113EXPORT_SYMBOL(_insb);
114EXPORT_SYMBOL(_outsb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115EXPORT_SYMBOL(_insw_ns);
116EXPORT_SYMBOL(_outsw_ns);
117EXPORT_SYMBOL(_insl_ns);
118EXPORT_SYMBOL(_outsl_ns);
119EXPORT_SYMBOL(iopa);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120EXPORT_SYMBOL(ioremap);
121#ifdef CONFIG_44x
122EXPORT_SYMBOL(ioremap64);
123#endif
124EXPORT_SYMBOL(__ioremap);
125EXPORT_SYMBOL(iounmap);
126EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
127
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128#ifdef CONFIG_PCI
129EXPORT_SYMBOL(isa_io_base);
130EXPORT_SYMBOL(isa_mem_base);
131EXPORT_SYMBOL(pci_dram_offset);
132EXPORT_SYMBOL(pci_alloc_consistent);
133EXPORT_SYMBOL(pci_free_consistent);
134EXPORT_SYMBOL(pci_bus_io_base);
135EXPORT_SYMBOL(pci_bus_io_base_phys);
136EXPORT_SYMBOL(pci_bus_mem_base_phys);
137EXPORT_SYMBOL(pci_bus_to_hose);
138EXPORT_SYMBOL(pci_resource_to_bus);
139EXPORT_SYMBOL(pci_phys_to_bus);
140EXPORT_SYMBOL(pci_bus_to_phys);
141#endif /* CONFIG_PCI */
142
143#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100144extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145EXPORT_SYMBOL(flush_dcache_all);
146#endif
147
148EXPORT_SYMBOL(start_thread);
149EXPORT_SYMBOL(kernel_thread);
150
151EXPORT_SYMBOL(flush_instruction_cache);
152EXPORT_SYMBOL(giveup_fpu);
Otavio Salvador0e2d94f2005-11-29 08:02:24 +1100153EXPORT_SYMBOL(__flush_icache_range);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154EXPORT_SYMBOL(flush_dcache_range);
155EXPORT_SYMBOL(flush_icache_user_range);
156EXPORT_SYMBOL(flush_dcache_page);
157EXPORT_SYMBOL(flush_tlb_kernel_range);
158EXPORT_SYMBOL(flush_tlb_page);
159EXPORT_SYMBOL(_tlbie);
160#ifdef CONFIG_ALTIVEC
Al Viro3ba9d912006-01-18 22:34:20 -0500161#ifndef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162EXPORT_SYMBOL(last_task_used_altivec);
Al Viro3ba9d912006-01-18 22:34:20 -0500163#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164EXPORT_SYMBOL(giveup_altivec);
165#endif /* CONFIG_ALTIVEC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166#ifdef CONFIG_SMP
167EXPORT_SYMBOL(smp_call_function);
168EXPORT_SYMBOL(smp_hw_index);
169#endif
170
171EXPORT_SYMBOL(ppc_md);
172
173#ifdef CONFIG_ADB
174EXPORT_SYMBOL(adb_request);
175EXPORT_SYMBOL(adb_register);
176EXPORT_SYMBOL(adb_unregister);
177EXPORT_SYMBOL(adb_poll);
178EXPORT_SYMBOL(adb_try_handler_change);
179#endif /* CONFIG_ADB */
180#ifdef CONFIG_ADB_CUDA
181EXPORT_SYMBOL(cuda_request);
182EXPORT_SYMBOL(cuda_poll);
183#endif /* CONFIG_ADB_CUDA */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184#if defined(CONFIG_BOOTX_TEXT)
185EXPORT_SYMBOL(btext_update_display);
186#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187EXPORT_SYMBOL(to_tm);
188
189EXPORT_SYMBOL(pm_power_off);
190
191EXPORT_SYMBOL(__ashrdi3);
192EXPORT_SYMBOL(__ashldi3);
193EXPORT_SYMBOL(__lshrdi3);
194EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700195EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196EXPORT_SYMBOL(memset);
197EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198EXPORT_SYMBOL(memcmp);
199EXPORT_SYMBOL(memchr);
200
201#if defined(CONFIG_FB_VGA16_MODULE)
202EXPORT_SYMBOL(screen_info);
203#endif
204
205EXPORT_SYMBOL(__delay);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206EXPORT_SYMBOL(timer_interrupt);
207EXPORT_SYMBOL(irq_desc);
208EXPORT_SYMBOL(tb_ticks_per_jiffy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209EXPORT_SYMBOL(console_drivers);
210#ifdef CONFIG_XMON
211EXPORT_SYMBOL(xmon);
212EXPORT_SYMBOL(xmon_printf);
213#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214
215#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
216extern void (*debugger)(struct pt_regs *regs);
217extern int (*debugger_bpt)(struct pt_regs *regs);
218extern int (*debugger_sstep)(struct pt_regs *regs);
219extern int (*debugger_iabr_match)(struct pt_regs *regs);
220extern int (*debugger_dabr_match)(struct pt_regs *regs);
221extern void (*debugger_fault_handler)(struct pt_regs *regs);
222
223EXPORT_SYMBOL(debugger);
224EXPORT_SYMBOL(debugger_bpt);
225EXPORT_SYMBOL(debugger_sstep);
226EXPORT_SYMBOL(debugger_iabr_match);
227EXPORT_SYMBOL(debugger_dabr_match);
228EXPORT_SYMBOL(debugger_fault_handler);
229#endif
230
231#ifdef CONFIG_8xx
232EXPORT_SYMBOL(cpm_install_handler);
233EXPORT_SYMBOL(cpm_free_handler);
234#endif /* CONFIG_8xx */
Kumar Galac42f3ad2008-01-27 14:06:14 -0600235#if defined(CONFIG_8xx) || defined(CONFIG_40x)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700236EXPORT_SYMBOL(__res);
237#endif
238
239EXPORT_SYMBOL(next_mmu_context);
240EXPORT_SYMBOL(set_context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700241EXPORT_SYMBOL(disarm_decr);
242#ifdef CONFIG_PPC_STD_MMU
243extern long mol_trampoline;
244EXPORT_SYMBOL(mol_trampoline); /* For MOL */
245EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
246#ifdef CONFIG_SMP
247extern int mmu_hash_lock;
248EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
249#endif /* CONFIG_SMP */
250extern long *intercept_table;
251EXPORT_SYMBOL(intercept_table);
252#endif /* CONFIG_PPC_STD_MMU */
Rojhalat Ibrahim862a7282007-02-09 15:10:38 +0100253#ifdef CONFIG_PPC_DCR_NATIVE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254EXPORT_SYMBOL(__mtdcr);
255EXPORT_SYMBOL(__mfdcr);
256#endif