blob: 307077f14936db7e12ea9a62dd13c538dc3b6c3a [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>
David Gibsonc5ff7002005-11-09 11:21:07 +110049#include <asm/signal.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
51#ifdef CONFIG_8xx
52#include <asm/commproc.h>
53#endif
54
Linus Torvalds1da177e2005-04-16 15:20:36 -070055extern void transfer_to_handler(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070056extern void do_IRQ(struct pt_regs *regs);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100057extern void machine_check_exception(struct pt_regs *regs);
58extern void alignment_exception(struct pt_regs *regs);
59extern void program_check_exception(struct pt_regs *regs);
60extern void single_step_exception(struct pt_regs *regs);
Linus Torvalds1da177e2005-04-16 15:20:36 -070061extern int pmac_newworld;
62extern int sys_sigreturn(struct pt_regs *regs);
63
64long long __ashrdi3(long long, int);
65long long __ashldi3(long long, int);
66long long __lshrdi3(long long, int);
67
68extern unsigned long mm_ptov (unsigned long paddr);
69
70EXPORT_SYMBOL(clear_pages);
71EXPORT_SYMBOL(clear_user_page);
72EXPORT_SYMBOL(do_signal);
Linus Torvalds1da177e2005-04-16 15:20:36 -070073EXPORT_SYMBOL(transfer_to_handler);
74EXPORT_SYMBOL(do_IRQ);
Stephen Rothwelldc1c1ca2005-10-01 18:43:42 +100075EXPORT_SYMBOL(machine_check_exception);
76EXPORT_SYMBOL(alignment_exception);
77EXPORT_SYMBOL(program_check_exception);
78EXPORT_SYMBOL(single_step_exception);
Linus Torvalds1da177e2005-04-16 15:20:36 -070079EXPORT_SYMBOL(sys_sigreturn);
80EXPORT_SYMBOL(ppc_n_lost_interrupts);
Linus Torvalds1da177e2005-04-16 15:20:36 -070081
82EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
83EXPORT_SYMBOL(DMA_MODE_READ);
84EXPORT_SYMBOL(DMA_MODE_WRITE);
85#if defined(CONFIG_PPC_PREP)
86EXPORT_SYMBOL(_prep_type);
87EXPORT_SYMBOL(ucSystemType);
88#endif
89
90#if !defined(__INLINE_BITOPS)
91EXPORT_SYMBOL(set_bit);
92EXPORT_SYMBOL(clear_bit);
93EXPORT_SYMBOL(change_bit);
94EXPORT_SYMBOL(test_and_set_bit);
95EXPORT_SYMBOL(test_and_clear_bit);
96EXPORT_SYMBOL(test_and_change_bit);
97#endif /* __INLINE_BITOPS */
98
99EXPORT_SYMBOL(strcpy);
100EXPORT_SYMBOL(strncpy);
101EXPORT_SYMBOL(strcat);
102EXPORT_SYMBOL(strncat);
103EXPORT_SYMBOL(strchr);
104EXPORT_SYMBOL(strrchr);
105EXPORT_SYMBOL(strpbrk);
106EXPORT_SYMBOL(strstr);
107EXPORT_SYMBOL(strlen);
108EXPORT_SYMBOL(strnlen);
109EXPORT_SYMBOL(strcmp);
110EXPORT_SYMBOL(strncmp);
111EXPORT_SYMBOL(strcasecmp);
112EXPORT_SYMBOL(__div64_32);
113
114EXPORT_SYMBOL(csum_partial);
115EXPORT_SYMBOL(csum_partial_copy_generic);
116EXPORT_SYMBOL(ip_fast_csum);
117EXPORT_SYMBOL(csum_tcpudp_magic);
118
119EXPORT_SYMBOL(__copy_tofrom_user);
120EXPORT_SYMBOL(__clear_user);
121EXPORT_SYMBOL(__strncpy_from_user);
122EXPORT_SYMBOL(__strnlen_user);
123
124/*
125EXPORT_SYMBOL(inb);
126EXPORT_SYMBOL(inw);
127EXPORT_SYMBOL(inl);
128EXPORT_SYMBOL(outb);
129EXPORT_SYMBOL(outw);
130EXPORT_SYMBOL(outl);
131EXPORT_SYMBOL(outsl);*/
132
Marcelo Tosatti7ed34632005-11-02 12:44:16 -0200133EXPORT_SYMBOL(__ide_mm_insl);
134EXPORT_SYMBOL(__ide_mm_outsw);
135EXPORT_SYMBOL(__ide_mm_insw);
136EXPORT_SYMBOL(__ide_mm_outsl);
137
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138EXPORT_SYMBOL(_insb);
139EXPORT_SYMBOL(_outsb);
140EXPORT_SYMBOL(_insw);
141EXPORT_SYMBOL(_outsw);
142EXPORT_SYMBOL(_insl);
143EXPORT_SYMBOL(_outsl);
144EXPORT_SYMBOL(_insw_ns);
145EXPORT_SYMBOL(_outsw_ns);
146EXPORT_SYMBOL(_insl_ns);
147EXPORT_SYMBOL(_outsl_ns);
148EXPORT_SYMBOL(iopa);
149EXPORT_SYMBOL(mm_ptov);
150EXPORT_SYMBOL(ioremap);
151#ifdef CONFIG_44x
152EXPORT_SYMBOL(ioremap64);
153#endif
154EXPORT_SYMBOL(__ioremap);
155EXPORT_SYMBOL(iounmap);
156EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
157
158#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
159EXPORT_SYMBOL(ppc_ide_md);
160#endif
161
162#ifdef CONFIG_PCI
163EXPORT_SYMBOL(isa_io_base);
164EXPORT_SYMBOL(isa_mem_base);
165EXPORT_SYMBOL(pci_dram_offset);
166EXPORT_SYMBOL(pci_alloc_consistent);
167EXPORT_SYMBOL(pci_free_consistent);
168EXPORT_SYMBOL(pci_bus_io_base);
169EXPORT_SYMBOL(pci_bus_io_base_phys);
170EXPORT_SYMBOL(pci_bus_mem_base_phys);
171EXPORT_SYMBOL(pci_bus_to_hose);
172EXPORT_SYMBOL(pci_resource_to_bus);
173EXPORT_SYMBOL(pci_phys_to_bus);
174EXPORT_SYMBOL(pci_bus_to_phys);
175#endif /* CONFIG_PCI */
176
177#ifdef CONFIG_NOT_COHERENT_CACHE
David Gibson26ef5c02005-11-10 11:50:16 +1100178extern void flush_dcache_all(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700179EXPORT_SYMBOL(flush_dcache_all);
180#endif
181
182EXPORT_SYMBOL(start_thread);
183EXPORT_SYMBOL(kernel_thread);
184
185EXPORT_SYMBOL(flush_instruction_cache);
186EXPORT_SYMBOL(giveup_fpu);
187EXPORT_SYMBOL(flush_icache_range);
188EXPORT_SYMBOL(flush_dcache_range);
189EXPORT_SYMBOL(flush_icache_user_range);
190EXPORT_SYMBOL(flush_dcache_page);
191EXPORT_SYMBOL(flush_tlb_kernel_range);
192EXPORT_SYMBOL(flush_tlb_page);
193EXPORT_SYMBOL(_tlbie);
194#ifdef CONFIG_ALTIVEC
195EXPORT_SYMBOL(last_task_used_altivec);
196EXPORT_SYMBOL(giveup_altivec);
197#endif /* CONFIG_ALTIVEC */
198#ifdef CONFIG_SPE
199EXPORT_SYMBOL(last_task_used_spe);
200EXPORT_SYMBOL(giveup_spe);
201#endif /* CONFIG_SPE */
202#ifdef CONFIG_SMP
203EXPORT_SYMBOL(smp_call_function);
204EXPORT_SYMBOL(smp_hw_index);
205#endif
206
207EXPORT_SYMBOL(ppc_md);
208
209#ifdef CONFIG_ADB
210EXPORT_SYMBOL(adb_request);
211EXPORT_SYMBOL(adb_register);
212EXPORT_SYMBOL(adb_unregister);
213EXPORT_SYMBOL(adb_poll);
214EXPORT_SYMBOL(adb_try_handler_change);
215#endif /* CONFIG_ADB */
216#ifdef CONFIG_ADB_CUDA
217EXPORT_SYMBOL(cuda_request);
218EXPORT_SYMBOL(cuda_poll);
219#endif /* CONFIG_ADB_CUDA */
220#ifdef CONFIG_PPC_MULTIPLATFORM
221EXPORT_SYMBOL(_machine);
222#endif
223#ifdef CONFIG_PPC_PMAC
224EXPORT_SYMBOL(sys_ctrler);
225EXPORT_SYMBOL(pmac_newworld);
226#endif
227#ifdef CONFIG_PPC_OF
228EXPORT_SYMBOL(find_devices);
229EXPORT_SYMBOL(find_type_devices);
230EXPORT_SYMBOL(find_compatible_devices);
231EXPORT_SYMBOL(find_path_device);
232EXPORT_SYMBOL(device_is_compatible);
233EXPORT_SYMBOL(machine_is_compatible);
234EXPORT_SYMBOL(find_all_nodes);
235EXPORT_SYMBOL(get_property);
236EXPORT_SYMBOL(request_OF_resource);
237EXPORT_SYMBOL(release_OF_resource);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700238EXPORT_SYMBOL(of_find_node_by_name);
239EXPORT_SYMBOL(of_find_node_by_type);
240EXPORT_SYMBOL(of_find_compatible_node);
241EXPORT_SYMBOL(of_find_node_by_path);
242EXPORT_SYMBOL(of_find_all_nodes);
243EXPORT_SYMBOL(of_get_parent);
244EXPORT_SYMBOL(of_get_next_child);
245EXPORT_SYMBOL(of_node_get);
246EXPORT_SYMBOL(of_node_put);
247#endif /* CONFIG_PPC_OF */
248#if defined(CONFIG_BOOTX_TEXT)
249EXPORT_SYMBOL(btext_update_display);
250#endif
251#if defined(CONFIG_SCSI) && defined(CONFIG_PPC_PMAC)
252EXPORT_SYMBOL(note_scsi_host);
253#endif
254#ifdef CONFIG_VT
255EXPORT_SYMBOL(kd_mksound);
256#endif
257EXPORT_SYMBOL(to_tm);
258
259EXPORT_SYMBOL(pm_power_off);
260
261EXPORT_SYMBOL(__ashrdi3);
262EXPORT_SYMBOL(__ashldi3);
263EXPORT_SYMBOL(__lshrdi3);
264EXPORT_SYMBOL(memcpy);
Eugene Surovegine8834802005-09-03 15:55:54 -0700265EXPORT_SYMBOL(cacheable_memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700266EXPORT_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);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277EXPORT_SYMBOL(timer_interrupt);
278EXPORT_SYMBOL(irq_desc);
279EXPORT_SYMBOL(tb_ticks_per_jiffy);
280EXPORT_SYMBOL(get_wchan);
281EXPORT_SYMBOL(console_drivers);
282#ifdef CONFIG_XMON
283EXPORT_SYMBOL(xmon);
284EXPORT_SYMBOL(xmon_printf);
285#endif
286EXPORT_SYMBOL(__up);
287EXPORT_SYMBOL(__down);
288EXPORT_SYMBOL(__down_interruptible);
289
290#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
291extern void (*debugger)(struct pt_regs *regs);
292extern int (*debugger_bpt)(struct pt_regs *regs);
293extern int (*debugger_sstep)(struct pt_regs *regs);
294extern int (*debugger_iabr_match)(struct pt_regs *regs);
295extern int (*debugger_dabr_match)(struct pt_regs *regs);
296extern void (*debugger_fault_handler)(struct pt_regs *regs);
297
298EXPORT_SYMBOL(debugger);
299EXPORT_SYMBOL(debugger_bpt);
300EXPORT_SYMBOL(debugger_sstep);
301EXPORT_SYMBOL(debugger_iabr_match);
302EXPORT_SYMBOL(debugger_dabr_match);
303EXPORT_SYMBOL(debugger_fault_handler);
304#endif
305
306#ifdef CONFIG_8xx
307EXPORT_SYMBOL(cpm_install_handler);
308EXPORT_SYMBOL(cpm_free_handler);
309#endif /* CONFIG_8xx */
310#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
311 defined(CONFIG_83xx)
312EXPORT_SYMBOL(__res);
313#endif
314
315EXPORT_SYMBOL(next_mmu_context);
316EXPORT_SYMBOL(set_context);
Linus Torvaldsd8588ee2005-08-06 09:44:37 -0700317EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700318EXPORT_SYMBOL(disarm_decr);
319#ifdef CONFIG_PPC_STD_MMU
320extern long mol_trampoline;
321EXPORT_SYMBOL(mol_trampoline); /* For MOL */
322EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
323#ifdef CONFIG_SMP
324extern int mmu_hash_lock;
325EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
326#endif /* CONFIG_SMP */
327extern long *intercept_table;
328EXPORT_SYMBOL(intercept_table);
329#endif /* CONFIG_PPC_STD_MMU */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
331EXPORT_SYMBOL(__mtdcr);
332EXPORT_SYMBOL(__mfdcr);
333#endif