ppc_ksyms.c 9.5 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5
#include <linux/config.h>
#include <linux/module.h>
#include <linux/threads.h>
#include <linux/smp.h>
#include <linux/sched.h>
6
#include <linux/elfcore.h>
Linus Torvalds's avatar
Linus Torvalds committed
7 8
#include <linux/string.h>
#include <linux/interrupt.h>
Linus Torvalds's avatar
Linus Torvalds committed
9
#include <linux/tty.h>
Linus Torvalds's avatar
Linus Torvalds committed
10 11 12 13 14
#include <linux/vt_kern.h>
#include <linux/nvram.h>
#include <linux/console.h>
#include <linux/irq.h>
#include <linux/pci.h>
Linus Torvalds's avatar
Linus Torvalds committed
15
#include <linux/delay.h>
16
#include <linux/ide.h>
Linus Torvalds's avatar
Linus Torvalds committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

#include <asm/page.h>
#include <asm/semaphore.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/ide.h>
#include <asm/atomic.h>
#include <asm/bitops.h>
#include <asm/checksum.h>
#include <asm/pgtable.h>
#include <linux/adb.h>
#include <linux/cuda.h>
#include <linux/pmu.h>
#include <asm/prom.h>
#include <asm/system.h>
33 34
#define __KERNEL_SYSCALLS__
#include <asm/unistd.h>
Linus Torvalds's avatar
Linus Torvalds committed
35 36
#include <asm/pci-bridge.h>
#include <asm/irq.h>
37
#include <asm/pmac_feature.h>
Linus Torvalds's avatar
Linus Torvalds committed
38 39 40 41 42 43 44
#include <asm/dma.h>
#include <asm/machdep.h>
#include <asm/hw_irq.h>
#include <asm/nvram.h>
#include <asm/mmu_context.h>
#include <asm/backlight.h>
#include <asm/time.h>
Linus Torvalds's avatar
Linus Torvalds committed
45 46
#include <asm/cputable.h>
#include <asm/btext.h>
47
#include <asm/div64.h>
Linus Torvalds's avatar
Linus Torvalds committed
48

Linus Torvalds's avatar
Linus Torvalds committed
49
#ifdef  CONFIG_8xx
Linus Torvalds's avatar
Linus Torvalds committed
50
#include <asm/commproc.h>
Linus Torvalds's avatar
Linus Torvalds committed
51 52
#endif

Linus Torvalds's avatar
Linus Torvalds committed
53 54 55 56
/* Tell string.h we don't want memcpy etc. as cpp defines */
#define EXPORT_SYMTAB_STROPS

extern void transfer_to_handler(void);
57
extern void do_syscall_trace(void);
Linus Torvalds's avatar
Linus Torvalds committed
58
extern void do_IRQ(struct pt_regs *regs);
Linus Torvalds's avatar
Linus Torvalds committed
59 60 61 62 63
extern void MachineCheckException(struct pt_regs *regs);
extern void AlignmentException(struct pt_regs *regs);
extern void ProgramCheckException(struct pt_regs *regs);
extern void SingleStepException(struct pt_regs *regs);
extern int do_signal(sigset_t *, struct pt_regs *);
Linus Torvalds's avatar
Linus Torvalds committed
64 65
extern int pmac_newworld;
extern int sys_sigreturn(struct pt_regs *regs);
Linus Torvalds's avatar
Linus Torvalds committed
66 67 68 69 70 71

long long __ashrdi3(long long, int);
long long __ashldi3(long long, int);
long long __lshrdi3(long long, int);
int abs(int);

Linus Torvalds's avatar
Linus Torvalds committed
72 73
extern unsigned char __res[];

Linus Torvalds's avatar
Linus Torvalds committed
74 75
extern unsigned long mm_ptov (unsigned long paddr);

Linus Torvalds's avatar
Linus Torvalds committed
76 77
EXPORT_SYMBOL(clear_page);
EXPORT_SYMBOL(do_signal);
78
EXPORT_SYMBOL(do_syscall_trace);
Linus Torvalds's avatar
Linus Torvalds committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
EXPORT_SYMBOL(transfer_to_handler);
EXPORT_SYMBOL(do_IRQ);
EXPORT_SYMBOL(MachineCheckException);
EXPORT_SYMBOL(AlignmentException);
EXPORT_SYMBOL(ProgramCheckException);
EXPORT_SYMBOL(SingleStepException);
EXPORT_SYMBOL(sys_sigreturn);
EXPORT_SYMBOL(ppc_n_lost_interrupts);
EXPORT_SYMBOL(ppc_lost_interrupts);
EXPORT_SYMBOL(enable_irq);
EXPORT_SYMBOL(disable_irq);
EXPORT_SYMBOL(disable_irq_nosync);
EXPORT_SYMBOL(probe_irq_mask);

EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
Linus Torvalds's avatar
Linus Torvalds committed
94
EXPORT_SYMBOL_NOVERS(DMA_MODE_READ);
Linus Torvalds's avatar
Linus Torvalds committed
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
EXPORT_SYMBOL(DMA_MODE_WRITE);
#if defined(CONFIG_ALL_PPC)
EXPORT_SYMBOL(_prep_type);
EXPORT_SYMBOL(ucSystemType);
#endif

#if !__INLINE_BITOPS
EXPORT_SYMBOL(set_bit);
EXPORT_SYMBOL(clear_bit);
EXPORT_SYMBOL(change_bit);
EXPORT_SYMBOL(test_and_set_bit);
EXPORT_SYMBOL(test_and_clear_bit);
EXPORT_SYMBOL(test_and_change_bit);
#endif /* __INLINE_BITOPS */

EXPORT_SYMBOL(strcpy);
EXPORT_SYMBOL(strncpy);
EXPORT_SYMBOL(strcat);
EXPORT_SYMBOL(strncat);
EXPORT_SYMBOL(strchr);
EXPORT_SYMBOL(strrchr);
EXPORT_SYMBOL(strpbrk);
EXPORT_SYMBOL(strstr);
EXPORT_SYMBOL(strlen);
EXPORT_SYMBOL(strnlen);
EXPORT_SYMBOL(strcmp);
EXPORT_SYMBOL(strncmp);
Linus Torvalds's avatar
Linus Torvalds committed
122
EXPORT_SYMBOL(strcasecmp);
123
EXPORT_SYMBOL(__div64_32);
Linus Torvalds's avatar
Linus Torvalds committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153

/* EXPORT_SYMBOL(csum_partial); already in net/netsyms.c */
EXPORT_SYMBOL(csum_partial_copy_generic);
EXPORT_SYMBOL(ip_fast_csum);
EXPORT_SYMBOL(csum_tcpudp_magic);

EXPORT_SYMBOL(__copy_tofrom_user);
EXPORT_SYMBOL(__clear_user);
EXPORT_SYMBOL(__strncpy_from_user);
EXPORT_SYMBOL(__strnlen_user);

/*
EXPORT_SYMBOL(inb);
EXPORT_SYMBOL(inw);
EXPORT_SYMBOL(inl);
EXPORT_SYMBOL(outb);
EXPORT_SYMBOL(outw);
EXPORT_SYMBOL(outl);
EXPORT_SYMBOL(outsl);*/

EXPORT_SYMBOL(_insb);
EXPORT_SYMBOL(_outsb);
EXPORT_SYMBOL(_insw);
EXPORT_SYMBOL(_outsw);
EXPORT_SYMBOL(_insl);
EXPORT_SYMBOL(_outsl);
EXPORT_SYMBOL(_insw_ns);
EXPORT_SYMBOL(_outsw_ns);
EXPORT_SYMBOL(_insl_ns);
EXPORT_SYMBOL(_outsl_ns);
154 155
EXPORT_SYMBOL(iopa);
EXPORT_SYMBOL(mm_ptov);
Linus Torvalds's avatar
Linus Torvalds committed
156 157 158 159
EXPORT_SYMBOL(ioremap);
EXPORT_SYMBOL(__ioremap);
EXPORT_SYMBOL(iounmap);

160
#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
Linus Torvalds's avatar
Linus Torvalds committed
161
EXPORT_SYMBOL(ppc_ide_md);
162
#endif
Linus Torvalds's avatar
Linus Torvalds committed
163 164

#ifdef CONFIG_PCI
Linus Torvalds's avatar
Linus Torvalds committed
165 166 167
EXPORT_SYMBOL_NOVERS(isa_io_base);
EXPORT_SYMBOL_NOVERS(isa_mem_base);
EXPORT_SYMBOL_NOVERS(pci_dram_offset);
Linus Torvalds's avatar
Linus Torvalds committed
168 169
EXPORT_SYMBOL(pci_alloc_consistent);
EXPORT_SYMBOL(pci_free_consistent);
170 171 172 173 174 175 176
EXPORT_SYMBOL(pci_bus_io_base);
EXPORT_SYMBOL(pci_bus_io_base_phys);
EXPORT_SYMBOL(pci_bus_mem_base_phys);
EXPORT_SYMBOL(pci_bus_to_hose);
EXPORT_SYMBOL(pci_resource_to_bus);
EXPORT_SYMBOL(pci_phys_to_bus);
EXPORT_SYMBOL(pci_bus_to_phys);
Linus Torvalds's avatar
Linus Torvalds committed
177 178
#endif /* CONFIG_PCI */

179 180 181 182
#ifdef CONFIG_NOT_COHERENT_CACHE
EXPORT_SYMBOL(consistent_alloc);
EXPORT_SYMBOL(consistent_free);
EXPORT_SYMBOL(consistent_sync);
183
EXPORT_SYMBOL(flush_dcache_all);
184 185
#endif

186 187 188 189
EXPORT_SYMBOL(open);
EXPORT_SYMBOL(read);
EXPORT_SYMBOL(lseek);
EXPORT_SYMBOL(close);
Linus Torvalds's avatar
Linus Torvalds committed
190 191 192 193 194 195 196
EXPORT_SYMBOL(start_thread);
EXPORT_SYMBOL(kernel_thread);

EXPORT_SYMBOL(flush_instruction_cache);
EXPORT_SYMBOL(giveup_fpu);
EXPORT_SYMBOL(enable_kernel_fp);
EXPORT_SYMBOL(flush_icache_range);
Linus Torvalds's avatar
Linus Torvalds committed
197
EXPORT_SYMBOL(flush_dcache_range);
198 199
EXPORT_SYMBOL(flush_icache_user_range);
EXPORT_SYMBOL(flush_dcache_page);
Linus Torvalds's avatar
Linus Torvalds committed
200 201 202 203 204
#ifdef CONFIG_ALTIVEC
EXPORT_SYMBOL(last_task_used_altivec);
EXPORT_SYMBOL(giveup_altivec);
#endif /* CONFIG_ALTIVEC */
#ifdef CONFIG_SMP
205
#ifdef CONFIG_DEBUG_SPINLOCK
206 207 208 209 210 211 212
EXPORT_SYMBOL(_raw_spin_lock);
EXPORT_SYMBOL(_raw_spin_unlock);
EXPORT_SYMBOL(_raw_spin_trylock);
EXPORT_SYMBOL(_raw_read_lock);
EXPORT_SYMBOL(_raw_read_unlock);
EXPORT_SYMBOL(_raw_write_lock);
EXPORT_SYMBOL(_raw_write_unlock);
Linus Torvalds's avatar
Linus Torvalds committed
213
#endif
Linus Torvalds's avatar
Linus Torvalds committed
214 215 216
EXPORT_SYMBOL(smp_call_function);
EXPORT_SYMBOL(smp_hw_index);
EXPORT_SYMBOL(synchronize_irq);
Linus Torvalds's avatar
Linus Torvalds committed
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
#endif

EXPORT_SYMBOL(ppc_md);

#ifdef CONFIG_ADB
EXPORT_SYMBOL(adb_request);
EXPORT_SYMBOL(adb_register);
EXPORT_SYMBOL(adb_unregister);
EXPORT_SYMBOL(adb_poll);
EXPORT_SYMBOL(adb_try_handler_change);
#endif /* CONFIG_ADB */
#ifdef CONFIG_ADB_CUDA
EXPORT_SYMBOL(cuda_request);
EXPORT_SYMBOL(cuda_poll);
#endif /* CONFIG_ADB_CUDA */
#ifdef CONFIG_PMAC_BACKLIGHT
EXPORT_SYMBOL(get_backlight_level);
EXPORT_SYMBOL(set_backlight_level);
Linus Torvalds's avatar
Linus Torvalds committed
235 236
EXPORT_SYMBOL(set_backlight_enable);
EXPORT_SYMBOL(register_backlight_controller);
Linus Torvalds's avatar
Linus Torvalds committed
237
#endif /* CONFIG_PMAC_BACKLIGHT */
Linus Torvalds's avatar
Linus Torvalds committed
238
#if defined(CONFIG_ALL_PPC)
Linus Torvalds's avatar
Linus Torvalds committed
239
EXPORT_SYMBOL(_machine);
Linus Torvalds's avatar
Linus Torvalds committed
240
EXPORT_SYMBOL_NOVERS(sys_ctrler);
Linus Torvalds's avatar
Linus Torvalds committed
241 242 243 244 245 246 247 248
EXPORT_SYMBOL(find_devices);
EXPORT_SYMBOL(find_type_devices);
EXPORT_SYMBOL(find_compatible_devices);
EXPORT_SYMBOL(find_path_device);
EXPORT_SYMBOL(device_is_compatible);
EXPORT_SYMBOL(machine_is_compatible);
EXPORT_SYMBOL(find_all_nodes);
EXPORT_SYMBOL(get_property);
249 250
EXPORT_SYMBOL(request_OF_resource);
EXPORT_SYMBOL(release_OF_resource);
251
EXPORT_SYMBOL(pci_busdev_to_OF_node);
Linus Torvalds's avatar
Linus Torvalds committed
252 253 254
EXPORT_SYMBOL(pci_device_to_OF_node);
EXPORT_SYMBOL(pci_device_from_OF_node);
EXPORT_SYMBOL(pmac_newworld);
Linus Torvalds's avatar
Linus Torvalds committed
255
#endif /* defined(CONFIG_ALL_PPC) */
Linus Torvalds's avatar
Linus Torvalds committed
256
#if defined(CONFIG_BOOTX_TEXT)
Linus Torvalds's avatar
Linus Torvalds committed
257
EXPORT_SYMBOL(btext_update_display);
Linus Torvalds's avatar
Linus Torvalds committed
258
#endif
Linus Torvalds's avatar
Linus Torvalds committed
259 260 261
#if defined(CONFIG_SCSI) && defined(CONFIG_ALL_PPC)
EXPORT_SYMBOL(note_scsi_host);
#endif
Linus Torvalds's avatar
Linus Torvalds committed
262
#ifdef CONFIG_VT
Linus Torvalds's avatar
Linus Torvalds committed
263
EXPORT_SYMBOL(kd_mksound);
Linus Torvalds's avatar
Linus Torvalds committed
264
#endif
Linus Torvalds's avatar
Linus Torvalds committed
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
#ifdef CONFIG_NVRAM
EXPORT_SYMBOL(nvram_read_byte);
EXPORT_SYMBOL(nvram_write_byte);
EXPORT_SYMBOL(pmac_xpram_read);
EXPORT_SYMBOL(pmac_xpram_write);
#endif /* CONFIG_NVRAM */
EXPORT_SYMBOL(to_tm);

EXPORT_SYMBOL_NOVERS(__ashrdi3);
EXPORT_SYMBOL_NOVERS(__ashldi3);
EXPORT_SYMBOL_NOVERS(__lshrdi3);
EXPORT_SYMBOL_NOVERS(memcpy);
EXPORT_SYMBOL_NOVERS(memset);
EXPORT_SYMBOL_NOVERS(memmove);
EXPORT_SYMBOL_NOVERS(memscan);
EXPORT_SYMBOL_NOVERS(memcmp);
281
EXPORT_SYMBOL_NOVERS(memchr);
Linus Torvalds's avatar
Linus Torvalds committed
282 283 284

EXPORT_SYMBOL(abs);

285
#if defined(CONFIG_FB_VGA16_MODULE)
Linus Torvalds's avatar
Linus Torvalds committed
286 287 288
EXPORT_SYMBOL(screen_info);
#endif

Linus Torvalds's avatar
Linus Torvalds committed
289
EXPORT_SYMBOL(__delay);
290
#ifndef INLINE_IRQS
291 292 293 294 295 296 297 298
EXPORT_SYMBOL(local_irq_enable);
EXPORT_SYMBOL(local_irq_enable_end);
EXPORT_SYMBOL(local_irq_disable);
EXPORT_SYMBOL(local_irq_disable_end);
EXPORT_SYMBOL(local_save_flags_ptr);
EXPORT_SYMBOL(local_save_flags_ptr_end);
EXPORT_SYMBOL(local_irq_restore);
EXPORT_SYMBOL(local_irq_restore_end);
299
#endif
Linus Torvalds's avatar
Linus Torvalds committed
300 301 302 303 304 305 306 307
EXPORT_SYMBOL(timer_interrupt);
EXPORT_SYMBOL(irq_desc);
void ppc_irq_dispatch_handler(struct pt_regs *, int);
EXPORT_SYMBOL(ppc_irq_dispatch_handler);
EXPORT_SYMBOL(tb_ticks_per_jiffy);
EXPORT_SYMBOL(get_wchan);
EXPORT_SYMBOL(console_drivers);
#ifdef CONFIG_XMON
308
extern void xmon_printf(char *fmt, ...);
Linus Torvalds's avatar
Linus Torvalds committed
309
EXPORT_SYMBOL(xmon);
310
EXPORT_SYMBOL(xmon_printf);
Linus Torvalds's avatar
Linus Torvalds committed
311
#endif
Linus Torvalds's avatar
Linus Torvalds committed
312 313 314
EXPORT_SYMBOL(__up);
EXPORT_SYMBOL(__down);
EXPORT_SYMBOL(__down_interruptible);
Linus Torvalds's avatar
Linus Torvalds committed
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331

#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
extern void (*debugger)(struct pt_regs *regs);
extern int (*debugger_bpt)(struct pt_regs *regs);
extern int (*debugger_sstep)(struct pt_regs *regs);
extern int (*debugger_iabr_match)(struct pt_regs *regs);
extern int (*debugger_dabr_match)(struct pt_regs *regs);
extern void (*debugger_fault_handler)(struct pt_regs *regs);

EXPORT_SYMBOL(debugger);
EXPORT_SYMBOL(debugger_bpt);
EXPORT_SYMBOL(debugger_sstep);
EXPORT_SYMBOL(debugger_iabr_match);
EXPORT_SYMBOL(debugger_dabr_match);
EXPORT_SYMBOL(debugger_fault_handler);
#endif

Linus Torvalds's avatar
Linus Torvalds committed
332 333 334 335
#ifdef  CONFIG_8xx
EXPORT_SYMBOL(cpm_install_handler);
EXPORT_SYMBOL(cpm_free_handler);
#endif /* CONFIG_8xx */
336 337 338
#if defined(CONFIG_8xx) || defined(CONFIG_4xx)
EXPORT_SYMBOL(__res);
#endif
339 340 341
#if defined(CONFIG_8xx) || defined(CONFIG_8260)
EXPORT_SYMBOL(request_8xxirq);
#endif
Linus Torvalds's avatar
Linus Torvalds committed
342

Linus Torvalds's avatar
Linus Torvalds committed
343 344
EXPORT_SYMBOL(next_mmu_context);
EXPORT_SYMBOL(set_context);
Linus Torvalds's avatar
Linus Torvalds committed
345
EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
Linus Torvalds's avatar
Linus Torvalds committed
346
EXPORT_SYMBOL_NOVERS(disarm_decr);
Linus Torvalds's avatar
Linus Torvalds committed
347
#ifdef CONFIG_PPC_STD_MMU
348
EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
Linus Torvalds's avatar
Linus Torvalds committed
349 350 351
extern long *intercept_table;
EXPORT_SYMBOL(intercept_table);
#endif
Linus Torvalds's avatar
Linus Torvalds committed
352
EXPORT_SYMBOL(cur_cpu_spec);
353 354 355 356
#if defined(CONFIG_ALL_PPC)
extern unsigned long agp_special_page;
EXPORT_SYMBOL_NOVERS(agp_special_page);
#endif /* defined(CONFIG_ALL_PPC) */