sparc_ksyms_64.c 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. /* arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support.
  2. *
  3. * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
  4. * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
  5. * Copyright (C) 1999 Jakub Jelinek (jj@ultra.linux.cz)
  6. */
  7. #define PROMLIB_INTERNAL
  8. #include <linux/module.h>
  9. #include <linux/types.h>
  10. #include <linux/sched.h>
  11. #include <linux/in6.h>
  12. #include <linux/pci.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/fs_struct.h>
  15. #include <linux/fs.h>
  16. #include <linux/mm.h>
  17. #include <linux/socket.h>
  18. #include <linux/syscalls.h>
  19. #include <linux/percpu.h>
  20. #include <linux/init.h>
  21. #include <linux/rwsem.h>
  22. #include <net/compat.h>
  23. #include <asm/oplib.h>
  24. #include <asm/system.h>
  25. #include <asm/auxio.h>
  26. #include <asm/pgtable.h>
  27. #include <asm/io.h>
  28. #include <asm/irq.h>
  29. #include <asm/idprom.h>
  30. #include <asm/elf.h>
  31. #include <asm/head.h>
  32. #include <asm/smp.h>
  33. #include <asm/ptrace.h>
  34. #include <asm/uaccess.h>
  35. #include <asm/checksum.h>
  36. #include <asm/fpumacro.h>
  37. #include <asm/pgalloc.h>
  38. #include <asm/cacheflush.h>
  39. #ifdef CONFIG_SBUS
  40. #include <asm/dma.h>
  41. #endif
  42. #include <asm/ns87303.h>
  43. #include <asm/timer.h>
  44. #include <asm/cpudata.h>
  45. #include <asm/ftrace.h>
  46. #include <asm/hypervisor.h>
  47. struct poll {
  48. int fd;
  49. short events;
  50. short revents;
  51. };
  52. extern void die_if_kernel(char *str, struct pt_regs *regs);
  53. extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
  54. extern void sys_sigsuspend(void);
  55. extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
  56. extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
  57. extern long sparc32_open(const char __user * filename, int flags, int mode);
  58. extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
  59. unsigned long pfn, unsigned long size, pgprot_t prot);
  60. extern int __ashrdi3(int, int);
  61. extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
  62. /* Per-CPU information table */
  63. EXPORT_PER_CPU_SYMBOL(__cpu_data);
  64. /* used by various drivers */
  65. #ifdef CONFIG_SMP
  66. /* Out of line rw-locking implementation. */
  67. EXPORT_SYMBOL(__read_lock);
  68. EXPORT_SYMBOL(__read_unlock);
  69. EXPORT_SYMBOL(__write_lock);
  70. EXPORT_SYMBOL(__write_unlock);
  71. EXPORT_SYMBOL(__write_trylock);
  72. #endif /* CONFIG_SMP */
  73. EXPORT_SYMBOL(sparc64_get_clock_tick);
  74. EXPORT_SYMBOL(__flushw_user);
  75. EXPORT_SYMBOL(tlb_type);
  76. EXPORT_SYMBOL(sun4v_chip_type);
  77. EXPORT_SYMBOL(get_fb_unmapped_area);
  78. EXPORT_SYMBOL(flush_icache_range);
  79. EXPORT_SYMBOL(flush_dcache_page);
  80. #ifdef DCACHE_ALIASING_POSSIBLE
  81. EXPORT_SYMBOL(__flush_dcache_range);
  82. #endif
  83. EXPORT_SYMBOL(sun4v_niagara_getperf);
  84. EXPORT_SYMBOL(sun4v_niagara_setperf);
  85. EXPORT_SYMBOL(sun4v_niagara2_getperf);
  86. EXPORT_SYMBOL(sun4v_niagara2_setperf);
  87. EXPORT_SYMBOL(auxio_set_led);
  88. EXPORT_SYMBOL(auxio_set_lte);
  89. #ifdef CONFIG_SBUS
  90. EXPORT_SYMBOL(sbus_set_sbus64);
  91. #endif
  92. EXPORT_SYMBOL(outsb);
  93. EXPORT_SYMBOL(outsw);
  94. EXPORT_SYMBOL(outsl);
  95. EXPORT_SYMBOL(insb);
  96. EXPORT_SYMBOL(insw);
  97. EXPORT_SYMBOL(insl);
  98. #ifdef CONFIG_PCI
  99. EXPORT_SYMBOL(pci_alloc_consistent);
  100. EXPORT_SYMBOL(pci_free_consistent);
  101. EXPORT_SYMBOL(pci_map_single);
  102. EXPORT_SYMBOL(pci_unmap_single);
  103. EXPORT_SYMBOL(pci_map_sg);
  104. EXPORT_SYMBOL(pci_unmap_sg);
  105. EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
  106. EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
  107. EXPORT_SYMBOL(pci_dma_supported);
  108. #endif
  109. /* I/O device mmaping on Sparc64. */
  110. EXPORT_SYMBOL(io_remap_pfn_range);
  111. EXPORT_SYMBOL(dump_fpu);
  112. /* math-emu wants this */
  113. EXPORT_SYMBOL(die_if_kernel);
  114. /* Kernel thread creation. */
  115. EXPORT_SYMBOL(kernel_thread);
  116. /* prom symbols */
  117. EXPORT_SYMBOL(idprom);
  118. EXPORT_SYMBOL(prom_root_node);
  119. EXPORT_SYMBOL(prom_getchild);
  120. EXPORT_SYMBOL(prom_getsibling);
  121. EXPORT_SYMBOL(prom_searchsiblings);
  122. EXPORT_SYMBOL(prom_firstprop);
  123. EXPORT_SYMBOL(prom_nextprop);
  124. EXPORT_SYMBOL(prom_getproplen);
  125. EXPORT_SYMBOL(prom_getproperty);
  126. EXPORT_SYMBOL(prom_node_has_property);
  127. EXPORT_SYMBOL(prom_setprop);
  128. EXPORT_SYMBOL(saved_command_line);
  129. EXPORT_SYMBOL(prom_finddevice);
  130. EXPORT_SYMBOL(prom_feval);
  131. EXPORT_SYMBOL(prom_getbool);
  132. EXPORT_SYMBOL(prom_getstring);
  133. EXPORT_SYMBOL(prom_getint);
  134. EXPORT_SYMBOL(prom_getintdefault);
  135. EXPORT_SYMBOL(__prom_getchild);
  136. EXPORT_SYMBOL(__prom_getsibling);
  137. /* Moving data to/from/in userspace. */
  138. EXPORT_SYMBOL(copy_to_user_fixup);
  139. EXPORT_SYMBOL(copy_from_user_fixup);
  140. EXPORT_SYMBOL(copy_in_user_fixup);
  141. /* Various address conversion macros use this. */
  142. EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
  143. /* No version information on this, heavily used in inline asm,
  144. * and will always be 'void __ret_efault(void)'.
  145. */
  146. EXPORT_SYMBOL(__ret_efault);
  147. /* for input/keybdev */
  148. EXPORT_SYMBOL(sun_do_break);
  149. EXPORT_SYMBOL(stop_a_enabled);
  150. #ifdef CONFIG_DEBUG_BUGVERBOSE
  151. EXPORT_SYMBOL(do_BUG);
  152. #endif
  153. /* for ns8703 */
  154. EXPORT_SYMBOL(ns87303_lock);
  155. EXPORT_SYMBOL(tick_ops);
  156. EXPORT_SYMBOL_GPL(real_hard_smp_processor_id);