Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #include <linux/module.h> |
| 2 | #include <linux/threads.h> |
| 3 | #include <linux/smp.h> |
| 4 | #include <linux/sched.h> |
| 5 | #include <linux/elfcore.h> |
| 6 | #include <linux/string.h> |
| 7 | #include <linux/interrupt.h> |
Jon Smirl | 894673e | 2006-07-10 04:44:13 -0700 | [diff] [blame] | 8 | #include <linux/screen_info.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #include <linux/vt_kern.h> |
| 10 | #include <linux/nvram.h> |
| 11 | #include <linux/console.h> |
| 12 | #include <linux/irq.h> |
| 13 | #include <linux/pci.h> |
| 14 | #include <linux/delay.h> |
| 15 | #include <linux/ide.h> |
| 16 | #include <linux/pm.h> |
| 17 | #include <linux/bitops.h> |
| 18 | |
| 19 | #include <asm/page.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #include <asm/processor.h> |
| 21 | #include <asm/uaccess.h> |
| 22 | #include <asm/io.h> |
| 23 | #include <asm/ide.h> |
| 24 | #include <asm/atomic.h> |
| 25 | #include <asm/checksum.h> |
| 26 | #include <asm/pgtable.h> |
| 27 | #include <asm/tlbflush.h> |
| 28 | #include <linux/adb.h> |
| 29 | #include <linux/cuda.h> |
| 30 | #include <linux/pmu.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #include <asm/system.h> |
| 32 | #include <asm/pci-bridge.h> |
| 33 | #include <asm/irq.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | #include <asm/dma.h> |
| 35 | #include <asm/machdep.h> |
| 36 | #include <asm/hw_irq.h> |
| 37 | #include <asm/nvram.h> |
| 38 | #include <asm/mmu_context.h> |
| 39 | #include <asm/backlight.h> |
| 40 | #include <asm/time.h> |
| 41 | #include <asm/cputable.h> |
| 42 | #include <asm/btext.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | #include <asm/xmon.h> |
David Gibson | c5ff700 | 2005-11-09 11:21:07 +1100 | [diff] [blame] | 44 | #include <asm/signal.h> |
David Gibson | a2c7021 | 2007-02-06 11:48:28 +1100 | [diff] [blame] | 45 | #include <asm/dcr.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
| 47 | #ifdef CONFIG_8xx |
| 48 | #include <asm/commproc.h> |
| 49 | #endif |
| 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | extern void transfer_to_handler(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | extern void do_IRQ(struct pt_regs *regs); |
Stephen Rothwell | dc1c1ca | 2005-10-01 18:43:42 +1000 | [diff] [blame] | 53 | extern void machine_check_exception(struct pt_regs *regs); |
| 54 | extern void alignment_exception(struct pt_regs *regs); |
| 55 | extern void program_check_exception(struct pt_regs *regs); |
| 56 | extern void single_step_exception(struct pt_regs *regs); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | extern int sys_sigreturn(struct pt_regs *regs); |
| 58 | |
| 59 | long long __ashrdi3(long long, int); |
| 60 | long long __ashldi3(long long, int); |
| 61 | long long __lshrdi3(long long, int); |
| 62 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | EXPORT_SYMBOL(clear_pages); |
| 64 | EXPORT_SYMBOL(clear_user_page); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | EXPORT_SYMBOL(transfer_to_handler); |
| 66 | EXPORT_SYMBOL(do_IRQ); |
Stephen Rothwell | dc1c1ca | 2005-10-01 18:43:42 +1000 | [diff] [blame] | 67 | EXPORT_SYMBOL(machine_check_exception); |
| 68 | EXPORT_SYMBOL(alignment_exception); |
| 69 | EXPORT_SYMBOL(program_check_exception); |
| 70 | EXPORT_SYMBOL(single_step_exception); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | EXPORT_SYMBOL(sys_sigreturn); |
| 72 | EXPORT_SYMBOL(ppc_n_lost_interrupts); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | |
| 74 | EXPORT_SYMBOL(ISA_DMA_THRESHOLD); |
| 75 | EXPORT_SYMBOL(DMA_MODE_READ); |
| 76 | EXPORT_SYMBOL(DMA_MODE_WRITE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | |
| 78 | #if !defined(__INLINE_BITOPS) |
| 79 | EXPORT_SYMBOL(set_bit); |
| 80 | EXPORT_SYMBOL(clear_bit); |
| 81 | EXPORT_SYMBOL(change_bit); |
| 82 | EXPORT_SYMBOL(test_and_set_bit); |
| 83 | EXPORT_SYMBOL(test_and_clear_bit); |
| 84 | EXPORT_SYMBOL(test_and_change_bit); |
| 85 | #endif /* __INLINE_BITOPS */ |
| 86 | |
| 87 | EXPORT_SYMBOL(strcpy); |
| 88 | EXPORT_SYMBOL(strncpy); |
| 89 | EXPORT_SYMBOL(strcat); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | EXPORT_SYMBOL(strlen); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | EXPORT_SYMBOL(strcmp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | |
| 93 | EXPORT_SYMBOL(csum_partial); |
| 94 | EXPORT_SYMBOL(csum_partial_copy_generic); |
| 95 | EXPORT_SYMBOL(ip_fast_csum); |
| 96 | EXPORT_SYMBOL(csum_tcpudp_magic); |
| 97 | |
| 98 | EXPORT_SYMBOL(__copy_tofrom_user); |
| 99 | EXPORT_SYMBOL(__clear_user); |
| 100 | EXPORT_SYMBOL(__strncpy_from_user); |
| 101 | EXPORT_SYMBOL(__strnlen_user); |
| 102 | |
| 103 | /* |
| 104 | EXPORT_SYMBOL(inb); |
| 105 | EXPORT_SYMBOL(inw); |
| 106 | EXPORT_SYMBOL(inl); |
| 107 | EXPORT_SYMBOL(outb); |
| 108 | EXPORT_SYMBOL(outw); |
| 109 | EXPORT_SYMBOL(outl); |
| 110 | EXPORT_SYMBOL(outsl);*/ |
| 111 | |
| 112 | EXPORT_SYMBOL(_insb); |
| 113 | EXPORT_SYMBOL(_outsb); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | EXPORT_SYMBOL(_insw_ns); |
| 115 | EXPORT_SYMBOL(_outsw_ns); |
| 116 | EXPORT_SYMBOL(_insl_ns); |
| 117 | EXPORT_SYMBOL(_outsl_ns); |
| 118 | EXPORT_SYMBOL(iopa); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | EXPORT_SYMBOL(ioremap); |
| 120 | #ifdef CONFIG_44x |
| 121 | EXPORT_SYMBOL(ioremap64); |
| 122 | #endif |
| 123 | EXPORT_SYMBOL(__ioremap); |
| 124 | EXPORT_SYMBOL(iounmap); |
| 125 | EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ |
| 126 | |
| 127 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) |
| 128 | EXPORT_SYMBOL(ppc_ide_md); |
| 129 | #endif |
| 130 | |
| 131 | #ifdef CONFIG_PCI |
| 132 | EXPORT_SYMBOL(isa_io_base); |
| 133 | EXPORT_SYMBOL(isa_mem_base); |
| 134 | EXPORT_SYMBOL(pci_dram_offset); |
| 135 | EXPORT_SYMBOL(pci_alloc_consistent); |
| 136 | EXPORT_SYMBOL(pci_free_consistent); |
| 137 | EXPORT_SYMBOL(pci_bus_io_base); |
| 138 | EXPORT_SYMBOL(pci_bus_io_base_phys); |
| 139 | EXPORT_SYMBOL(pci_bus_mem_base_phys); |
| 140 | EXPORT_SYMBOL(pci_bus_to_hose); |
| 141 | EXPORT_SYMBOL(pci_resource_to_bus); |
| 142 | EXPORT_SYMBOL(pci_phys_to_bus); |
| 143 | EXPORT_SYMBOL(pci_bus_to_phys); |
| 144 | #endif /* CONFIG_PCI */ |
| 145 | |
| 146 | #ifdef CONFIG_NOT_COHERENT_CACHE |
David Gibson | 26ef5c0 | 2005-11-10 11:50:16 +1100 | [diff] [blame] | 147 | extern void flush_dcache_all(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | EXPORT_SYMBOL(flush_dcache_all); |
| 149 | #endif |
| 150 | |
| 151 | EXPORT_SYMBOL(start_thread); |
| 152 | EXPORT_SYMBOL(kernel_thread); |
| 153 | |
| 154 | EXPORT_SYMBOL(flush_instruction_cache); |
| 155 | EXPORT_SYMBOL(giveup_fpu); |
Otavio Salvador | 0e2d94f | 2005-11-29 08:02:24 +1100 | [diff] [blame] | 156 | EXPORT_SYMBOL(__flush_icache_range); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | EXPORT_SYMBOL(flush_dcache_range); |
| 158 | EXPORT_SYMBOL(flush_icache_user_range); |
| 159 | EXPORT_SYMBOL(flush_dcache_page); |
| 160 | EXPORT_SYMBOL(flush_tlb_kernel_range); |
| 161 | EXPORT_SYMBOL(flush_tlb_page); |
| 162 | EXPORT_SYMBOL(_tlbie); |
| 163 | #ifdef CONFIG_ALTIVEC |
Al Viro | 3ba9d91 | 2006-01-18 22:34:20 -0500 | [diff] [blame] | 164 | #ifndef CONFIG_SMP |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | EXPORT_SYMBOL(last_task_used_altivec); |
Al Viro | 3ba9d91 | 2006-01-18 22:34:20 -0500 | [diff] [blame] | 166 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | EXPORT_SYMBOL(giveup_altivec); |
| 168 | #endif /* CONFIG_ALTIVEC */ |
| 169 | #ifdef CONFIG_SPE |
Al Viro | 3ba9d91 | 2006-01-18 22:34:20 -0500 | [diff] [blame] | 170 | #ifndef CONFIG_SMP |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | EXPORT_SYMBOL(last_task_used_spe); |
Al Viro | 3ba9d91 | 2006-01-18 22:34:20 -0500 | [diff] [blame] | 172 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 173 | EXPORT_SYMBOL(giveup_spe); |
| 174 | #endif /* CONFIG_SPE */ |
| 175 | #ifdef CONFIG_SMP |
| 176 | EXPORT_SYMBOL(smp_call_function); |
| 177 | EXPORT_SYMBOL(smp_hw_index); |
| 178 | #endif |
| 179 | |
| 180 | EXPORT_SYMBOL(ppc_md); |
| 181 | |
| 182 | #ifdef CONFIG_ADB |
| 183 | EXPORT_SYMBOL(adb_request); |
| 184 | EXPORT_SYMBOL(adb_register); |
| 185 | EXPORT_SYMBOL(adb_unregister); |
| 186 | EXPORT_SYMBOL(adb_poll); |
| 187 | EXPORT_SYMBOL(adb_try_handler_change); |
| 188 | #endif /* CONFIG_ADB */ |
| 189 | #ifdef CONFIG_ADB_CUDA |
| 190 | EXPORT_SYMBOL(cuda_request); |
| 191 | EXPORT_SYMBOL(cuda_poll); |
| 192 | #endif /* CONFIG_ADB_CUDA */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 193 | #if defined(CONFIG_BOOTX_TEXT) |
| 194 | EXPORT_SYMBOL(btext_update_display); |
| 195 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | #ifdef CONFIG_VT |
| 197 | EXPORT_SYMBOL(kd_mksound); |
| 198 | #endif |
| 199 | EXPORT_SYMBOL(to_tm); |
| 200 | |
| 201 | EXPORT_SYMBOL(pm_power_off); |
| 202 | |
| 203 | EXPORT_SYMBOL(__ashrdi3); |
| 204 | EXPORT_SYMBOL(__ashldi3); |
| 205 | EXPORT_SYMBOL(__lshrdi3); |
| 206 | EXPORT_SYMBOL(memcpy); |
Eugene Surovegin | e883480 | 2005-09-03 15:55:54 -0700 | [diff] [blame] | 207 | EXPORT_SYMBOL(cacheable_memcpy); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 208 | EXPORT_SYMBOL(memset); |
| 209 | EXPORT_SYMBOL(memmove); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 210 | EXPORT_SYMBOL(memcmp); |
| 211 | EXPORT_SYMBOL(memchr); |
| 212 | |
| 213 | #if defined(CONFIG_FB_VGA16_MODULE) |
| 214 | EXPORT_SYMBOL(screen_info); |
| 215 | #endif |
| 216 | |
| 217 | EXPORT_SYMBOL(__delay); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | EXPORT_SYMBOL(timer_interrupt); |
| 219 | EXPORT_SYMBOL(irq_desc); |
| 220 | EXPORT_SYMBOL(tb_ticks_per_jiffy); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | EXPORT_SYMBOL(console_drivers); |
| 222 | #ifdef CONFIG_XMON |
| 223 | EXPORT_SYMBOL(xmon); |
| 224 | EXPORT_SYMBOL(xmon_printf); |
| 225 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | |
| 227 | #if defined(CONFIG_KGDB) || defined(CONFIG_XMON) |
| 228 | extern void (*debugger)(struct pt_regs *regs); |
| 229 | extern int (*debugger_bpt)(struct pt_regs *regs); |
| 230 | extern int (*debugger_sstep)(struct pt_regs *regs); |
| 231 | extern int (*debugger_iabr_match)(struct pt_regs *regs); |
| 232 | extern int (*debugger_dabr_match)(struct pt_regs *regs); |
| 233 | extern void (*debugger_fault_handler)(struct pt_regs *regs); |
| 234 | |
| 235 | EXPORT_SYMBOL(debugger); |
| 236 | EXPORT_SYMBOL(debugger_bpt); |
| 237 | EXPORT_SYMBOL(debugger_sstep); |
| 238 | EXPORT_SYMBOL(debugger_iabr_match); |
| 239 | EXPORT_SYMBOL(debugger_dabr_match); |
| 240 | EXPORT_SYMBOL(debugger_fault_handler); |
| 241 | #endif |
| 242 | |
| 243 | #ifdef CONFIG_8xx |
| 244 | EXPORT_SYMBOL(cpm_install_handler); |
| 245 | EXPORT_SYMBOL(cpm_free_handler); |
| 246 | #endif /* CONFIG_8xx */ |
| 247 | #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\ |
| 248 | defined(CONFIG_83xx) |
| 249 | EXPORT_SYMBOL(__res); |
| 250 | #endif |
| 251 | |
| 252 | EXPORT_SYMBOL(next_mmu_context); |
| 253 | EXPORT_SYMBOL(set_context); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | EXPORT_SYMBOL(disarm_decr); |
| 255 | #ifdef CONFIG_PPC_STD_MMU |
| 256 | extern long mol_trampoline; |
| 257 | EXPORT_SYMBOL(mol_trampoline); /* For MOL */ |
| 258 | EXPORT_SYMBOL(flush_hash_pages); /* For MOL */ |
| 259 | #ifdef CONFIG_SMP |
| 260 | extern int mmu_hash_lock; |
| 261 | EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */ |
| 262 | #endif /* CONFIG_SMP */ |
| 263 | extern long *intercept_table; |
| 264 | EXPORT_SYMBOL(intercept_table); |
| 265 | #endif /* CONFIG_PPC_STD_MMU */ |
Rojhalat Ibrahim | 862a728 | 2007-02-09 15:10:38 +0100 | [diff] [blame] | 266 | #ifdef CONFIG_PPC_DCR_NATIVE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 267 | EXPORT_SYMBOL(__mtdcr); |
| 268 | EXPORT_SYMBOL(__mfdcr); |
| 269 | #endif |