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 <asm/cacheflush.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>
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>
41 #include <asm/cputable.h>
42 #include <asm/btext.h>
44 #include <asm/signal.h>
51 extern void transfer_to_handler(void);
52 extern void do_IRQ(struct pt_regs
*regs
);
53 extern void machine_check_exception(struct pt_regs
*regs
);
54 extern void alignment_exception(struct pt_regs
*regs
);
55 extern void program_check_exception(struct pt_regs
*regs
);
56 extern void single_step_exception(struct pt_regs
*regs
);
57 extern int sys_sigreturn(struct pt_regs
*regs
);
59 long long __ashrdi3(long long, int);
60 long long __ashldi3(long long, int);
61 long long __lshrdi3(long long, int);
63 EXPORT_SYMBOL(clear_pages
);
64 EXPORT_SYMBOL(clear_user_page
);
65 EXPORT_SYMBOL(transfer_to_handler
);
66 EXPORT_SYMBOL(do_IRQ
);
67 EXPORT_SYMBOL(machine_check_exception
);
68 EXPORT_SYMBOL(alignment_exception
);
69 EXPORT_SYMBOL(program_check_exception
);
70 EXPORT_SYMBOL(single_step_exception
);
71 EXPORT_SYMBOL(sys_sigreturn
);
72 EXPORT_SYMBOL(ppc_n_lost_interrupts
);
74 EXPORT_SYMBOL(ISA_DMA_THRESHOLD
);
75 EXPORT_SYMBOL(DMA_MODE_READ
);
76 EXPORT_SYMBOL(DMA_MODE_WRITE
);
78 #if !defined(__INLINE_BITOPS)
79 EXPORT_SYMBOL(set_bit
);
80 EXPORT_SYMBOL(clear_bit
);
81 EXPORT_SYMBOL(change_bit
);
82 EXPORT_SYMBOL(test_and_set_bit
);
83 EXPORT_SYMBOL(test_and_clear_bit
);
84 EXPORT_SYMBOL(test_and_change_bit
);
85 #endif /* __INLINE_BITOPS */
87 EXPORT_SYMBOL(strcpy
);
88 EXPORT_SYMBOL(strncpy
);
89 EXPORT_SYMBOL(strcat
);
90 EXPORT_SYMBOL(strlen
);
91 EXPORT_SYMBOL(strcmp
);
92 EXPORT_SYMBOL(strncmp
);
94 EXPORT_SYMBOL(csum_partial
);
95 EXPORT_SYMBOL(csum_partial_copy_generic
);
96 EXPORT_SYMBOL(ip_fast_csum
);
97 EXPORT_SYMBOL(csum_tcpudp_magic
);
99 EXPORT_SYMBOL(__copy_tofrom_user
);
100 EXPORT_SYMBOL(__clear_user
);
101 EXPORT_SYMBOL(__strncpy_from_user
);
102 EXPORT_SYMBOL(__strnlen_user
);
111 EXPORT_SYMBOL(outsl);*/
113 EXPORT_SYMBOL(_insb
);
114 EXPORT_SYMBOL(_outsb
);
115 EXPORT_SYMBOL(_insw_ns
);
116 EXPORT_SYMBOL(_outsw_ns
);
117 EXPORT_SYMBOL(_insl_ns
);
118 EXPORT_SYMBOL(_outsl_ns
);
120 EXPORT_SYMBOL(ioremap
);
122 EXPORT_SYMBOL(ioremap64
);
124 EXPORT_SYMBOL(__ioremap
);
125 EXPORT_SYMBOL(iounmap
);
126 EXPORT_SYMBOL(ioremap_bot
); /* aka VMALLOC_END */
129 EXPORT_SYMBOL(isa_io_base
);
130 EXPORT_SYMBOL(isa_mem_base
);
131 EXPORT_SYMBOL(pci_dram_offset
);
132 EXPORT_SYMBOL(pci_alloc_consistent
);
133 EXPORT_SYMBOL(pci_free_consistent
);
134 EXPORT_SYMBOL(pci_bus_io_base
);
135 EXPORT_SYMBOL(pci_bus_io_base_phys
);
136 EXPORT_SYMBOL(pci_bus_mem_base_phys
);
137 EXPORT_SYMBOL(pci_bus_to_hose
);
138 EXPORT_SYMBOL(pci_resource_to_bus
);
139 EXPORT_SYMBOL(pci_phys_to_bus
);
140 EXPORT_SYMBOL(pci_bus_to_phys
);
141 #endif /* CONFIG_PCI */
143 #ifdef CONFIG_NOT_COHERENT_CACHE
144 extern void flush_dcache_all(void);
145 EXPORT_SYMBOL(flush_dcache_all
);
148 EXPORT_SYMBOL(start_thread
);
149 EXPORT_SYMBOL(kernel_thread
);
151 EXPORT_SYMBOL(flush_instruction_cache
);
152 EXPORT_SYMBOL(giveup_fpu
);
153 EXPORT_SYMBOL(__flush_icache_range
);
154 EXPORT_SYMBOL(flush_dcache_range
);
155 EXPORT_SYMBOL(flush_icache_user_range
);
156 EXPORT_SYMBOL(flush_dcache_page
);
157 EXPORT_SYMBOL(flush_tlb_kernel_range
);
158 EXPORT_SYMBOL(flush_tlb_page
);
159 EXPORT_SYMBOL(_tlbie
);
160 #ifdef CONFIG_ALTIVEC
162 EXPORT_SYMBOL(last_task_used_altivec
);
164 EXPORT_SYMBOL(giveup_altivec
);
165 #endif /* CONFIG_ALTIVEC */
167 EXPORT_SYMBOL(smp_call_function
);
168 EXPORT_SYMBOL(smp_hw_index
);
171 EXPORT_SYMBOL(ppc_md
);
174 EXPORT_SYMBOL(adb_request
);
175 EXPORT_SYMBOL(adb_register
);
176 EXPORT_SYMBOL(adb_unregister
);
177 EXPORT_SYMBOL(adb_poll
);
178 EXPORT_SYMBOL(adb_try_handler_change
);
179 #endif /* CONFIG_ADB */
180 #ifdef CONFIG_ADB_CUDA
181 EXPORT_SYMBOL(cuda_request
);
182 EXPORT_SYMBOL(cuda_poll
);
183 #endif /* CONFIG_ADB_CUDA */
184 #if defined(CONFIG_BOOTX_TEXT)
185 EXPORT_SYMBOL(btext_update_display
);
187 EXPORT_SYMBOL(to_tm
);
189 EXPORT_SYMBOL(pm_power_off
);
191 EXPORT_SYMBOL(__ashrdi3
);
192 EXPORT_SYMBOL(__ashldi3
);
193 EXPORT_SYMBOL(__lshrdi3
);
194 EXPORT_SYMBOL(memcpy
);
195 EXPORT_SYMBOL(cacheable_memcpy
);
196 EXPORT_SYMBOL(memset
);
197 EXPORT_SYMBOL(memmove
);
198 EXPORT_SYMBOL(memcmp
);
199 EXPORT_SYMBOL(memchr
);
201 #if defined(CONFIG_FB_VGA16_MODULE)
202 EXPORT_SYMBOL(screen_info
);
205 EXPORT_SYMBOL(__delay
);
206 EXPORT_SYMBOL(timer_interrupt
);
207 EXPORT_SYMBOL(irq_desc
);
208 EXPORT_SYMBOL(tb_ticks_per_jiffy
);
209 EXPORT_SYMBOL(console_drivers
);
212 EXPORT_SYMBOL(xmon_printf
);
215 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
216 extern void (*debugger
)(struct pt_regs
*regs
);
217 extern int (*debugger_bpt
)(struct pt_regs
*regs
);
218 extern int (*debugger_sstep
)(struct pt_regs
*regs
);
219 extern int (*debugger_iabr_match
)(struct pt_regs
*regs
);
220 extern int (*debugger_dabr_match
)(struct pt_regs
*regs
);
221 extern void (*debugger_fault_handler
)(struct pt_regs
*regs
);
223 EXPORT_SYMBOL(debugger
);
224 EXPORT_SYMBOL(debugger_bpt
);
225 EXPORT_SYMBOL(debugger_sstep
);
226 EXPORT_SYMBOL(debugger_iabr_match
);
227 EXPORT_SYMBOL(debugger_dabr_match
);
228 EXPORT_SYMBOL(debugger_fault_handler
);
232 EXPORT_SYMBOL(cpm_install_handler
);
233 EXPORT_SYMBOL(cpm_free_handler
);
234 #endif /* CONFIG_8xx */
235 #if defined(CONFIG_8xx) || defined(CONFIG_40x)
236 EXPORT_SYMBOL(__res
);
239 EXPORT_SYMBOL(next_mmu_context
);
240 EXPORT_SYMBOL(set_context
);
241 EXPORT_SYMBOL(disarm_decr
);
242 #ifdef CONFIG_PPC_STD_MMU
243 extern long mol_trampoline
;
244 EXPORT_SYMBOL(mol_trampoline
); /* For MOL */
245 EXPORT_SYMBOL(flush_hash_pages
); /* For MOL */
247 extern int mmu_hash_lock
;
248 EXPORT_SYMBOL(mmu_hash_lock
); /* For MOL */
249 #endif /* CONFIG_SMP */
250 extern long *intercept_table
;
251 EXPORT_SYMBOL(intercept_table
);
252 #endif /* CONFIG_PPC_STD_MMU */
253 #ifdef CONFIG_PPC_DCR_NATIVE
254 EXPORT_SYMBOL(__mtdcr
);
255 EXPORT_SYMBOL(__mfdcr
);