xtensa_ksyms.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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/module.h>
  15. #include <linux/string.h>
  16. #include <linux/mm.h>
  17. #include <linux/interrupt.h>
  18. #include <asm/irq.h>
  19. #include <linux/in6.h>
  20. #include <linux/ide.h>
  21. #include <asm/uaccess.h>
  22. #include <asm/checksum.h>
  23. #include <asm/dma.h>
  24. #include <asm/io.h>
  25. #include <asm/page.h>
  26. #include <asm/pgalloc.h>
  27. #include <asm/semaphore.h>
  28. #ifdef CONFIG_BLK_DEV_FD
  29. #include <asm/floppy.h>
  30. #endif
  31. #ifdef CONFIG_NET
  32. #include <net/checksum.h>
  33. #endif /* CONFIG_NET */
  34. /*
  35. * String functions
  36. */
  37. EXPORT_SYMBOL(memcmp);
  38. EXPORT_SYMBOL(memset);
  39. EXPORT_SYMBOL(memcpy);
  40. EXPORT_SYMBOL(memmove);
  41. EXPORT_SYMBOL(memchr);
  42. EXPORT_SYMBOL(strcat);
  43. EXPORT_SYMBOL(strchr);
  44. EXPORT_SYMBOL(strlen);
  45. EXPORT_SYMBOL(strncat);
  46. EXPORT_SYMBOL(strnlen);
  47. EXPORT_SYMBOL(strrchr);
  48. EXPORT_SYMBOL(strstr);
  49. EXPORT_SYMBOL(enable_irq);
  50. EXPORT_SYMBOL(disable_irq);
  51. EXPORT_SYMBOL(kernel_thread);
  52. /*
  53. * gcc internal math functions
  54. */
  55. extern long long __ashrdi3(long long, int);
  56. extern long long __ashldi3(long long, int);
  57. extern long long __lshrdi3(long long, int);
  58. extern int __divsi3(int, int);
  59. extern int __modsi3(int, int);
  60. extern long long __muldi3(long long, long long);
  61. extern int __mulsi3(int, int);
  62. extern unsigned int __udivsi3(unsigned int, unsigned int);
  63. extern unsigned int __umodsi3(unsigned int, unsigned int);
  64. extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
  65. extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
  66. EXPORT_SYMBOL(__ashldi3);
  67. EXPORT_SYMBOL(__ashrdi3);
  68. EXPORT_SYMBOL(__lshrdi3);
  69. EXPORT_SYMBOL(__divsi3);
  70. EXPORT_SYMBOL(__modsi3);
  71. EXPORT_SYMBOL(__muldi3);
  72. EXPORT_SYMBOL(__mulsi3);
  73. EXPORT_SYMBOL(__udivsi3);
  74. EXPORT_SYMBOL(__umodsi3);
  75. EXPORT_SYMBOL(__udivdi3);
  76. EXPORT_SYMBOL(__umoddi3);
  77. /*
  78. * Semaphore operations
  79. */
  80. EXPORT_SYMBOL(__down);
  81. EXPORT_SYMBOL(__down_interruptible);
  82. EXPORT_SYMBOL(__down_trylock);
  83. EXPORT_SYMBOL(__up);
  84. #ifdef CONFIG_NET
  85. /*
  86. * Networking support
  87. */
  88. EXPORT_SYMBOL(csum_partial_copy_generic);
  89. #endif /* CONFIG_NET */
  90. /*
  91. * Architecture-specific symbols
  92. */
  93. EXPORT_SYMBOL(__xtensa_copy_user);
  94. /*
  95. * Kernel hacking ...
  96. */
  97. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  98. // FIXME EXPORT_SYMBOL(screen_info);
  99. #endif
  100. EXPORT_SYMBOL(outsb);
  101. EXPORT_SYMBOL(outsw);
  102. EXPORT_SYMBOL(outsl);
  103. EXPORT_SYMBOL(insb);
  104. EXPORT_SYMBOL(insw);
  105. EXPORT_SYMBOL(insl);