1#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>
8#include <linux/screen_info.h>
9#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>
20#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>
31#include <asm/system.h>
32#include <asm/pci-bridge.h>
33#include <asm/irq.h>
34#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/xmon.h>
44#include <asm/signal.h>
45#include <asm/dcr.h>
46
47#ifdef  CONFIG_8xx
48#include <asm/commproc.h>
49#endif
50
51extern void transfer_to_handler(void);
52extern void do_IRQ(struct pt_regs *regs);
53extern 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);
57extern 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);
68EXPORT_SYMBOL(transfer_to_handler);
69EXPORT_SYMBOL(do_IRQ);
70EXPORT_SYMBOL(machine_check_exception);
71EXPORT_SYMBOL(alignment_exception);
72EXPORT_SYMBOL(program_check_exception);
73EXPORT_SYMBOL(single_step_exception);
74EXPORT_SYMBOL(sys_sigreturn);
75EXPORT_SYMBOL(ppc_n_lost_interrupts);
76
77EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
78EXPORT_SYMBOL(DMA_MODE_READ);
79EXPORT_SYMBOL(DMA_MODE_WRITE);
80
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);
93EXPORT_SYMBOL(strlen);
94EXPORT_SYMBOL(strcmp);
95
96EXPORT_SYMBOL(csum_partial);
97EXPORT_SYMBOL(csum_partial_copy_generic);
98EXPORT_SYMBOL(ip_fast_csum);
99EXPORT_SYMBOL(csum_tcpudp_magic);
100
101EXPORT_SYMBOL(__copy_tofrom_user);
102EXPORT_SYMBOL(__clear_user);
103EXPORT_SYMBOL(__strncpy_from_user);
104EXPORT_SYMBOL(__strnlen_user);
105
106/*
107EXPORT_SYMBOL(inb);
108EXPORT_SYMBOL(inw);
109EXPORT_SYMBOL(inl);
110EXPORT_SYMBOL(outb);
111EXPORT_SYMBOL(outw);
112EXPORT_SYMBOL(outl);
113EXPORT_SYMBOL(outsl);*/
114
115EXPORT_SYMBOL(_insb);
116EXPORT_SYMBOL(_outsb);
117EXPORT_SYMBOL(_insw_ns);
118EXPORT_SYMBOL(_outsw_ns);
119EXPORT_SYMBOL(_insl_ns);
120EXPORT_SYMBOL(_outsl_ns);
121EXPORT_SYMBOL(iopa);
122EXPORT_SYMBOL(mm_ptov);
123EXPORT_SYMBOL(ioremap);
124#ifdef CONFIG_44x
125EXPORT_SYMBOL(ioremap64);
126#endif
127EXPORT_SYMBOL(__ioremap);
128EXPORT_SYMBOL(iounmap);
129EXPORT_SYMBOL(ioremap_bot);	/* aka VMALLOC_END */
130
131#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
132EXPORT_SYMBOL(ppc_ide_md);
133#endif
134
135#ifdef CONFIG_PCI
136EXPORT_SYMBOL(isa_io_base);
137EXPORT_SYMBOL(isa_mem_base);
138EXPORT_SYMBOL(pci_dram_offset);
139EXPORT_SYMBOL(pci_alloc_consistent);
140EXPORT_SYMBOL(pci_free_consistent);
141EXPORT_SYMBOL(pci_bus_io_base);
142EXPORT_SYMBOL(pci_bus_io_base_phys);
143EXPORT_SYMBOL(pci_bus_mem_base_phys);
144EXPORT_SYMBOL(pci_bus_to_hose);
145EXPORT_SYMBOL(pci_resource_to_bus);
146EXPORT_SYMBOL(pci_phys_to_bus);
147EXPORT_SYMBOL(pci_bus_to_phys);
148#endif /* CONFIG_PCI */
149
150#ifdef CONFIG_NOT_COHERENT_CACHE
151extern void flush_dcache_all(void);
152EXPORT_SYMBOL(flush_dcache_all);
153#endif
154
155EXPORT_SYMBOL(start_thread);
156EXPORT_SYMBOL(kernel_thread);
157
158EXPORT_SYMBOL(flush_instruction_cache);
159EXPORT_SYMBOL(giveup_fpu);
160EXPORT_SYMBOL(__flush_icache_range);
161EXPORT_SYMBOL(flush_dcache_range);
162EXPORT_SYMBOL(flush_icache_user_range);
163EXPORT_SYMBOL(flush_dcache_page);
164EXPORT_SYMBOL(flush_tlb_kernel_range);
165EXPORT_SYMBOL(flush_tlb_page);
166EXPORT_SYMBOL(_tlbie);
167#ifdef CONFIG_ALTIVEC
168#ifndef CONFIG_SMP
169EXPORT_SYMBOL(last_task_used_altivec);
170#endif
171EXPORT_SYMBOL(giveup_altivec);
172#endif /* CONFIG_ALTIVEC */
173#ifdef CONFIG_SPE
174#ifndef CONFIG_SMP
175EXPORT_SYMBOL(last_task_used_spe);
176#endif
177EXPORT_SYMBOL(giveup_spe);
178#endif /* CONFIG_SPE */
179#ifdef CONFIG_SMP
180EXPORT_SYMBOL(smp_call_function);
181EXPORT_SYMBOL(smp_hw_index);
182#endif
183
184EXPORT_SYMBOL(ppc_md);
185
186#ifdef CONFIG_ADB
187EXPORT_SYMBOL(adb_request);
188EXPORT_SYMBOL(adb_register);
189EXPORT_SYMBOL(adb_unregister);
190EXPORT_SYMBOL(adb_poll);
191EXPORT_SYMBOL(adb_try_handler_change);
192#endif /* CONFIG_ADB */
193#ifdef CONFIG_ADB_CUDA
194EXPORT_SYMBOL(cuda_request);
195EXPORT_SYMBOL(cuda_poll);
196#endif /* CONFIG_ADB_CUDA */
197#if defined(CONFIG_BOOTX_TEXT)
198EXPORT_SYMBOL(btext_update_display);
199#endif
200#ifdef CONFIG_VT
201EXPORT_SYMBOL(kd_mksound);
202#endif
203EXPORT_SYMBOL(to_tm);
204
205EXPORT_SYMBOL(pm_power_off);
206
207EXPORT_SYMBOL(__ashrdi3);
208EXPORT_SYMBOL(__ashldi3);
209EXPORT_SYMBOL(__lshrdi3);
210EXPORT_SYMBOL(memcpy);
211EXPORT_SYMBOL(cacheable_memcpy);
212EXPORT_SYMBOL(memset);
213EXPORT_SYMBOL(memmove);
214EXPORT_SYMBOL(memcmp);
215EXPORT_SYMBOL(memchr);
216
217#if defined(CONFIG_FB_VGA16_MODULE)
218EXPORT_SYMBOL(screen_info);
219#endif
220
221EXPORT_SYMBOL(__delay);
222EXPORT_SYMBOL(timer_interrupt);
223EXPORT_SYMBOL(irq_desc);
224EXPORT_SYMBOL(tb_ticks_per_jiffy);
225EXPORT_SYMBOL(console_drivers);
226#ifdef CONFIG_XMON
227EXPORT_SYMBOL(xmon);
228EXPORT_SYMBOL(xmon_printf);
229#endif
230
231#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
232extern void (*debugger)(struct pt_regs *regs);
233extern int (*debugger_bpt)(struct pt_regs *regs);
234extern int (*debugger_sstep)(struct pt_regs *regs);
235extern int (*debugger_iabr_match)(struct pt_regs *regs);
236extern int (*debugger_dabr_match)(struct pt_regs *regs);
237extern void (*debugger_fault_handler)(struct pt_regs *regs);
238
239EXPORT_SYMBOL(debugger);
240EXPORT_SYMBOL(debugger_bpt);
241EXPORT_SYMBOL(debugger_sstep);
242EXPORT_SYMBOL(debugger_iabr_match);
243EXPORT_SYMBOL(debugger_dabr_match);
244EXPORT_SYMBOL(debugger_fault_handler);
245#endif
246
247#ifdef  CONFIG_8xx
248EXPORT_SYMBOL(cpm_install_handler);
249EXPORT_SYMBOL(cpm_free_handler);
250#endif /* CONFIG_8xx */
251#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) || \
252	defined(CONFIG_83xx)
253EXPORT_SYMBOL(__res);
254#endif
255
256EXPORT_SYMBOL(next_mmu_context);
257EXPORT_SYMBOL(set_context);
258EXPORT_SYMBOL(disarm_decr);
259#ifdef CONFIG_PPC_STD_MMU
260extern long mol_trampoline;
261EXPORT_SYMBOL(mol_trampoline); /* For MOL */
262EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
263#ifdef CONFIG_SMP
264extern int mmu_hash_lock;
265EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
266#endif /* CONFIG_SMP */
267extern long *intercept_table;
268EXPORT_SYMBOL(intercept_table);
269#endif /* CONFIG_PPC_STD_MMU */
270#ifdef CONFIG_PPC_DCR_NATIVE
271EXPORT_SYMBOL(__mtdcr);
272EXPORT_SYMBOL(__mfdcr);
273#endif
274