powerpc: Merge time.c and asm/time.h.
[pandora-kernel.git] / arch / powerpc / kernel / ppc_ksyms.c
1 #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 #ifdef CONFIG_PPC32
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 do_signal(sigset_t *, struct pt_regs *);
62 extern int pmac_newworld;
63 extern int sys_sigreturn(struct pt_regs *regs);
64
65 EXPORT_SYMBOL(clear_pages);
66 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
67 EXPORT_SYMBOL(DMA_MODE_READ);
68 EXPORT_SYMBOL(DMA_MODE_WRITE);
69 EXPORT_SYMBOL(__div64_32);
70
71 EXPORT_SYMBOL(do_signal);
72 EXPORT_SYMBOL(transfer_to_handler);
73 EXPORT_SYMBOL(do_IRQ);
74 EXPORT_SYMBOL(machine_check_exception);
75 EXPORT_SYMBOL(alignment_exception);
76 EXPORT_SYMBOL(program_check_exception);
77 EXPORT_SYMBOL(single_step_exception);
78 EXPORT_SYMBOL(sys_sigreturn);
79 #endif
80
81 #if defined(CONFIG_PPC_PREP)
82 EXPORT_SYMBOL(_prep_type);
83 EXPORT_SYMBOL(ucSystemType);
84 #endif
85
86 #if !defined(__INLINE_BITOPS)
87 EXPORT_SYMBOL(set_bit);
88 EXPORT_SYMBOL(clear_bit);
89 EXPORT_SYMBOL(change_bit);
90 EXPORT_SYMBOL(test_and_set_bit);
91 EXPORT_SYMBOL(test_and_clear_bit);
92 EXPORT_SYMBOL(test_and_change_bit);
93 #endif /* __INLINE_BITOPS */
94
95 EXPORT_SYMBOL(strcpy);
96 EXPORT_SYMBOL(strncpy);
97 EXPORT_SYMBOL(strcat);
98 EXPORT_SYMBOL(strncat);
99 EXPORT_SYMBOL(strchr);
100 EXPORT_SYMBOL(strrchr);
101 EXPORT_SYMBOL(strpbrk);
102 EXPORT_SYMBOL(strstr);
103 EXPORT_SYMBOL(strlen);
104 EXPORT_SYMBOL(strnlen);
105 EXPORT_SYMBOL(strcmp);
106 EXPORT_SYMBOL(strncmp);
107 EXPORT_SYMBOL(strcasecmp);
108
109 EXPORT_SYMBOL(csum_partial);
110 EXPORT_SYMBOL(csum_partial_copy_generic);
111 EXPORT_SYMBOL(ip_fast_csum);
112 EXPORT_SYMBOL(csum_tcpudp_magic);
113
114 EXPORT_SYMBOL(__copy_tofrom_user);
115 EXPORT_SYMBOL(__clear_user);
116 EXPORT_SYMBOL(__strncpy_from_user);
117 EXPORT_SYMBOL(__strnlen_user);
118
119 EXPORT_SYMBOL(_insb);
120 EXPORT_SYMBOL(_outsb);
121 EXPORT_SYMBOL(_insw);
122 EXPORT_SYMBOL(_outsw);
123 EXPORT_SYMBOL(_insl);
124 EXPORT_SYMBOL(_outsl);
125 EXPORT_SYMBOL(_insw_ns);
126 EXPORT_SYMBOL(_outsw_ns);
127 EXPORT_SYMBOL(_insl_ns);
128 EXPORT_SYMBOL(_outsl_ns);
129 EXPORT_SYMBOL(ioremap);
130 #ifdef CONFIG_44x
131 EXPORT_SYMBOL(ioremap64);
132 #endif
133 EXPORT_SYMBOL(__ioremap);
134 EXPORT_SYMBOL(iounmap);
135 #ifdef CONFIG_PPC32
136 EXPORT_SYMBOL(ioremap_bot);     /* aka VMALLOC_END */
137 #endif
138
139 #if defined(CONFIG_PPC32) && (defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE))
140 EXPORT_SYMBOL(ppc_ide_md);
141 #endif
142
143 #if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
144 EXPORT_SYMBOL(isa_io_base);
145 EXPORT_SYMBOL(isa_mem_base);
146 EXPORT_SYMBOL(pci_dram_offset);
147 EXPORT_SYMBOL(pci_alloc_consistent);
148 EXPORT_SYMBOL(pci_free_consistent);
149 EXPORT_SYMBOL(pci_bus_io_base);
150 EXPORT_SYMBOL(pci_bus_io_base_phys);
151 EXPORT_SYMBOL(pci_bus_mem_base_phys);
152 EXPORT_SYMBOL(pci_bus_to_hose);
153 EXPORT_SYMBOL(pci_resource_to_bus);
154 EXPORT_SYMBOL(pci_phys_to_bus);
155 EXPORT_SYMBOL(pci_bus_to_phys);
156 #endif /* CONFIG_PCI */
157
158 #ifdef CONFIG_NOT_COHERENT_CACHE
159 EXPORT_SYMBOL(flush_dcache_all);
160 #endif
161
162 EXPORT_SYMBOL(start_thread);
163 EXPORT_SYMBOL(kernel_thread);
164
165 EXPORT_SYMBOL(giveup_fpu);
166 #ifdef CONFIG_ALTIVEC
167 EXPORT_SYMBOL(giveup_altivec);
168 #endif /* CONFIG_ALTIVEC */
169 #ifdef CONFIG_SPE
170 EXPORT_SYMBOL(giveup_spe);
171 #endif /* CONFIG_SPE */
172
173 #ifdef CONFIG_PPC64
174 EXPORT_SYMBOL(__flush_icache_range);
175 #else
176 EXPORT_SYMBOL(flush_instruction_cache);
177 EXPORT_SYMBOL(flush_icache_range);
178 EXPORT_SYMBOL(flush_tlb_kernel_range);
179 EXPORT_SYMBOL(flush_tlb_page);
180 EXPORT_SYMBOL(_tlbie);
181 #endif
182 EXPORT_SYMBOL(flush_dcache_range);
183
184 #ifdef CONFIG_SMP
185 EXPORT_SYMBOL(smp_call_function);
186 #ifdef CONFIG_PPC32
187 EXPORT_SYMBOL(smp_hw_index);
188 #endif
189 #endif
190
191 #ifdef CONFIG_ADB
192 EXPORT_SYMBOL(adb_request);
193 EXPORT_SYMBOL(adb_register);
194 EXPORT_SYMBOL(adb_unregister);
195 EXPORT_SYMBOL(adb_poll);
196 EXPORT_SYMBOL(adb_try_handler_change);
197 #endif /* CONFIG_ADB */
198 #ifdef CONFIG_ADB_CUDA
199 EXPORT_SYMBOL(cuda_request);
200 EXPORT_SYMBOL(cuda_poll);
201 #endif /* CONFIG_ADB_CUDA */
202 #if defined(CONFIG_PPC_MULTIPLATFORM) && defined(CONFIG_PPC32)
203 EXPORT_SYMBOL(_machine);
204 #endif
205 #ifdef CONFIG_PPC_PMAC
206 EXPORT_SYMBOL(sys_ctrler);
207 #endif
208 #ifdef CONFIG_VT
209 EXPORT_SYMBOL(kd_mksound);
210 #endif
211 EXPORT_SYMBOL(to_tm);
212
213 #ifdef CONFIG_PPC32
214 long long __ashrdi3(long long, int);
215 long long __ashldi3(long long, int);
216 long long __lshrdi3(long long, int);
217 EXPORT_SYMBOL(__ashrdi3);
218 EXPORT_SYMBOL(__ashldi3);
219 EXPORT_SYMBOL(__lshrdi3);
220 #endif
221
222 EXPORT_SYMBOL(memcpy);
223 EXPORT_SYMBOL(memset);
224 EXPORT_SYMBOL(memmove);
225 EXPORT_SYMBOL(memscan);
226 EXPORT_SYMBOL(memcmp);
227 EXPORT_SYMBOL(memchr);
228
229 #if defined(CONFIG_FB_VGA16_MODULE)
230 EXPORT_SYMBOL(screen_info);
231 #endif
232
233 #ifdef CONFIG_PPC32
234 EXPORT_SYMBOL(pm_power_off);
235 EXPORT_SYMBOL(__delay);
236 EXPORT_SYMBOL(timer_interrupt);
237 EXPORT_SYMBOL(irq_desc);
238 EXPORT_SYMBOL(tb_ticks_per_jiffy);
239 EXPORT_SYMBOL(console_drivers);
240 EXPORT_SYMBOL(cacheable_memcpy);
241 #endif
242
243 #ifdef CONFIG_XMON
244 EXPORT_SYMBOL(xmon);
245 EXPORT_SYMBOL(xmon_printf);
246 #endif
247 EXPORT_SYMBOL(__up);
248 EXPORT_SYMBOL(__down);
249 EXPORT_SYMBOL(__down_interruptible);
250
251 #ifdef  CONFIG_8xx
252 EXPORT_SYMBOL(cpm_install_handler);
253 EXPORT_SYMBOL(cpm_free_handler);
254 #endif /* CONFIG_8xx */
255 #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
256         defined(CONFIG_83xx)
257 EXPORT_SYMBOL(__res);
258 #endif
259
260 #ifdef CONFIG_PPC32
261 EXPORT_SYMBOL(next_mmu_context);
262 EXPORT_SYMBOL(set_context);
263 #endif
264
265 #ifdef CONFIG_PPC_STD_MMU_32
266 extern long mol_trampoline;
267 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
268 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
269 EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */
270 #ifdef CONFIG_SMP
271 extern int mmu_hash_lock;
272 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
273 #endif /* CONFIG_SMP */
274 extern long *intercept_table;
275 EXPORT_SYMBOL(intercept_table);
276 #endif /* CONFIG_PPC_STD_MMU_32 */
277 #ifdef CONFIG_PPC_PMAC
278 extern unsigned long agp_special_page;
279 EXPORT_SYMBOL(agp_special_page);
280 #endif
281 #if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
282 EXPORT_SYMBOL(__mtdcr);
283 EXPORT_SYMBOL(__mfdcr);
284 #endif