1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/threads.h>
5 #include <linux/sched.h>
6 #include <linux/elfcore.h>
7 #include <linux/string.h>
8 #include <linux/interrupt.h>
10 #include <linux/vt_kern.h>
11 #include <linux/nvram.h>
12 #include <linux/console.h>
13 #include <linux/irq.h>
14 #include <linux/pci.h>
15 #include <linux/delay.h>
16 #include <linux/ide.h>
18 #include <linux/bitops.h>
21 #include <asm/semaphore.h>
22 #include <asm/processor.h>
23 #include <asm/uaccess.h>
26 #include <asm/atomic.h>
27 #include <asm/checksum.h>
28 #include <asm/pgtable.h>
29 #include <asm/tlbflush.h>
30 #include <linux/adb.h>
31 #include <linux/cuda.h>
32 #include <linux/pmu.h>
34 #include <asm/system.h>
35 #include <asm/pci-bridge.h>
37 #include <asm/pmac_feature.h>
39 #include <asm/machdep.h>
40 #include <asm/hw_irq.h>
41 #include <asm/nvram.h>
42 #include <asm/mmu_context.h>
43 #include <asm/backlight.h>
45 #include <asm/cputable.h>
46 #include <asm/btext.h>
47 #include <asm/div64.h>
49 #include <asm/signal.h>
52 #include <asm/commproc.h>
55 extern void transfer_to_handler(void);
56 extern void do_IRQ(struct pt_regs
*regs
);
57 extern void machine_check_exception(struct pt_regs
*regs
);
58 extern void alignment_exception(struct pt_regs
*regs
);
59 extern void program_check_exception(struct pt_regs
*regs
);
60 extern void single_step_exception(struct pt_regs
*regs
);
61 extern int pmac_newworld
;
62 extern int sys_sigreturn(struct pt_regs
*regs
);
64 long long __ashrdi3(long long, int);
65 long long __ashldi3(long long, int);
66 long long __lshrdi3(long long, int);
68 extern unsigned long mm_ptov (unsigned long paddr
);
70 EXPORT_SYMBOL(clear_pages
);
71 EXPORT_SYMBOL(clear_user_page
);
72 EXPORT_SYMBOL(do_signal
);
73 EXPORT_SYMBOL(transfer_to_handler
);
74 EXPORT_SYMBOL(do_IRQ
);
75 EXPORT_SYMBOL(machine_check_exception
);
76 EXPORT_SYMBOL(alignment_exception
);
77 EXPORT_SYMBOL(program_check_exception
);
78 EXPORT_SYMBOL(single_step_exception
);
79 EXPORT_SYMBOL(sys_sigreturn
);
80 EXPORT_SYMBOL(ppc_n_lost_interrupts
);
82 EXPORT_SYMBOL(ISA_DMA_THRESHOLD
);
83 EXPORT_SYMBOL(DMA_MODE_READ
);
84 EXPORT_SYMBOL(DMA_MODE_WRITE
);
85 #if defined(CONFIG_PPC_PREP)
86 EXPORT_SYMBOL(_prep_type
);
87 EXPORT_SYMBOL(ucSystemType
);
90 #if !defined(__INLINE_BITOPS)
91 EXPORT_SYMBOL(set_bit
);
92 EXPORT_SYMBOL(clear_bit
);
93 EXPORT_SYMBOL(change_bit
);
94 EXPORT_SYMBOL(test_and_set_bit
);
95 EXPORT_SYMBOL(test_and_clear_bit
);
96 EXPORT_SYMBOL(test_and_change_bit
);
97 #endif /* __INLINE_BITOPS */
99 EXPORT_SYMBOL(strcpy
);
100 EXPORT_SYMBOL(strncpy
);
101 EXPORT_SYMBOL(strcat
);
102 EXPORT_SYMBOL(strncat
);
103 EXPORT_SYMBOL(strchr
);
104 EXPORT_SYMBOL(strrchr
);
105 EXPORT_SYMBOL(strpbrk
);
106 EXPORT_SYMBOL(strstr
);
107 EXPORT_SYMBOL(strlen
);
108 EXPORT_SYMBOL(strnlen
);
109 EXPORT_SYMBOL(strcmp
);
110 EXPORT_SYMBOL(strncmp
);
111 EXPORT_SYMBOL(strcasecmp
);
112 EXPORT_SYMBOL(__div64_32
);
114 EXPORT_SYMBOL(csum_partial
);
115 EXPORT_SYMBOL(csum_partial_copy_generic
);
116 EXPORT_SYMBOL(ip_fast_csum
);
117 EXPORT_SYMBOL(csum_tcpudp_magic
);
119 EXPORT_SYMBOL(__copy_tofrom_user
);
120 EXPORT_SYMBOL(__clear_user
);
121 EXPORT_SYMBOL(__strncpy_from_user
);
122 EXPORT_SYMBOL(__strnlen_user
);
131 EXPORT_SYMBOL(outsl);*/
133 EXPORT_SYMBOL(__ide_mm_insl
);
134 EXPORT_SYMBOL(__ide_mm_outsw
);
135 EXPORT_SYMBOL(__ide_mm_insw
);
136 EXPORT_SYMBOL(__ide_mm_outsl
);
138 EXPORT_SYMBOL(_insb
);
139 EXPORT_SYMBOL(_outsb
);
140 EXPORT_SYMBOL(_insw
);
141 EXPORT_SYMBOL(_outsw
);
142 EXPORT_SYMBOL(_insl
);
143 EXPORT_SYMBOL(_outsl
);
144 EXPORT_SYMBOL(_insw_ns
);
145 EXPORT_SYMBOL(_outsw_ns
);
146 EXPORT_SYMBOL(_insl_ns
);
147 EXPORT_SYMBOL(_outsl_ns
);
149 EXPORT_SYMBOL(mm_ptov
);
150 EXPORT_SYMBOL(ioremap
);
152 EXPORT_SYMBOL(ioremap64
);
154 EXPORT_SYMBOL(__ioremap
);
155 EXPORT_SYMBOL(iounmap
);
156 EXPORT_SYMBOL(ioremap_bot
); /* aka VMALLOC_END */
158 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
159 EXPORT_SYMBOL(ppc_ide_md
);
163 EXPORT_SYMBOL(isa_io_base
);
164 EXPORT_SYMBOL(isa_mem_base
);
165 EXPORT_SYMBOL(pci_dram_offset
);
166 EXPORT_SYMBOL(pci_alloc_consistent
);
167 EXPORT_SYMBOL(pci_free_consistent
);
168 EXPORT_SYMBOL(pci_bus_io_base
);
169 EXPORT_SYMBOL(pci_bus_io_base_phys
);
170 EXPORT_SYMBOL(pci_bus_mem_base_phys
);
171 EXPORT_SYMBOL(pci_bus_to_hose
);
172 EXPORT_SYMBOL(pci_resource_to_bus
);
173 EXPORT_SYMBOL(pci_phys_to_bus
);
174 EXPORT_SYMBOL(pci_bus_to_phys
);
175 #endif /* CONFIG_PCI */
177 #ifdef CONFIG_NOT_COHERENT_CACHE
178 extern void flush_dcache_all(void);
179 EXPORT_SYMBOL(flush_dcache_all
);
182 EXPORT_SYMBOL(start_thread
);
183 EXPORT_SYMBOL(kernel_thread
);
185 EXPORT_SYMBOL(flush_instruction_cache
);
186 EXPORT_SYMBOL(giveup_fpu
);
187 EXPORT_SYMBOL(__flush_icache_range
);
188 EXPORT_SYMBOL(flush_dcache_range
);
189 EXPORT_SYMBOL(flush_icache_user_range
);
190 EXPORT_SYMBOL(flush_dcache_page
);
191 EXPORT_SYMBOL(flush_tlb_kernel_range
);
192 EXPORT_SYMBOL(flush_tlb_page
);
193 EXPORT_SYMBOL(_tlbie
);
194 #ifdef CONFIG_ALTIVEC
195 EXPORT_SYMBOL(last_task_used_altivec
);
196 EXPORT_SYMBOL(giveup_altivec
);
197 #endif /* CONFIG_ALTIVEC */
199 EXPORT_SYMBOL(last_task_used_spe
);
200 EXPORT_SYMBOL(giveup_spe
);
201 #endif /* CONFIG_SPE */
203 EXPORT_SYMBOL(smp_call_function
);
204 EXPORT_SYMBOL(smp_hw_index
);
207 EXPORT_SYMBOL(ppc_md
);
210 EXPORT_SYMBOL(adb_request
);
211 EXPORT_SYMBOL(adb_register
);
212 EXPORT_SYMBOL(adb_unregister
);
213 EXPORT_SYMBOL(adb_poll
);
214 EXPORT_SYMBOL(adb_try_handler_change
);
215 #endif /* CONFIG_ADB */
216 #ifdef CONFIG_ADB_CUDA
217 EXPORT_SYMBOL(cuda_request
);
218 EXPORT_SYMBOL(cuda_poll
);
219 #endif /* CONFIG_ADB_CUDA */
220 #ifdef CONFIG_PPC_PMAC
221 EXPORT_SYMBOL(sys_ctrler
);
222 EXPORT_SYMBOL(pmac_newworld
);
225 EXPORT_SYMBOL(find_devices
);
226 EXPORT_SYMBOL(find_type_devices
);
227 EXPORT_SYMBOL(find_compatible_devices
);
228 EXPORT_SYMBOL(find_path_device
);
229 EXPORT_SYMBOL(device_is_compatible
);
230 EXPORT_SYMBOL(machine_is_compatible
);
231 EXPORT_SYMBOL(find_all_nodes
);
232 EXPORT_SYMBOL(get_property
);
233 EXPORT_SYMBOL(request_OF_resource
);
234 EXPORT_SYMBOL(release_OF_resource
);
235 EXPORT_SYMBOL(of_find_node_by_name
);
236 EXPORT_SYMBOL(of_find_node_by_type
);
237 EXPORT_SYMBOL(of_find_compatible_node
);
238 EXPORT_SYMBOL(of_find_node_by_path
);
239 EXPORT_SYMBOL(of_find_all_nodes
);
240 EXPORT_SYMBOL(of_get_parent
);
241 EXPORT_SYMBOL(of_get_next_child
);
242 EXPORT_SYMBOL(of_node_get
);
243 EXPORT_SYMBOL(of_node_put
);
244 #endif /* CONFIG_PPC_OF */
245 #if defined(CONFIG_BOOTX_TEXT)
246 EXPORT_SYMBOL(btext_update_display
);
248 #if defined(CONFIG_SCSI) && defined(CONFIG_PPC_PMAC)
249 EXPORT_SYMBOL(note_scsi_host
);
252 EXPORT_SYMBOL(kd_mksound
);
254 EXPORT_SYMBOL(to_tm
);
256 EXPORT_SYMBOL(pm_power_off
);
258 EXPORT_SYMBOL(__ashrdi3
);
259 EXPORT_SYMBOL(__ashldi3
);
260 EXPORT_SYMBOL(__lshrdi3
);
261 EXPORT_SYMBOL(memcpy
);
262 EXPORT_SYMBOL(cacheable_memcpy
);
263 EXPORT_SYMBOL(memset
);
264 EXPORT_SYMBOL(memmove
);
265 EXPORT_SYMBOL(memscan
);
266 EXPORT_SYMBOL(memcmp
);
267 EXPORT_SYMBOL(memchr
);
269 #if defined(CONFIG_FB_VGA16_MODULE)
270 EXPORT_SYMBOL(screen_info
);
273 EXPORT_SYMBOL(__delay
);
274 EXPORT_SYMBOL(timer_interrupt
);
275 EXPORT_SYMBOL(irq_desc
);
276 EXPORT_SYMBOL(tb_ticks_per_jiffy
);
277 EXPORT_SYMBOL(get_wchan
);
278 EXPORT_SYMBOL(console_drivers
);
281 EXPORT_SYMBOL(xmon_printf
);
284 EXPORT_SYMBOL(__down
);
285 EXPORT_SYMBOL(__down_interruptible
);
287 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
288 extern void (*debugger
)(struct pt_regs
*regs
);
289 extern int (*debugger_bpt
)(struct pt_regs
*regs
);
290 extern int (*debugger_sstep
)(struct pt_regs
*regs
);
291 extern int (*debugger_iabr_match
)(struct pt_regs
*regs
);
292 extern int (*debugger_dabr_match
)(struct pt_regs
*regs
);
293 extern void (*debugger_fault_handler
)(struct pt_regs
*regs
);
295 EXPORT_SYMBOL(debugger
);
296 EXPORT_SYMBOL(debugger_bpt
);
297 EXPORT_SYMBOL(debugger_sstep
);
298 EXPORT_SYMBOL(debugger_iabr_match
);
299 EXPORT_SYMBOL(debugger_dabr_match
);
300 EXPORT_SYMBOL(debugger_fault_handler
);
304 EXPORT_SYMBOL(cpm_install_handler
);
305 EXPORT_SYMBOL(cpm_free_handler
);
306 #endif /* CONFIG_8xx */
307 #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
309 EXPORT_SYMBOL(__res
);
312 EXPORT_SYMBOL(next_mmu_context
);
313 EXPORT_SYMBOL(set_context
);
314 EXPORT_SYMBOL_GPL(__handle_mm_fault
); /* For MOL */
315 EXPORT_SYMBOL(disarm_decr
);
316 #ifdef CONFIG_PPC_STD_MMU
317 extern long mol_trampoline
;
318 EXPORT_SYMBOL(mol_trampoline
); /* For MOL */
319 EXPORT_SYMBOL(flush_hash_pages
); /* For MOL */
321 extern int mmu_hash_lock
;
322 EXPORT_SYMBOL(mmu_hash_lock
); /* For MOL */
323 #endif /* CONFIG_SMP */
324 extern long *intercept_table
;
325 EXPORT_SYMBOL(intercept_table
);
326 #endif /* CONFIG_PPC_STD_MMU */
327 #if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
328 EXPORT_SYMBOL(__mtdcr
);
329 EXPORT_SYMBOL(__mfdcr
);