ppc_ksyms.c
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:10k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * BK Id: SCCS/s.ppc_ksyms.c 1.63 01/20/02 23:53:11 benh
  3.  */
  4. #include <linux/config.h>
  5. #include <linux/module.h>
  6. #include <linux/threads.h>
  7. #include <linux/smp.h>
  8. #include <linux/elfcore.h>
  9. #include <linux/sched.h>
  10. #include <linux/string.h>
  11. #include <linux/interrupt.h>
  12. #include <linux/tty.h>
  13. #include <linux/vt_kern.h>
  14. #include <linux/nvram.h>
  15. #include <linux/spinlock.h>
  16. #include <linux/console.h>
  17. #include <linux/irq.h>
  18. #include <linux/pci.h>
  19. #include <linux/delay.h>
  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 <linux/ide.h>
  26. #include <asm/ide.h>
  27. #include <asm/atomic.h>
  28. #include <asm/bitops.h>
  29. #include <asm/checksum.h>
  30. #include <asm/pgtable.h>
  31. #include <linux/adb.h>
  32. #include <linux/cuda.h>
  33. #include <linux/pmu.h>
  34. #include <asm/prom.h>
  35. #include <asm/system.h>
  36. #include <asm/pci-bridge.h>
  37. #include <asm/irq.h>
  38. #include <asm/pmac_feature.h>
  39. #include <asm/dma.h>
  40. #include <asm/machdep.h>
  41. #include <asm/hw_irq.h>
  42. #include <asm/nvram.h>
  43. #include <asm/mmu_context.h>
  44. #include <asm/backlight.h>
  45. #ifdef CONFIG_SMP
  46. #include <asm/smplock.h>
  47. #include <asm/smp.h>
  48. #endif /* CONFIG_SMP */
  49. #include <asm/time.h>
  50. #include <asm/cputable.h>
  51. #include <asm/btext.h>
  52. #ifdef  CONFIG_8xx
  53. #include <asm/commproc.h>
  54. #endif
  55. /* Tell string.h we don't want memcpy etc. as cpp defines */
  56. #define EXPORT_SYMTAB_STROPS
  57. extern void ppc_generic_ide_fix_driveid(struct hd_driveid *id);
  58. extern void transfer_to_handler(void);
  59. extern void syscall_trace(void);
  60. extern void do_IRQ(struct pt_regs *regs);
  61. extern void MachineCheckException(struct pt_regs *regs);
  62. extern void AlignmentException(struct pt_regs *regs);
  63. extern void ProgramCheckException(struct pt_regs *regs);
  64. extern void SingleStepException(struct pt_regs *regs);
  65. extern int do_signal(sigset_t *, struct pt_regs *);
  66. extern int pmac_newworld;
  67. extern int sys_sigreturn(struct pt_regs *regs);
  68. long long __ashrdi3(long long, int);
  69. long long __ashldi3(long long, int);
  70. long long __lshrdi3(long long, int);
  71. int abs(int);
  72. extern unsigned char __res[];
  73. extern unsigned long ret_to_user_hook;
  74. extern unsigned long mm_ptov (unsigned long paddr);
  75. EXPORT_SYMBOL(clear_page);
  76. EXPORT_SYMBOL(do_signal);
  77. EXPORT_SYMBOL(syscall_trace);
  78. EXPORT_SYMBOL(transfer_to_handler);
  79. EXPORT_SYMBOL(do_IRQ);
  80. EXPORT_SYMBOL(MachineCheckException);
  81. EXPORT_SYMBOL(AlignmentException);
  82. EXPORT_SYMBOL(ProgramCheckException);
  83. EXPORT_SYMBOL(SingleStepException);
  84. EXPORT_SYMBOL(sys_sigreturn);
  85. EXPORT_SYMBOL(ppc_n_lost_interrupts);
  86. EXPORT_SYMBOL(ppc_lost_interrupts);
  87. EXPORT_SYMBOL(enable_irq);
  88. EXPORT_SYMBOL(disable_irq);
  89. EXPORT_SYMBOL(disable_irq_nosync);
  90. EXPORT_SYMBOL(probe_irq_mask);
  91. #ifdef CONFIG_SMP
  92. EXPORT_SYMBOL(kernel_flag);
  93. #endif /* CONFIG_SMP */
  94. EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
  95. EXPORT_SYMBOL_NOVERS(DMA_MODE_READ);
  96. EXPORT_SYMBOL(DMA_MODE_WRITE);
  97. #if defined(CONFIG_ALL_PPC)
  98. EXPORT_SYMBOL(_prep_type);
  99. EXPORT_SYMBOL(ucSystemType);
  100. #endif
  101. #if !__INLINE_BITOPS
  102. EXPORT_SYMBOL(set_bit);
  103. EXPORT_SYMBOL(clear_bit);
  104. EXPORT_SYMBOL(change_bit);
  105. EXPORT_SYMBOL(test_and_set_bit);
  106. EXPORT_SYMBOL(test_and_clear_bit);
  107. EXPORT_SYMBOL(test_and_change_bit);
  108. #endif /* __INLINE_BITOPS */
  109. EXPORT_SYMBOL(strcpy);
  110. EXPORT_SYMBOL(strncpy);
  111. EXPORT_SYMBOL(strcat);
  112. EXPORT_SYMBOL(strncat);
  113. EXPORT_SYMBOL(strchr);
  114. EXPORT_SYMBOL(strrchr);
  115. EXPORT_SYMBOL(strpbrk);
  116. EXPORT_SYMBOL(strtok);
  117. EXPORT_SYMBOL(strstr);
  118. EXPORT_SYMBOL(strlen);
  119. EXPORT_SYMBOL(strnlen);
  120. EXPORT_SYMBOL(strcmp);
  121. EXPORT_SYMBOL(strncmp);
  122. EXPORT_SYMBOL(strcasecmp);
  123. /* EXPORT_SYMBOL(csum_partial); already in net/netsyms.c */
  124. EXPORT_SYMBOL(csum_partial_copy_generic);
  125. EXPORT_SYMBOL(ip_fast_csum);
  126. EXPORT_SYMBOL(csum_tcpudp_magic);
  127. EXPORT_SYMBOL(__copy_tofrom_user);
  128. EXPORT_SYMBOL(__clear_user);
  129. EXPORT_SYMBOL(__strncpy_from_user);
  130. EXPORT_SYMBOL(__strnlen_user);
  131. /*
  132. EXPORT_SYMBOL(inb);
  133. EXPORT_SYMBOL(inw);
  134. EXPORT_SYMBOL(inl);
  135. EXPORT_SYMBOL(outb);
  136. EXPORT_SYMBOL(outw);
  137. EXPORT_SYMBOL(outl);
  138. EXPORT_SYMBOL(outsl);*/
  139. EXPORT_SYMBOL(_insb);
  140. EXPORT_SYMBOL(_outsb);
  141. EXPORT_SYMBOL(_insw);
  142. EXPORT_SYMBOL(_outsw);
  143. EXPORT_SYMBOL(_insl);
  144. EXPORT_SYMBOL(_outsl);
  145. EXPORT_SYMBOL(_insw_ns);
  146. EXPORT_SYMBOL(_outsw_ns);
  147. EXPORT_SYMBOL(_insl_ns);
  148. EXPORT_SYMBOL(_outsl_ns);
  149. EXPORT_SYMBOL(ioremap);
  150. EXPORT_SYMBOL(__ioremap);
  151. EXPORT_SYMBOL(iounmap);
  152. EXPORT_SYMBOL(iopa);
  153. EXPORT_SYMBOL(mm_ptov);
  154. EXPORT_SYMBOL(ppc_ide_md);
  155. EXPORT_SYMBOL(ppc_generic_ide_fix_driveid);
  156. #ifdef CONFIG_PCI
  157. EXPORT_SYMBOL_NOVERS(isa_io_base);
  158. EXPORT_SYMBOL_NOVERS(isa_mem_base);
  159. EXPORT_SYMBOL_NOVERS(pci_dram_offset);
  160. EXPORT_SYMBOL(pci_alloc_consistent);
  161. EXPORT_SYMBOL(pci_free_consistent);
  162. #endif /* CONFIG_PCI */
  163. EXPORT_SYMBOL(start_thread);
  164. EXPORT_SYMBOL(kernel_thread);
  165. /*EXPORT_SYMBOL(__restore_flags);*/
  166. /*EXPORT_SYMBOL(_disable_interrupts);
  167.   EXPORT_SYMBOL(_enable_interrupts);*/
  168. EXPORT_SYMBOL(flush_instruction_cache);
  169. EXPORT_SYMBOL(giveup_fpu);
  170. EXPORT_SYMBOL(enable_kernel_fp);
  171. EXPORT_SYMBOL(flush_icache_range);
  172. EXPORT_SYMBOL(flush_dcache_range);
  173. EXPORT_SYMBOL(xchg_u32);
  174. #ifdef CONFIG_ALTIVEC
  175. EXPORT_SYMBOL(last_task_used_altivec);
  176. EXPORT_SYMBOL(giveup_altivec);
  177. #endif /* CONFIG_ALTIVEC */
  178. #ifdef CONFIG_SMP
  179. EXPORT_SYMBOL(global_irq_lock);
  180. EXPORT_SYMBOL(global_irq_count);
  181. EXPORT_SYMBOL(global_irq_holder);
  182. EXPORT_SYMBOL(__global_cli);
  183. EXPORT_SYMBOL(__global_sti);
  184. EXPORT_SYMBOL(__global_save_flags);
  185. EXPORT_SYMBOL(__global_restore_flags);
  186. #ifdef SPINLOCK_DEBUG
  187. EXPORT_SYMBOL(_spin_lock);
  188. EXPORT_SYMBOL(_spin_unlock);
  189. EXPORT_SYMBOL(spin_trylock);
  190. EXPORT_SYMBOL(_read_lock);
  191. EXPORT_SYMBOL(_read_unlock);
  192. EXPORT_SYMBOL(_write_lock);
  193. EXPORT_SYMBOL(_write_unlock);
  194. #endif
  195. EXPORT_SYMBOL(smp_call_function);
  196. EXPORT_SYMBOL(smp_hw_index);
  197. EXPORT_SYMBOL(smp_num_cpus);
  198. EXPORT_SYMBOL(synchronize_irq);
  199. #endif
  200. EXPORT_SYMBOL(ppc_md);
  201. #ifdef CONFIG_ADB
  202. EXPORT_SYMBOL(adb_request);
  203. EXPORT_SYMBOL(adb_register);
  204. EXPORT_SYMBOL(adb_unregister);
  205. EXPORT_SYMBOL(adb_poll);
  206. EXPORT_SYMBOL(adb_try_handler_change);
  207. #endif /* CONFIG_ADB */
  208. #ifdef CONFIG_ADB_CUDA
  209. EXPORT_SYMBOL(cuda_request);
  210. EXPORT_SYMBOL(cuda_poll);
  211. #endif /* CONFIG_ADB_CUDA */
  212. #ifdef CONFIG_PMAC_BACKLIGHT
  213. EXPORT_SYMBOL(get_backlight_level);
  214. EXPORT_SYMBOL(set_backlight_level);
  215. EXPORT_SYMBOL(set_backlight_enable);
  216. EXPORT_SYMBOL(register_backlight_controller);
  217. #endif /* CONFIG_PMAC_BACKLIGHT */
  218. #if defined(CONFIG_ALL_PPC)
  219. EXPORT_SYMBOL(_machine);
  220. EXPORT_SYMBOL_NOVERS(sys_ctrler);
  221. EXPORT_SYMBOL(find_devices);
  222. EXPORT_SYMBOL(find_type_devices);
  223. EXPORT_SYMBOL(find_compatible_devices);
  224. EXPORT_SYMBOL(find_path_device);
  225. EXPORT_SYMBOL(device_is_compatible);
  226. EXPORT_SYMBOL(machine_is_compatible);
  227. EXPORT_SYMBOL(find_all_nodes);
  228. EXPORT_SYMBOL(get_property);
  229. EXPORT_SYMBOL(request_OF_resource);
  230. EXPORT_SYMBOL(release_OF_resource);
  231. EXPORT_SYMBOL(pci_bus_io_base);
  232. EXPORT_SYMBOL(pci_bus_io_base_phys);
  233. EXPORT_SYMBOL(pci_bus_mem_base_phys);
  234. EXPORT_SYMBOL(pci_device_to_OF_node);
  235. EXPORT_SYMBOL(pci_device_from_OF_node);
  236. EXPORT_SYMBOL(pci_bus_to_hose);
  237. EXPORT_SYMBOL(pci_resource_to_bus);
  238. EXPORT_SYMBOL(pci_phys_to_bus);
  239. EXPORT_SYMBOL(pci_bus_to_phys);
  240. EXPORT_SYMBOL(pmac_newworld);
  241. #endif /* defined(CONFIG_ALL_PPC) */
  242. #if defined(CONFIG_BOOTX_TEXT)
  243. EXPORT_SYMBOL(btext_update_display);
  244. #endif
  245. #if defined(CONFIG_SCSI) && defined(CONFIG_ALL_PPC)
  246. EXPORT_SYMBOL(note_scsi_host);
  247. #endif
  248. #ifdef CONFIG_VT
  249. EXPORT_SYMBOL(kd_mksound);
  250. #endif
  251. #ifdef CONFIG_NVRAM
  252. EXPORT_SYMBOL(nvram_read_byte);
  253. EXPORT_SYMBOL(nvram_write_byte);
  254. EXPORT_SYMBOL(pmac_xpram_read);
  255. EXPORT_SYMBOL(pmac_xpram_write);
  256. #endif /* CONFIG_NVRAM */
  257. EXPORT_SYMBOL(to_tm);
  258. EXPORT_SYMBOL_NOVERS(__ashrdi3);
  259. EXPORT_SYMBOL_NOVERS(__ashldi3);
  260. EXPORT_SYMBOL_NOVERS(__lshrdi3);
  261. EXPORT_SYMBOL_NOVERS(memcpy);
  262. EXPORT_SYMBOL_NOVERS(memset);
  263. EXPORT_SYMBOL_NOVERS(memmove);
  264. EXPORT_SYMBOL_NOVERS(memscan);
  265. EXPORT_SYMBOL_NOVERS(memcmp);
  266. EXPORT_SYMBOL_NOVERS(memchr);
  267. EXPORT_SYMBOL(abs);
  268. #ifdef CONFIG_VGA_CONSOLE
  269. EXPORT_SYMBOL(screen_info);
  270. #endif
  271. EXPORT_SYMBOL(__delay);
  272. EXPORT_SYMBOL(__sti);
  273. EXPORT_SYMBOL(__sti_end);
  274. EXPORT_SYMBOL(__cli);
  275. EXPORT_SYMBOL(__cli_end);
  276. EXPORT_SYMBOL(__save_flags_ptr);
  277. EXPORT_SYMBOL(__save_flags_ptr_end);
  278. EXPORT_SYMBOL(__restore_flags);
  279. EXPORT_SYMBOL(__restore_flags_end);
  280. EXPORT_SYMBOL(timer_interrupt_intercept);
  281. EXPORT_SYMBOL(timer_interrupt);
  282. EXPORT_SYMBOL(do_IRQ_intercept);
  283. EXPORT_SYMBOL(irq_desc);
  284. void ppc_irq_dispatch_handler(struct pt_regs *, int);
  285. EXPORT_SYMBOL(ppc_irq_dispatch_handler);
  286. EXPORT_SYMBOL(tb_ticks_per_jiffy);
  287. EXPORT_SYMBOL(get_wchan);
  288. EXPORT_SYMBOL(console_drivers);
  289. #ifdef CONFIG_XMON
  290. extern void xmon_printf(char *fmt, ...);
  291. EXPORT_SYMBOL(xmon);
  292. EXPORT_SYMBOL(xmon_printf);
  293. #endif
  294. EXPORT_SYMBOL(__up);
  295. EXPORT_SYMBOL(__down);
  296. EXPORT_SYMBOL(__down_interruptible);
  297. #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
  298. extern void (*debugger)(struct pt_regs *regs);
  299. extern int (*debugger_bpt)(struct pt_regs *regs);
  300. extern int (*debugger_sstep)(struct pt_regs *regs);
  301. extern int (*debugger_iabr_match)(struct pt_regs *regs);
  302. extern int (*debugger_dabr_match)(struct pt_regs *regs);
  303. extern void (*debugger_fault_handler)(struct pt_regs *regs);
  304. EXPORT_SYMBOL(debugger);
  305. EXPORT_SYMBOL(debugger_bpt);
  306. EXPORT_SYMBOL(debugger_sstep);
  307. EXPORT_SYMBOL(debugger_iabr_match);
  308. EXPORT_SYMBOL(debugger_dabr_match);
  309. EXPORT_SYMBOL(debugger_fault_handler);
  310. #endif
  311. #ifdef  CONFIG_8xx
  312. EXPORT_SYMBOL(__res);
  313. EXPORT_SYMBOL(request_8xxirq);
  314. EXPORT_SYMBOL(cpm_install_handler);
  315. EXPORT_SYMBOL(cpm_free_handler);
  316. #endif /* CONFIG_8xx */
  317. EXPORT_SYMBOL(ret_to_user_hook);
  318. EXPORT_SYMBOL(next_mmu_context);
  319. EXPORT_SYMBOL(set_context);
  320. EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
  321. EXPORT_SYMBOL_NOVERS(disarm_decr);
  322. #ifdef CONFIG_PPC_STD_MMU
  323. EXPORT_SYMBOL(flush_hash_page); /* For MOL */
  324. extern long *intercept_table;
  325. EXPORT_SYMBOL(intercept_table);
  326. #endif
  327. extern long *ret_from_intercept;
  328. EXPORT_SYMBOL(ret_from_intercept);
  329. EXPORT_SYMBOL(cur_cpu_spec);
  330. #if defined(CONFIG_ALL_PPC)
  331. extern unsigned long agp_special_page;
  332. EXPORT_SYMBOL_NOVERS(agp_special_page);
  333. #endif /* defined(CONFIG_ALL_PPC) */