1 #include <linux/module.h>
2 #include <linux/threads.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>
16 #include <linux/bitops.h>
19 #include <asm/processor.h>
20 #include <asm/uaccess.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>
30 #include <asm/system.h>
31 #include <asm/pci-bridge.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>
40 #include <asm/cputable.h>
41 #include <asm/btext.h>
43 #include <asm/signal.h>
50 extern void transfer_to_handler(void);
51 extern void do_IRQ(struct pt_regs *regs);
52 extern void machine_check_exception(struct pt_regs *regs);
53 extern void alignment_exception(struct pt_regs *regs);
54 extern void program_check_exception(struct pt_regs *regs);
55 extern void single_step_exception(struct pt_regs *regs);
56 extern int sys_sigreturn(struct pt_regs *regs);
58 long long __ashrdi3(long long, int);
59 long long __ashldi3(long long, int);
60 long long __lshrdi3(long long, int);
62 EXPORT_SYMBOL(clear_pages);
63 EXPORT_SYMBOL(clear_user_page);
64 EXPORT_SYMBOL(transfer_to_handler);
65 EXPORT_SYMBOL(do_IRQ);
66 EXPORT_SYMBOL(machine_check_exception);
67 EXPORT_SYMBOL(alignment_exception);
68 EXPORT_SYMBOL(program_check_exception);
69 EXPORT_SYMBOL(single_step_exception);
70 EXPORT_SYMBOL(sys_sigreturn);
71 EXPORT_SYMBOL(ppc_n_lost_interrupts);
73 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
74 EXPORT_SYMBOL(DMA_MODE_READ);
75 EXPORT_SYMBOL(DMA_MODE_WRITE);
77 #if !defined(__INLINE_BITOPS)
78 EXPORT_SYMBOL(set_bit);
79 EXPORT_SYMBOL(clear_bit);
80 EXPORT_SYMBOL(change_bit);
81 EXPORT_SYMBOL(test_and_set_bit);
82 EXPORT_SYMBOL(test_and_clear_bit);
83 EXPORT_SYMBOL(test_and_change_bit);
84 #endif /* __INLINE_BITOPS */
86 EXPORT_SYMBOL(strcpy);
87 EXPORT_SYMBOL(strncpy);
88 EXPORT_SYMBOL(strcat);
89 EXPORT_SYMBOL(strlen);
90 EXPORT_SYMBOL(strcmp);
92 EXPORT_SYMBOL(csum_partial);
93 EXPORT_SYMBOL(csum_partial_copy_generic);
94 EXPORT_SYMBOL(ip_fast_csum);
95 EXPORT_SYMBOL(csum_tcpudp_magic);
97 EXPORT_SYMBOL(__copy_tofrom_user);
98 EXPORT_SYMBOL(__clear_user);
99 EXPORT_SYMBOL(__strncpy_from_user);
100 EXPORT_SYMBOL(__strnlen_user);
109 EXPORT_SYMBOL(outsl);*/
111 EXPORT_SYMBOL(_insb);
112 EXPORT_SYMBOL(_outsb);
113 EXPORT_SYMBOL(_insw_ns);
114 EXPORT_SYMBOL(_outsw_ns);
115 EXPORT_SYMBOL(_insl_ns);
116 EXPORT_SYMBOL(_outsl_ns);
118 EXPORT_SYMBOL(ioremap);
120 EXPORT_SYMBOL(ioremap64);
122 EXPORT_SYMBOL(__ioremap);
123 EXPORT_SYMBOL(iounmap);
124 EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
127 EXPORT_SYMBOL(isa_io_base);
128 EXPORT_SYMBOL(isa_mem_base);
129 EXPORT_SYMBOL(pci_dram_offset);
130 EXPORT_SYMBOL(pci_alloc_consistent);
131 EXPORT_SYMBOL(pci_free_consistent);
132 EXPORT_SYMBOL(pci_bus_io_base);
133 EXPORT_SYMBOL(pci_bus_io_base_phys);
134 EXPORT_SYMBOL(pci_bus_mem_base_phys);
135 EXPORT_SYMBOL(pci_bus_to_hose);
136 EXPORT_SYMBOL(pci_resource_to_bus);
137 EXPORT_SYMBOL(pci_phys_to_bus);
138 EXPORT_SYMBOL(pci_bus_to_phys);
139 #endif /* CONFIG_PCI */
141 #ifdef CONFIG_NOT_COHERENT_CACHE
142 extern void flush_dcache_all(void);
143 EXPORT_SYMBOL(flush_dcache_all);
146 EXPORT_SYMBOL(start_thread);
147 EXPORT_SYMBOL(kernel_thread);
149 EXPORT_SYMBOL(flush_instruction_cache);
150 EXPORT_SYMBOL(giveup_fpu);
151 EXPORT_SYMBOL(__flush_icache_range);
152 EXPORT_SYMBOL(flush_dcache_range);
153 EXPORT_SYMBOL(flush_icache_user_range);
154 EXPORT_SYMBOL(flush_dcache_page);
155 EXPORT_SYMBOL(flush_tlb_kernel_range);
156 EXPORT_SYMBOL(flush_tlb_page);
157 EXPORT_SYMBOL(_tlbie);
158 #ifdef CONFIG_ALTIVEC
160 EXPORT_SYMBOL(last_task_used_altivec);
162 EXPORT_SYMBOL(giveup_altivec);
163 #endif /* CONFIG_ALTIVEC */
165 EXPORT_SYMBOL(smp_call_function);
166 EXPORT_SYMBOL(smp_hw_index);
169 EXPORT_SYMBOL(ppc_md);
172 EXPORT_SYMBOL(adb_request);
173 EXPORT_SYMBOL(adb_register);
174 EXPORT_SYMBOL(adb_unregister);
175 EXPORT_SYMBOL(adb_poll);
176 EXPORT_SYMBOL(adb_try_handler_change);
177 #endif /* CONFIG_ADB */
178 #ifdef CONFIG_ADB_CUDA
179 EXPORT_SYMBOL(cuda_request);
180 EXPORT_SYMBOL(cuda_poll);
181 #endif /* CONFIG_ADB_CUDA */
182 #if defined(CONFIG_BOOTX_TEXT)
183 EXPORT_SYMBOL(btext_update_display);
186 EXPORT_SYMBOL(kd_mksound);
188 EXPORT_SYMBOL(to_tm);
190 EXPORT_SYMBOL(pm_power_off);
192 EXPORT_SYMBOL(__ashrdi3);
193 EXPORT_SYMBOL(__ashldi3);
194 EXPORT_SYMBOL(__lshrdi3);
195 EXPORT_SYMBOL(memcpy);
196 EXPORT_SYMBOL(cacheable_memcpy);
197 EXPORT_SYMBOL(memset);
198 EXPORT_SYMBOL(memmove);
199 EXPORT_SYMBOL(memcmp);
200 EXPORT_SYMBOL(memchr);
202 #if defined(CONFIG_FB_VGA16_MODULE)
203 EXPORT_SYMBOL(screen_info);
206 EXPORT_SYMBOL(__delay);
207 EXPORT_SYMBOL(timer_interrupt);
208 EXPORT_SYMBOL(irq_desc);
209 EXPORT_SYMBOL(tb_ticks_per_jiffy);
210 EXPORT_SYMBOL(console_drivers);
213 EXPORT_SYMBOL(xmon_printf);
216 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
217 extern void (*debugger)(struct pt_regs *regs);
218 extern int (*debugger_bpt)(struct pt_regs *regs);
219 extern int (*debugger_sstep)(struct pt_regs *regs);
220 extern int (*debugger_iabr_match)(struct pt_regs *regs);
221 extern int (*debugger_dabr_match)(struct pt_regs *regs);
222 extern void (*debugger_fault_handler)(struct pt_regs *regs);
224 EXPORT_SYMBOL(debugger);
225 EXPORT_SYMBOL(debugger_bpt);
226 EXPORT_SYMBOL(debugger_sstep);
227 EXPORT_SYMBOL(debugger_iabr_match);
228 EXPORT_SYMBOL(debugger_dabr_match);
229 EXPORT_SYMBOL(debugger_fault_handler);
233 EXPORT_SYMBOL(cpm_install_handler);
234 EXPORT_SYMBOL(cpm_free_handler);
235 #endif /* CONFIG_8xx */
236 #if defined(CONFIG_8xx) || defined(CONFIG_40x)
237 EXPORT_SYMBOL(__res);
240 EXPORT_SYMBOL(next_mmu_context);
241 EXPORT_SYMBOL(set_context);
242 EXPORT_SYMBOL(disarm_decr);
243 #ifdef CONFIG_PPC_STD_MMU
244 extern long mol_trampoline;
245 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
246 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
248 extern int mmu_hash_lock;
249 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
250 #endif /* CONFIG_SMP */
251 extern long *intercept_table;
252 EXPORT_SYMBOL(intercept_table);
253 #endif /* CONFIG_PPC_STD_MMU */
254 #ifdef CONFIG_PPC_DCR_NATIVE
255 EXPORT_SYMBOL(__mtdcr);
256 EXPORT_SYMBOL(__mfdcr);