xtensa_ksyms.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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(memset);
  38. EXPORT_SYMBOL(memcpy);
  39. EXPORT_SYMBOL(memmove);
  40. EXPORT_SYMBOL(kernel_thread);
  41. /*
  42. * gcc internal math functions
  43. */
  44. extern long long __ashrdi3(long long, int);
  45. extern long long __ashldi3(long long, int);
  46. extern long long __lshrdi3(long long, int);
  47. extern int __divsi3(int, int);
  48. extern int __modsi3(int, int);
  49. extern long long __muldi3(long long, long long);
  50. extern int __mulsi3(int, int);
  51. extern unsigned int __udivsi3(unsigned int, unsigned int);
  52. extern unsigned int __umodsi3(unsigned int, unsigned int);
  53. extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
  54. extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
  55. EXPORT_SYMBOL(__ashldi3);
  56. EXPORT_SYMBOL(__ashrdi3);
  57. EXPORT_SYMBOL(__lshrdi3);
  58. EXPORT_SYMBOL(__divsi3);
  59. EXPORT_SYMBOL(__modsi3);
  60. EXPORT_SYMBOL(__muldi3);
  61. EXPORT_SYMBOL(__mulsi3);
  62. EXPORT_SYMBOL(__udivsi3);
  63. EXPORT_SYMBOL(__umodsi3);
  64. EXPORT_SYMBOL(__udivdi3);
  65. EXPORT_SYMBOL(__umoddi3);
  66. /*
  67. * Semaphore operations
  68. */
  69. EXPORT_SYMBOL(__down);
  70. EXPORT_SYMBOL(__down_interruptible);
  71. EXPORT_SYMBOL(__down_trylock);
  72. EXPORT_SYMBOL(__up);
  73. #ifdef CONFIG_NET
  74. /*
  75. * Networking support
  76. */
  77. EXPORT_SYMBOL(csum_partial_copy_generic);
  78. #endif /* CONFIG_NET */
  79. /*
  80. * Architecture-specific symbols
  81. */
  82. EXPORT_SYMBOL(__xtensa_copy_user);
  83. /*
  84. * Kernel hacking ...
  85. */
  86. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  87. // FIXME EXPORT_SYMBOL(screen_info);
  88. #endif
  89. EXPORT_SYMBOL(outsb);
  90. EXPORT_SYMBOL(outsw);
  91. EXPORT_SYMBOL(outsl);
  92. EXPORT_SYMBOL(insb);
  93. EXPORT_SYMBOL(insw);
  94. EXPORT_SYMBOL(insl);