ppc_ksyms.c 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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>
  8. #include <linux/screen_info.h>
  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/pm.h>
  16. #include <linux/bitops.h>
  17. #include <asm/page.h>
  18. #include <asm/processor.h>
  19. #include <asm/uaccess.h>
  20. #include <asm/io.h>
  21. #include <asm/ide.h>
  22. #include <asm/atomic.h>
  23. #include <asm/checksum.h>
  24. #include <asm/pgtable.h>
  25. #include <asm/tlbflush.h>
  26. #include <asm/cacheflush.h>
  27. #include <linux/adb.h>
  28. #include <linux/cuda.h>
  29. #include <linux/pmu.h>
  30. #include <asm/system.h>
  31. #include <asm/pci-bridge.h>
  32. #include <asm/irq.h>
  33. #include <asm/dma.h>
  34. #include <asm/machdep.h>
  35. #include <asm/hw_irq.h>
  36. #include <asm/nvram.h>
  37. #include <asm/mmu_context.h>
  38. #include <asm/backlight.h>
  39. #include <asm/time.h>
  40. #include <asm/cputable.h>
  41. #include <asm/btext.h>
  42. #include <asm/xmon.h>
  43. #include <asm/signal.h>
  44. #include <asm/dcr.h>
  45. #ifdef CONFIG_8xx
  46. #include <asm/cpm1.h>
  47. #endif
  48. extern void transfer_to_handler(void);
  49. extern void do_IRQ(struct pt_regs *regs);
  50. extern void machine_check_exception(struct pt_regs *regs);
  51. extern void alignment_exception(struct pt_regs *regs);
  52. extern void program_check_exception(struct pt_regs *regs);
  53. extern void single_step_exception(struct pt_regs *regs);
  54. extern int sys_sigreturn(struct pt_regs *regs);
  55. long long __ashrdi3(long long, int);
  56. long long __ashldi3(long long, int);
  57. long long __lshrdi3(long long, int);
  58. EXPORT_SYMBOL(empty_zero_page);
  59. EXPORT_SYMBOL(clear_pages);
  60. EXPORT_SYMBOL(clear_user_page);
  61. EXPORT_SYMBOL(copy_page);
  62. EXPORT_SYMBOL(transfer_to_handler);
  63. EXPORT_SYMBOL(do_IRQ);
  64. EXPORT_SYMBOL(machine_check_exception);
  65. EXPORT_SYMBOL(alignment_exception);
  66. EXPORT_SYMBOL(program_check_exception);
  67. EXPORT_SYMBOL(single_step_exception);
  68. EXPORT_SYMBOL(sys_sigreturn);
  69. EXPORT_SYMBOL(ppc_n_lost_interrupts);
  70. EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
  71. EXPORT_SYMBOL(DMA_MODE_READ);
  72. EXPORT_SYMBOL(DMA_MODE_WRITE);
  73. #if !defined(__INLINE_BITOPS)
  74. EXPORT_SYMBOL(set_bit);
  75. EXPORT_SYMBOL(clear_bit);
  76. EXPORT_SYMBOL(change_bit);
  77. EXPORT_SYMBOL(test_and_set_bit);
  78. EXPORT_SYMBOL(test_and_clear_bit);
  79. EXPORT_SYMBOL(test_and_change_bit);
  80. #endif /* __INLINE_BITOPS */
  81. EXPORT_SYMBOL(strcpy);
  82. EXPORT_SYMBOL(strncpy);
  83. EXPORT_SYMBOL(strcat);
  84. EXPORT_SYMBOL(strlen);
  85. EXPORT_SYMBOL(strcmp);
  86. EXPORT_SYMBOL(strncmp);
  87. EXPORT_SYMBOL(csum_partial);
  88. EXPORT_SYMBOL(csum_partial_copy_generic);
  89. EXPORT_SYMBOL(ip_fast_csum);
  90. EXPORT_SYMBOL(csum_tcpudp_magic);
  91. EXPORT_SYMBOL(__copy_tofrom_user);
  92. EXPORT_SYMBOL(__clear_user);
  93. EXPORT_SYMBOL(__strncpy_from_user);
  94. EXPORT_SYMBOL(__strnlen_user);
  95. /*
  96. EXPORT_SYMBOL(inb);
  97. EXPORT_SYMBOL(inw);
  98. EXPORT_SYMBOL(inl);
  99. EXPORT_SYMBOL(outb);
  100. EXPORT_SYMBOL(outw);
  101. EXPORT_SYMBOL(outl);
  102. EXPORT_SYMBOL(outsl);*/
  103. EXPORT_SYMBOL(_insb);
  104. EXPORT_SYMBOL(_outsb);
  105. EXPORT_SYMBOL(_insw_ns);
  106. EXPORT_SYMBOL(_outsw_ns);
  107. EXPORT_SYMBOL(_insl_ns);
  108. EXPORT_SYMBOL(_outsl_ns);
  109. EXPORT_SYMBOL(iopa);
  110. EXPORT_SYMBOL(ioremap);
  111. #ifdef CONFIG_44x
  112. EXPORT_SYMBOL(ioremap64);
  113. #endif
  114. EXPORT_SYMBOL(__ioremap);
  115. EXPORT_SYMBOL(iounmap);
  116. EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */
  117. #ifdef CONFIG_PCI
  118. EXPORT_SYMBOL(isa_io_base);
  119. EXPORT_SYMBOL(isa_mem_base);
  120. EXPORT_SYMBOL(pci_dram_offset);
  121. EXPORT_SYMBOL(pci_alloc_consistent);
  122. EXPORT_SYMBOL(pci_free_consistent);
  123. EXPORT_SYMBOL(pci_bus_io_base);
  124. EXPORT_SYMBOL(pci_bus_io_base_phys);
  125. EXPORT_SYMBOL(pci_bus_mem_base_phys);
  126. EXPORT_SYMBOL(pci_bus_to_hose);
  127. EXPORT_SYMBOL(pci_resource_to_bus);
  128. EXPORT_SYMBOL(pci_phys_to_bus);
  129. EXPORT_SYMBOL(pci_bus_to_phys);
  130. #endif /* CONFIG_PCI */
  131. #ifdef CONFIG_NOT_COHERENT_CACHE
  132. extern void flush_dcache_all(void);
  133. EXPORT_SYMBOL(flush_dcache_all);
  134. #endif
  135. EXPORT_SYMBOL(start_thread);
  136. EXPORT_SYMBOL(kernel_thread);
  137. EXPORT_SYMBOL(flush_instruction_cache);
  138. EXPORT_SYMBOL(giveup_fpu);
  139. EXPORT_SYMBOL(__flush_icache_range);
  140. EXPORT_SYMBOL(flush_dcache_range);
  141. EXPORT_SYMBOL(flush_icache_user_range);
  142. EXPORT_SYMBOL(flush_dcache_page);
  143. EXPORT_SYMBOL(flush_tlb_kernel_range);
  144. EXPORT_SYMBOL(flush_tlb_page);
  145. EXPORT_SYMBOL(_tlbie);
  146. #ifdef CONFIG_ALTIVEC
  147. #ifndef CONFIG_SMP
  148. EXPORT_SYMBOL(last_task_used_altivec);
  149. #endif
  150. EXPORT_SYMBOL(giveup_altivec);
  151. #endif /* CONFIG_ALTIVEC */
  152. #ifdef CONFIG_SMP
  153. EXPORT_SYMBOL(smp_call_function);
  154. EXPORT_SYMBOL(smp_hw_index);
  155. #endif
  156. EXPORT_SYMBOL(ppc_md);
  157. #ifdef CONFIG_ADB
  158. EXPORT_SYMBOL(adb_request);
  159. EXPORT_SYMBOL(adb_register);
  160. EXPORT_SYMBOL(adb_unregister);
  161. EXPORT_SYMBOL(adb_poll);
  162. EXPORT_SYMBOL(adb_try_handler_change);
  163. #endif /* CONFIG_ADB */
  164. #ifdef CONFIG_ADB_CUDA
  165. EXPORT_SYMBOL(cuda_request);
  166. EXPORT_SYMBOL(cuda_poll);
  167. #endif /* CONFIG_ADB_CUDA */
  168. #if defined(CONFIG_BOOTX_TEXT)
  169. EXPORT_SYMBOL(btext_update_display);
  170. #endif
  171. EXPORT_SYMBOL(to_tm);
  172. EXPORT_SYMBOL(pm_power_off);
  173. EXPORT_SYMBOL(__ashrdi3);
  174. EXPORT_SYMBOL(__ashldi3);
  175. EXPORT_SYMBOL(__lshrdi3);
  176. EXPORT_SYMBOL(memcpy);
  177. EXPORT_SYMBOL(cacheable_memcpy);
  178. EXPORT_SYMBOL(memset);
  179. EXPORT_SYMBOL(memmove);
  180. EXPORT_SYMBOL(memcmp);
  181. EXPORT_SYMBOL(memchr);
  182. #if defined(CONFIG_FB_VGA16_MODULE)
  183. EXPORT_SYMBOL(screen_info);
  184. #endif
  185. EXPORT_SYMBOL(__delay);
  186. EXPORT_SYMBOL(timer_interrupt);
  187. EXPORT_SYMBOL(irq_desc);
  188. EXPORT_SYMBOL(tb_ticks_per_jiffy);
  189. EXPORT_SYMBOL(console_drivers);
  190. #ifdef CONFIG_XMON
  191. EXPORT_SYMBOL(xmon);
  192. EXPORT_SYMBOL(xmon_printf);
  193. #endif
  194. #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
  195. extern void (*debugger)(struct pt_regs *regs);
  196. extern int (*debugger_bpt)(struct pt_regs *regs);
  197. extern int (*debugger_sstep)(struct pt_regs *regs);
  198. extern int (*debugger_iabr_match)(struct pt_regs *regs);
  199. extern int (*debugger_dabr_match)(struct pt_regs *regs);
  200. extern void (*debugger_fault_handler)(struct pt_regs *regs);
  201. EXPORT_SYMBOL(debugger);
  202. EXPORT_SYMBOL(debugger_bpt);
  203. EXPORT_SYMBOL(debugger_sstep);
  204. EXPORT_SYMBOL(debugger_iabr_match);
  205. EXPORT_SYMBOL(debugger_dabr_match);
  206. EXPORT_SYMBOL(debugger_fault_handler);
  207. #endif
  208. #ifdef CONFIG_8xx
  209. EXPORT_SYMBOL(cpm_install_handler);
  210. EXPORT_SYMBOL(cpm_free_handler);
  211. #endif /* CONFIG_8xx */
  212. #if defined(CONFIG_8xx) || defined(CONFIG_40x)
  213. EXPORT_SYMBOL(__res);
  214. #endif
  215. EXPORT_SYMBOL(next_mmu_context);
  216. EXPORT_SYMBOL(set_context);
  217. EXPORT_SYMBOL(disarm_decr);
  218. #ifdef CONFIG_PPC_STD_MMU
  219. extern long mol_trampoline;
  220. EXPORT_SYMBOL(mol_trampoline); /* For MOL */
  221. EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
  222. #ifdef CONFIG_SMP
  223. extern int mmu_hash_lock;
  224. EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
  225. #endif /* CONFIG_SMP */
  226. extern long *intercept_table;
  227. EXPORT_SYMBOL(intercept_table);
  228. #endif /* CONFIG_PPC_STD_MMU */
  229. #ifdef CONFIG_PPC_DCR_NATIVE
  230. EXPORT_SYMBOL(__mtdcr);
  231. EXPORT_SYMBOL(__mfdcr);
  232. #endif