1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/threads.h>
5 #include <linux/elfcore.h>
6 #include <linux/sched.h>
7 #include <linux/string.h>
8 #include <linux/interrupt.h>
9 #include <linux/vt_kern.h>
10 #include <linux/nvram.h>
11 #include <linux/spinlock.h>
12 #include <linux/console.h>
13 #include <linux/irq.h>
14 #include <linux/pci.h>
17 #include <asm/semaphore.h>
18 #include <asm/processor.h>
19 #include <asm/uaccess.h>
21 #include <linux/ide.h>
23 #include <asm/atomic.h>
24 #include <asm/bitops.h>
25 #include <asm/checksum.h>
26 #include <asm/pgtable.h>
27 #include <linux/adb.h>
28 #include <linux/cuda.h>
29 #include <linux/pmu.h>
31 #include <asm/system.h>
32 #include <asm/pci-bridge.h>
34 #include <asm/feature.h>
36 #include <asm/machdep.h>
37 #include <asm/hw_irq.h>
38 #include <asm/nvram.h>
39 #include <asm/mmu_context.h>
40 #include <asm/backlight.h>
42 #include <asm/smplock.h>
43 #endif /* CONFIG_SMP */
46 /* Tell string.h we don't want memcpy etc. as cpp defines */
47 #define EXPORT_SYMTAB_STROPS
49 extern void transfer_to_handler(void);
50 extern void syscall_trace(void);
51 extern void do_IRQ(struct pt_regs
*regs
, int isfake
);
52 extern void MachineCheckException(struct pt_regs
*regs
);
53 extern void AlignmentException(struct pt_regs
*regs
);
54 extern void ProgramCheckException(struct pt_regs
*regs
);
55 extern void SingleStepException(struct pt_regs
*regs
);
56 extern int sys_sigreturn(struct pt_regs
*regs
);
57 extern void do_lost_interrupts(unsigned long);
58 extern int do_signal(sigset_t
*, struct pt_regs
*);
60 long long __ashrdi3(long long, int);
61 long long __ashldi3(long long, int);
62 long long __lshrdi3(long long, int);
64 extern unsigned long ret_to_user_hook
;
66 EXPORT_SYMBOL(clear_page
);
67 EXPORT_SYMBOL(do_signal
);
68 EXPORT_SYMBOL(syscall_trace
);
69 EXPORT_SYMBOL(transfer_to_handler
);
70 EXPORT_SYMBOL(do_IRQ
);
71 EXPORT_SYMBOL(MachineCheckException
);
72 EXPORT_SYMBOL(AlignmentException
);
73 EXPORT_SYMBOL(ProgramCheckException
);
74 EXPORT_SYMBOL(SingleStepException
);
75 EXPORT_SYMBOL(sys_sigreturn
);
76 EXPORT_SYMBOL(ppc_n_lost_interrupts
);
77 EXPORT_SYMBOL(ppc_lost_interrupts
);
78 EXPORT_SYMBOL(do_lost_interrupts
);
79 EXPORT_SYMBOL(enable_irq
);
80 EXPORT_SYMBOL(disable_irq
);
81 EXPORT_SYMBOL(disable_irq_nosync
);
82 EXPORT_SYMBOL(probe_irq_mask
);
84 EXPORT_SYMBOL(kernel_flag
);
85 #endif /* CONFIG_SMP */
87 #if !defined(CONFIG_4xx) && !defined(CONFIG_8xx)
88 EXPORT_SYMBOL_NOVERS(isa_io_base
);
89 EXPORT_SYMBOL_NOVERS(isa_mem_base
);
90 EXPORT_SYMBOL_NOVERS(pci_dram_offset
);
92 EXPORT_SYMBOL(ISA_DMA_THRESHOLD
);
93 EXPORT_SYMBOL(DMA_MODE_READ
);
94 EXPORT_SYMBOL(DMA_MODE_WRITE
);
96 #if defined(CONFIG_ALL_PPC)
97 EXPORT_SYMBOL(_prep_type
);
98 EXPORT_SYMBOL(ucSystemType
);
102 EXPORT_SYMBOL(pci_dev_io_base
);
103 EXPORT_SYMBOL(pci_dev_mem_base
);
107 EXPORT_SYMBOL(set_bit
);
108 EXPORT_SYMBOL(clear_bit
);
109 EXPORT_SYMBOL(change_bit
);
110 EXPORT_SYMBOL(test_and_set_bit
);
111 EXPORT_SYMBOL(test_and_clear_bit
);
112 EXPORT_SYMBOL(test_and_change_bit
);
113 #endif /* __INLINE_BITOPS */
115 EXPORT_SYMBOL(strcpy
);
116 EXPORT_SYMBOL(strncpy
);
117 EXPORT_SYMBOL(strcat
);
118 EXPORT_SYMBOL(strncat
);
119 EXPORT_SYMBOL(strchr
);
120 EXPORT_SYMBOL(strrchr
);
121 EXPORT_SYMBOL(strpbrk
);
122 EXPORT_SYMBOL(strtok
);
123 EXPORT_SYMBOL(strstr
);
124 EXPORT_SYMBOL(strlen
);
125 EXPORT_SYMBOL(strnlen
);
126 EXPORT_SYMBOL(strcmp
);
127 EXPORT_SYMBOL(strncmp
);
129 /* EXPORT_SYMBOL(csum_partial); already in net/netsyms.c */
130 EXPORT_SYMBOL(csum_partial_copy_generic
);
131 EXPORT_SYMBOL(ip_fast_csum
);
132 EXPORT_SYMBOL(csum_tcpudp_magic
);
134 EXPORT_SYMBOL(__copy_tofrom_user
);
135 EXPORT_SYMBOL(__clear_user
);
136 EXPORT_SYMBOL(__strncpy_from_user
);
137 EXPORT_SYMBOL(__strnlen_user
);
146 EXPORT_SYMBOL(outsl);*/
148 EXPORT_SYMBOL(_insb
);
149 EXPORT_SYMBOL(_outsb
);
150 EXPORT_SYMBOL(_insw
);
151 EXPORT_SYMBOL(_outsw
);
152 EXPORT_SYMBOL(_insl
);
153 EXPORT_SYMBOL(_outsl
);
154 EXPORT_SYMBOL(_insw_ns
);
155 EXPORT_SYMBOL(_outsw_ns
);
156 EXPORT_SYMBOL(_insl_ns
);
157 EXPORT_SYMBOL(_outsl_ns
);
158 EXPORT_SYMBOL(ioremap
);
159 EXPORT_SYMBOL(__ioremap
);
160 EXPORT_SYMBOL(iounmap
);
162 EXPORT_SYMBOL(ide_insw
);
163 EXPORT_SYMBOL(ide_outsw
);
164 EXPORT_SYMBOL(ppc_ide_md
);
165 #ifdef CONFIG_BLK_DEV_IDE_MODULE
166 EXPORT_SYMBOL(chrp_ide_irq
);
167 EXPORT_SYMBOL(chrp_ide_ports_known
);
168 EXPORT_SYMBOL(chrp_ide_regbase
);
169 EXPORT_SYMBOL(chrp_ide_probe
);
173 EXPORT_SYMBOL(pci_alloc_consistent
);
174 EXPORT_SYMBOL(pci_free_consistent
);
175 #endif /* CONFIG_PCI */
177 EXPORT_SYMBOL(start_thread
);
178 EXPORT_SYMBOL(kernel_thread
);
180 /*EXPORT_SYMBOL(__restore_flags);*/
181 /*EXPORT_SYMBOL(_disable_interrupts);
182 EXPORT_SYMBOL(_enable_interrupts);*/
183 EXPORT_SYMBOL(flush_instruction_cache
);
184 EXPORT_SYMBOL(_get_PVR
);
185 EXPORT_SYMBOL(giveup_fpu
);
186 EXPORT_SYMBOL(enable_kernel_fp
);
187 EXPORT_SYMBOL(flush_icache_range
);
188 EXPORT_SYMBOL(xchg_u32
);
189 #ifdef CONFIG_ALTIVEC
190 EXPORT_SYMBOL(last_task_used_altivec
);
191 EXPORT_SYMBOL(giveup_altivec
);
192 #endif /* CONFIG_ALTIVEC */
194 EXPORT_SYMBOL(__global_cli
);
195 EXPORT_SYMBOL(__global_sti
);
196 EXPORT_SYMBOL(__global_save_flags
);
197 EXPORT_SYMBOL(__global_restore_flags
);
198 EXPORT_SYMBOL(_spin_lock
);
199 EXPORT_SYMBOL(_spin_unlock
);
200 EXPORT_SYMBOL(spin_trylock
);
201 EXPORT_SYMBOL(_read_lock
);
202 EXPORT_SYMBOL(_read_unlock
);
203 EXPORT_SYMBOL(_write_lock
);
204 EXPORT_SYMBOL(_write_unlock
);
207 #ifndef CONFIG_MACH_SPECIFIC
208 EXPORT_SYMBOL(_machine
);
210 EXPORT_SYMBOL(ppc_md
);
213 EXPORT_SYMBOL(adb_request
);
214 EXPORT_SYMBOL(adb_register
);
215 EXPORT_SYMBOL(adb_unregister
);
216 EXPORT_SYMBOL(adb_poll
);
217 EXPORT_SYMBOL(adb_try_handler_change
);
218 #endif /* CONFIG_ADB */
219 #ifdef CONFIG_ADB_CUDA
220 EXPORT_SYMBOL(cuda_request
);
221 EXPORT_SYMBOL(cuda_poll
);
222 #endif /* CONFIG_ADB_CUDA */
223 #ifdef CONFIG_ADB_PMU
224 EXPORT_SYMBOL(pmu_request
);
225 EXPORT_SYMBOL(pmu_poll
);
226 EXPORT_SYMBOL(pmu_suspend
);
227 EXPORT_SYMBOL(pmu_resume
);
228 #endif /* CONFIG_ADB_PMU */
229 #ifdef CONFIG_PMAC_PBOOK
230 EXPORT_SYMBOL(pmu_register_sleep_notifier
);
231 EXPORT_SYMBOL(pmu_unregister_sleep_notifier
);
232 EXPORT_SYMBOL(pmu_enable_irled
);
233 #endif /* CONFIG_PMAC_PBOOK */
234 #ifdef CONFIG_PMAC_BACKLIGHT
235 EXPORT_SYMBOL(get_backlight_level
);
236 EXPORT_SYMBOL(set_backlight_level
);
237 #endif /* CONFIG_PMAC_BACKLIGHT */
238 #if defined(CONFIG_ALL_PPC)
239 EXPORT_SYMBOL_NOVERS(sys_ctrler
);
240 #ifndef CONFIG_MACH_SPECIFIC
241 EXPORT_SYMBOL_NOVERS(have_of
);
242 #endif /* CONFIG_MACH_SPECIFIC */
243 EXPORT_SYMBOL(find_devices
);
244 EXPORT_SYMBOL(find_type_devices
);
245 EXPORT_SYMBOL(find_compatible_devices
);
246 EXPORT_SYMBOL(find_path_device
);
247 EXPORT_SYMBOL(find_phandle
);
248 EXPORT_SYMBOL(device_is_compatible
);
249 EXPORT_SYMBOL(machine_is_compatible
);
250 EXPORT_SYMBOL(find_pci_device_OFnode
);
251 EXPORT_SYMBOL(find_all_nodes
);
252 EXPORT_SYMBOL(get_property
);
253 EXPORT_SYMBOL(pci_io_base
);
254 EXPORT_SYMBOL(pci_device_loc
);
255 EXPORT_SYMBOL(feature_set
);
256 EXPORT_SYMBOL(feature_clear
);
257 EXPORT_SYMBOL(feature_test
);
258 EXPORT_SYMBOL(feature_set_gmac_power
);
259 EXPORT_SYMBOL(feature_set_usb_power
);
260 EXPORT_SYMBOL(feature_set_firewire_power
);
261 #endif /* defined(CONFIG_ALL_PPC) */
262 #if defined(CONFIG_SCSI) && defined(CONFIG_ALL_PPC)
263 EXPORT_SYMBOL(note_scsi_host
);
265 EXPORT_SYMBOL(kd_mksound
);
267 EXPORT_SYMBOL(nvram_read_byte
);
268 EXPORT_SYMBOL(nvram_write_byte
);
269 EXPORT_SYMBOL(pmac_xpram_read
);
270 EXPORT_SYMBOL(pmac_xpram_write
);
271 #endif /* CONFIG_NVRAM */
272 EXPORT_SYMBOL(to_tm
);
274 EXPORT_SYMBOL_NOVERS(__ashrdi3
);
275 EXPORT_SYMBOL_NOVERS(__ashldi3
);
276 EXPORT_SYMBOL_NOVERS(__lshrdi3
);
277 EXPORT_SYMBOL_NOVERS(memcpy
);
278 EXPORT_SYMBOL_NOVERS(memset
);
279 EXPORT_SYMBOL_NOVERS(memmove
);
280 EXPORT_SYMBOL_NOVERS(memscan
);
281 EXPORT_SYMBOL_NOVERS(memcmp
);
286 EXPORT_SYMBOL(screen_info
);
289 EXPORT_SYMBOL(int_control
);
290 EXPORT_SYMBOL(timer_interrupt_intercept
);
291 EXPORT_SYMBOL(timer_interrupt
);
292 EXPORT_SYMBOL(do_IRQ_intercept
);
293 EXPORT_SYMBOL(irq_desc
);
294 void ppc_irq_dispatch_handler(struct pt_regs
*, int);
295 EXPORT_SYMBOL(ppc_irq_dispatch_handler
);
296 EXPORT_SYMBOL(tb_ticks_per_jiffy
);
297 EXPORT_SYMBOL(get_wchan
);
298 EXPORT_SYMBOL(console_drivers
);
299 EXPORT_SYMBOL(console_lock
);
303 EXPORT_SYMBOL(down_read_failed
);
304 EXPORT_SYMBOL(down_write_failed
);
306 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
307 extern void (*debugger
)(struct pt_regs
*regs
);
308 extern int (*debugger_bpt
)(struct pt_regs
*regs
);
309 extern int (*debugger_sstep
)(struct pt_regs
*regs
);
310 extern int (*debugger_iabr_match
)(struct pt_regs
*regs
);
311 extern int (*debugger_dabr_match
)(struct pt_regs
*regs
);
312 extern void (*debugger_fault_handler
)(struct pt_regs
*regs
);
314 EXPORT_SYMBOL(debugger
);
315 EXPORT_SYMBOL(debugger_bpt
);
316 EXPORT_SYMBOL(debugger_sstep
);
317 EXPORT_SYMBOL(debugger_iabr_match
);
318 EXPORT_SYMBOL(debugger_dabr_match
);
319 EXPORT_SYMBOL(debugger_fault_handler
);
322 EXPORT_SYMBOL(ret_to_user_hook
);
323 EXPORT_SYMBOL(do_softirq
);
324 EXPORT_SYMBOL(next_mmu_context
);
325 EXPORT_SYMBOL(set_context
);
326 EXPORT_SYMBOL(mmu_context_overflow
);
329 extern ulong mol_interface
[];
331 extern unsigned long Hash_mask
;
332 extern void (*ret_from_except
)(void);
333 extern struct task_struct
*last_task_used_altivec
;
334 EXPORT_SYMBOL_NOVERS(mol_interface
);
336 EXPORT_SYMBOL(Hash_mask
);
337 EXPORT_SYMBOL(handle_mm_fault
);
338 EXPORT_SYMBOL(last_task_used_math
);
339 EXPORT_SYMBOL(ret_from_except
);
340 #endif /* CONFIG_MOL */