blob: e7d40cc6c1b6fb266a5ab2fe49e72f7046193fc1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#include <linux/config.h>
2#include <linux/module.h>
3#include <linux/threads.h>
4#include <linux/smp.h>
5#include <linux/sched.h>
6#include <linux/elfcore.h>
7#include <linux/string.h>
8#include <linux/interrupt.h>
9#include <linux/tty.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>
17#include <linux/pm.h>
18#include <linux/bitops.h>
19
20#include <asm/page.h>
21#include <asm/semaphore.h>
22#include <asm/processor.h>
23#include <asm/uaccess.h>
24#include <asm/io.h>
25#include <asm/ide.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>
33#include <asm/prom.h>
34#include <asm/system.h>
35#include <asm/pci-bridge.h>
36#include <asm/irq.h>
37#include <asm/pmac_feature.h>
38#include <asm/dma.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>
44#include <asm/time.h>
45#include <asm/cputable.h>
46#include <asm/btext.h>
47#include <asm/div64.h>
48#include <asm/xmon.h>
49
50#ifdef CONFIG_8xx
51#include <asm/commproc.h>
52#endif
53
54/* Tell string.h we don't want memcpy etc. as cpp defines */
55#define EXPORT_SYMTAB_STROPS
56
57extern void transfer_to_handler(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070058extern void do_IRQ(struct pt_regs *regs);
59extern void MachineCheckException(struct pt_regs *regs);
60extern void AlignmentException(struct pt_regs *regs);
61extern void ProgramCheckException(struct pt_regs *regs);
62extern void SingleStepException(struct pt_regs *regs);
63extern int do_signal(sigset_t *, struct pt_regs *);
64extern int pmac_newworld;
65extern int sys_sigreturn(struct pt_regs *regs);
66
67long long __ashrdi3(long long, int);
68long long __ashldi3(long long, int);
69long long __lshrdi3(long long, int);
70
71extern unsigned long mm_ptov (unsigned long paddr);
72
73EXPORT_SYMBOL(clear_pages);
74EXPORT_SYMBOL(clear_user_page);
75EXPORT_SYMBOL(do_signal);
Linus Torvalds1da177e2005-04-16 15:20:36 -070076EXPORT_SYMBOL(transfer_to_handler);
77EXPORT_SYMBOL(do_IRQ);
78EXPORT_SYMBOL(MachineCheckException);
79EXPORT_SYMBOL(AlignmentException);
80EXPORT_SYMBOL(ProgramCheckException);
81EXPORT_SYMBOL(SingleStepException);
82EXPORT_SYMBOL(sys_sigreturn);
83EXPORT_SYMBOL(ppc_n_lost_interrupts);
84EXPORT_SYMBOL(ppc_lost_interrupts);
85
86EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
87EXPORT_SYMBOL(DMA_MODE_READ);
88EXPORT_SYMBOL(DMA_MODE_WRITE);
89#if defined(CONFIG_PPC_PREP)
90EXPORT_SYMBOL(_prep_type);
91EXPORT_SYMBOL(ucSystemType);
92#endif
93
94#if !defined(__INLINE_BITOPS)
95EXPORT_SYMBOL(set_bit);
96EXPORT_SYMBOL(clear_bit);
97EXPORT_SYMBOL(change_bit);
98EXPORT_SYMBOL(test_and_set_bit);
99EXPORT_SYMBOL(test_and_clear_bit);
100EXPORT_SYMBOL(test_and_change_bit);
101#endif /* __INLINE_BITOPS */
102
103EXPORT_SYMBOL(strcpy);
104EXPORT_SYMBOL(strncpy);
105EXPORT_SYMBOL(strcat);
106EXPORT_SYMBOL(strncat);
107EXPORT_SYMBOL(strchr);
108EXPORT_SYMBOL(strrchr);
109EXPORT_SYMBOL(strpbrk);
110EXPORT_SYMBOL(strstr);
111EXPORT_SYMBOL(strlen);
112EXPORT_SYMBOL(strnlen);
113EXPORT_SYMBOL(strcmp);
114EXPORT_SYMBOL(strncmp);
115EXPORT_SYMBOL(strcasecmp);
116EXPORT_SYMBOL(__div64_32);
117
118EXPORT_SYMBOL(csum_partial);
119EXPORT_SYMBOL(csum_partial_copy_generic);
120EXPORT_SYMBOL(ip_fast_csum);
121EXPORT_SYMBOL(csum_tcpudp_magic);
122
123EXPORT_SYMBOL(__copy_tofrom_user);
124EXPORT_SYMBOL(__clear_user);
125EXPORT_SYMBOL(__strncpy_from_user);
126EXPORT_SYMBOL(__strnlen_user);
127
128/*
129EXPORT_SYMBOL(inb);
130EXPORT_SYMBOL(inw);
131EXPORT_SYMBOL(inl);
132EXPORT_SYMBOL(outb);
133EXPORT_SYMBOL(outw);
134EXPORT_SYMBOL(outl);
135EXPORT_SYMBOL(outsl);*/
136
137EXPORT_SYMBOL(_insb);
138EXPORT_SYMBOL(_outsb);
139EXPORT_SYMBOL(_insw);
140EXPORT_SYMBOL(_outsw);
141EXPORT_SYMBOL(_insl);
142EXPORT_SYMBOL(_outsl);
143EXPORT_SYMBOL(_insw_ns);
144EXPORT_SYMBOL(_outsw_ns);
145EXPORT_SYMBOL(_insl_ns);
146EXPORT_SYMBOL(_outsl_ns);
147EXPORT_SYMBOL(iopa);
148EXPORT_SYMBOL(mm_ptov);
149EXPORT_SYMBOL(ioremap);
150#ifdef CONFIG_44x
151EXPORT_SYMBOL(ioremap64);
152#endif
153EXPORT_SYMBOL(__ioremap);
154EXPORT_SYMBOL(iounmap);
155EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
156
157#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
158EXPORT_SYMBOL(ppc_ide_md);
159#endif
160
161#ifdef CONFIG_PCI
162EXPORT_SYMBOL(isa_io_base);
163EXPORT_SYMBOL(isa_mem_base);
164EXPORT_SYMBOL(pci_dram_offset);
165EXPORT_SYMBOL(pci_alloc_consistent);
166EXPORT_SYMBOL(pci_free_consistent);
167EXPORT_SYMBOL(pci_bus_io_base);
168EXPORT_SYMBOL(pci_bus_io_base_phys);
169EXPORT_SYMBOL(pci_bus_mem_base_phys);
170EXPORT_SYMBOL(pci_bus_to_hose);
171EXPORT_SYMBOL(pci_resource_to_bus);
172EXPORT_SYMBOL(pci_phys_to_bus);
173EXPORT_SYMBOL(pci_bus_to_phys);
174#endif /* CONFIG_PCI */
175
176#ifdef CONFIG_NOT_COHERENT_CACHE
177EXPORT_SYMBOL(flush_dcache_all);
178#endif
179
180EXPORT_SYMBOL(start_thread);
181EXPORT_SYMBOL(kernel_thread);
182
183EXPORT_SYMBOL(flush_instruction_cache);
184EXPORT_SYMBOL(giveup_fpu);
185EXPORT_SYMBOL(flush_icache_range);
186EXPORT_SYMBOL(flush_dcache_range);
187EXPORT_SYMBOL(flush_icache_user_range);
188EXPORT_SYMBOL(flush_dcache_page);
189EXPORT_SYMBOL(flush_tlb_kernel_range);
190EXPORT_SYMBOL(flush_tlb_page);
191EXPORT_SYMBOL(_tlbie);
192#ifdef CONFIG_ALTIVEC
193EXPORT_SYMBOL(last_task_used_altivec);
194EXPORT_SYMBOL(giveup_altivec);
195#endif /* CONFIG_ALTIVEC */
196#ifdef CONFIG_SPE
197EXPORT_SYMBOL(last_task_used_spe);
198EXPORT_SYMBOL(giveup_spe);
199#endif /* CONFIG_SPE */
200#ifdef CONFIG_SMP
201EXPORT_SYMBOL(smp_call_function);
202EXPORT_SYMBOL(smp_hw_index);
203#endif
204
205EXPORT_SYMBOL(ppc_md);
206
207#ifdef CONFIG_ADB
208EXPORT_SYMBOL(adb_request);
209EXPORT_SYMBOL(adb_register);
210EXPORT_SYMBOL(adb_unregister);
211EXPORT_SYMBOL(adb_poll);
212EXPORT_SYMBOL(adb_try_handler_change);
213#endif /* CONFIG_ADB */
214#ifdef CONFIG_ADB_CUDA
215EXPORT_SYMBOL(cuda_request);
216EXPORT_SYMBOL(cuda_poll);
217#endif /* CONFIG_ADB_CUDA */
218#ifdef CONFIG_PPC_MULTIPLATFORM
219EXPORT_SYMBOL(_machine);
220#endif
221#ifdef CONFIG_PPC_PMAC
222EXPORT_SYMBOL(sys_ctrler);
223EXPORT_SYMBOL(pmac_newworld);
224#endif
225#ifdef CONFIG_PPC_OF
226EXPORT_SYMBOL(find_devices);
227EXPORT_SYMBOL(find_type_devices);
228EXPORT_SYMBOL(find_compatible_devices);
229EXPORT_SYMBOL(find_path_device);
230EXPORT_SYMBOL(device_is_compatible);
231EXPORT_SYMBOL(machine_is_compatible);
232EXPORT_SYMBOL(find_all_nodes);
233EXPORT_SYMBOL(get_property);
234EXPORT_SYMBOL(request_OF_resource);
235EXPORT_SYMBOL(release_OF_resource);
236EXPORT_SYMBOL(pci_busdev_to_OF_node);
237EXPORT_SYMBOL(pci_device_to_OF_node);
238EXPORT_SYMBOL(pci_device_from_OF_node);
239EXPORT_SYMBOL(of_find_node_by_name);
240EXPORT_SYMBOL(of_find_node_by_type);
241EXPORT_SYMBOL(of_find_compatible_node);
242EXPORT_SYMBOL(of_find_node_by_path);
243EXPORT_SYMBOL(of_find_all_nodes);
244EXPORT_SYMBOL(of_get_parent);
245EXPORT_SYMBOL(of_get_next_child);
246EXPORT_SYMBOL(of_node_get);
247EXPORT_SYMBOL(of_node_put);
248#endif /* CONFIG_PPC_OF */
249#if defined(CONFIG_BOOTX_TEXT)
250EXPORT_SYMBOL(btext_update_display);
251#endif
252#if defined(CONFIG_SCSI) && defined(CONFIG_PPC_PMAC)
253EXPORT_SYMBOL(note_scsi_host);
254#endif
255#ifdef CONFIG_VT
256EXPORT_SYMBOL(kd_mksound);
257#endif
258EXPORT_SYMBOL(to_tm);
259
260EXPORT_SYMBOL(pm_power_off);
261
262EXPORT_SYMBOL(__ashrdi3);
263EXPORT_SYMBOL(__ashldi3);
264EXPORT_SYMBOL(__lshrdi3);
265EXPORT_SYMBOL(memcpy);
266EXPORT_SYMBOL(memset);
267EXPORT_SYMBOL(memmove);
268EXPORT_SYMBOL(memscan);
269EXPORT_SYMBOL(memcmp);
270EXPORT_SYMBOL(memchr);
271
272#if defined(CONFIG_FB_VGA16_MODULE)
273EXPORT_SYMBOL(screen_info);
274#endif
275
276EXPORT_SYMBOL(__delay);
277#ifndef INLINE_IRQS
278EXPORT_SYMBOL(local_irq_enable);
279EXPORT_SYMBOL(local_irq_enable_end);
280EXPORT_SYMBOL(local_irq_disable);
281EXPORT_SYMBOL(local_irq_disable_end);
282EXPORT_SYMBOL(local_save_flags_ptr);
283EXPORT_SYMBOL(local_save_flags_ptr_end);
284EXPORT_SYMBOL(local_irq_restore);
285EXPORT_SYMBOL(local_irq_restore_end);
286#endif
287EXPORT_SYMBOL(timer_interrupt);
288EXPORT_SYMBOL(irq_desc);
289EXPORT_SYMBOL(tb_ticks_per_jiffy);
290EXPORT_SYMBOL(get_wchan);
291EXPORT_SYMBOL(console_drivers);
292#ifdef CONFIG_XMON
293EXPORT_SYMBOL(xmon);
294EXPORT_SYMBOL(xmon_printf);
295#endif
296EXPORT_SYMBOL(__up);
297EXPORT_SYMBOL(__down);
298EXPORT_SYMBOL(__down_interruptible);
299
300#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
301extern void (*debugger)(struct pt_regs *regs);
302extern int (*debugger_bpt)(struct pt_regs *regs);
303extern int (*debugger_sstep)(struct pt_regs *regs);
304extern int (*debugger_iabr_match)(struct pt_regs *regs);
305extern int (*debugger_dabr_match)(struct pt_regs *regs);
306extern void (*debugger_fault_handler)(struct pt_regs *regs);
307
308EXPORT_SYMBOL(debugger);
309EXPORT_SYMBOL(debugger_bpt);
310EXPORT_SYMBOL(debugger_sstep);
311EXPORT_SYMBOL(debugger_iabr_match);
312EXPORT_SYMBOL(debugger_dabr_match);
313EXPORT_SYMBOL(debugger_fault_handler);
314#endif
315
316#ifdef CONFIG_8xx
317EXPORT_SYMBOL(cpm_install_handler);
318EXPORT_SYMBOL(cpm_free_handler);
319#endif /* CONFIG_8xx */
320#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
321 defined(CONFIG_83xx)
322EXPORT_SYMBOL(__res);
323#endif
324
325EXPORT_SYMBOL(next_mmu_context);
326EXPORT_SYMBOL(set_context);
Linus Torvaldsd8588ee2005-08-06 09:44:37 -0700327EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328EXPORT_SYMBOL(disarm_decr);
329#ifdef CONFIG_PPC_STD_MMU
330extern long mol_trampoline;
331EXPORT_SYMBOL(mol_trampoline); /* For MOL */
332EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
333#ifdef CONFIG_SMP
334extern int mmu_hash_lock;
335EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
336#endif /* CONFIG_SMP */
337extern long *intercept_table;
338EXPORT_SYMBOL(intercept_table);
339#endif /* CONFIG_PPC_STD_MMU */
340EXPORT_SYMBOL(cur_cpu_spec);
341#ifdef CONFIG_PPC_PMAC
342extern unsigned long agp_special_page;
343EXPORT_SYMBOL(agp_special_page);
344#endif
345#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
346EXPORT_SYMBOL(__mtdcr);
347EXPORT_SYMBOL(__mfdcr);
348#endif