xtensa_ksyms.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * arch/xtensa/kernel/xtensa_ksyms.c
  3. *
  4. * Export Xtensa-specific functions for loadable modules.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 2001 - 2005 Tensilica Inc.
  11. *
  12. * Joe Taylor <joe@tensilica.com>
  13. */
  14. #include <linux/config.h>
  15. #include <linux/module.h>
  16. #include <linux/string.h>
  17. #include <linux/mm.h>
  18. #include <linux/interrupt.h>
  19. #include <asm/irq.h>
  20. #include <linux/in6.h>
  21. #include <linux/pci.h>
  22. #include <linux/ide.h>
  23. #include <asm/uaccess.h>
  24. #include <asm/checksum.h>
  25. #include <asm/dma.h>
  26. #include <asm/io.h>
  27. #include <asm/page.h>
  28. #include <asm/pgalloc.h>
  29. #include <asm/semaphore.h>
  30. #ifdef CONFIG_BLK_DEV_FD
  31. #include <asm/floppy.h>
  32. #endif
  33. #ifdef CONFIG_NET
  34. #include <net/checksum.h>
  35. #endif /* CONFIG_NET */
  36. /*
  37. * String functions
  38. */
  39. EXPORT_SYMBOL(memcmp);
  40. EXPORT_SYMBOL(memset);
  41. EXPORT_SYMBOL(memcpy);
  42. EXPORT_SYMBOL(memmove);
  43. EXPORT_SYMBOL(memchr);
  44. EXPORT_SYMBOL(strcat);
  45. EXPORT_SYMBOL(strchr);
  46. EXPORT_SYMBOL(strlen);
  47. EXPORT_SYMBOL(strpbrk);
  48. EXPORT_SYMBOL(strncat);
  49. EXPORT_SYMBOL(strnlen);
  50. EXPORT_SYMBOL(strrchr);
  51. EXPORT_SYMBOL(strstr);
  52. EXPORT_SYMBOL(enable_irq);
  53. EXPORT_SYMBOL(disable_irq);
  54. EXPORT_SYMBOL(kernel_thread);
  55. /*
  56. * gcc internal math functions
  57. */
  58. extern long long __ashrdi3(long long, int);
  59. extern long long __ashldi3(long long, int);
  60. extern long long __lshrdi3(long long, int);
  61. extern int __divsi3(int, int);
  62. extern int __modsi3(int, int);
  63. extern long long __muldi3(long long, long long);
  64. extern int __mulsi3(int, int);
  65. extern unsigned int __udivsi3(unsigned int, unsigned int);
  66. extern unsigned int __umodsi3(unsigned int, unsigned int);
  67. extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
  68. extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
  69. EXPORT_SYMBOL(__ashldi3);
  70. EXPORT_SYMBOL(__ashrdi3);
  71. EXPORT_SYMBOL(__lshrdi3);
  72. EXPORT_SYMBOL(__divsi3);
  73. EXPORT_SYMBOL(__modsi3);
  74. EXPORT_SYMBOL(__muldi3);
  75. EXPORT_SYMBOL(__mulsi3);
  76. EXPORT_SYMBOL(__udivsi3);
  77. EXPORT_SYMBOL(__umodsi3);
  78. EXPORT_SYMBOL(__udivdi3);
  79. EXPORT_SYMBOL(__umoddi3);
  80. /*
  81. * Semaphore operations
  82. */
  83. EXPORT_SYMBOL(__down);
  84. EXPORT_SYMBOL(__down_interruptible);
  85. EXPORT_SYMBOL(__down_trylock);
  86. EXPORT_SYMBOL(__up);
  87. #ifdef CONFIG_NET
  88. /*
  89. * Networking support
  90. */
  91. EXPORT_SYMBOL(csum_partial_copy_generic);
  92. #endif /* CONFIG_NET */
  93. /*
  94. * Architecture-specific symbols
  95. */
  96. EXPORT_SYMBOL(__xtensa_copy_user);
  97. /*
  98. * Kernel hacking ...
  99. */
  100. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  101. // FIXME EXPORT_SYMBOL(screen_info);
  102. #endif
  103. EXPORT_SYMBOL(get_wchan);
  104. EXPORT_SYMBOL(outsb);
  105. EXPORT_SYMBOL(outsw);
  106. EXPORT_SYMBOL(outsl);
  107. EXPORT_SYMBOL(insb);
  108. EXPORT_SYMBOL(insw);
  109. EXPORT_SYMBOL(insl);