blob: 0b4cb93db5a3b070ca022990bd3a6dce9b31fc1b [file] [log] [blame]
Chris Zankel5a0015d2005-06-23 22:01:16 -07001/*
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
Chris Zankel5a0015d2005-06-23 22:01:16 -070015#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
24#include <asm/uaccess.h>
25#include <asm/checksum.h>
26#include <asm/dma.h>
27#include <asm/io.h>
28#include <asm/page.h>
29#include <asm/pgalloc.h>
30#include <asm/semaphore.h>
31#ifdef CONFIG_BLK_DEV_FD
32#include <asm/floppy.h>
33#endif
34#ifdef CONFIG_NET
35#include <net/checksum.h>
36#endif /* CONFIG_NET */
37
38
39/*
40 * String functions
41 */
42EXPORT_SYMBOL(memcmp);
43EXPORT_SYMBOL(memset);
44EXPORT_SYMBOL(memcpy);
45EXPORT_SYMBOL(memmove);
46EXPORT_SYMBOL(memchr);
47EXPORT_SYMBOL(strcat);
48EXPORT_SYMBOL(strchr);
49EXPORT_SYMBOL(strlen);
Chris Zankel5a0015d2005-06-23 22:01:16 -070050EXPORT_SYMBOL(strncat);
51EXPORT_SYMBOL(strnlen);
52EXPORT_SYMBOL(strrchr);
53EXPORT_SYMBOL(strstr);
54
55EXPORT_SYMBOL(enable_irq);
56EXPORT_SYMBOL(disable_irq);
57EXPORT_SYMBOL(kernel_thread);
58
59/*
60 * gcc internal math functions
61 */
62extern long long __ashrdi3(long long, int);
63extern long long __ashldi3(long long, int);
64extern long long __lshrdi3(long long, int);
65extern int __divsi3(int, int);
66extern int __modsi3(int, int);
67extern long long __muldi3(long long, long long);
68extern int __mulsi3(int, int);
69extern unsigned int __udivsi3(unsigned int, unsigned int);
70extern unsigned int __umodsi3(unsigned int, unsigned int);
71extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
72extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
73
74EXPORT_SYMBOL(__ashldi3);
75EXPORT_SYMBOL(__ashrdi3);
76EXPORT_SYMBOL(__lshrdi3);
77EXPORT_SYMBOL(__divsi3);
78EXPORT_SYMBOL(__modsi3);
79EXPORT_SYMBOL(__muldi3);
80EXPORT_SYMBOL(__mulsi3);
81EXPORT_SYMBOL(__udivsi3);
82EXPORT_SYMBOL(__umodsi3);
83EXPORT_SYMBOL(__udivdi3);
84EXPORT_SYMBOL(__umoddi3);
85
86/*
87 * Semaphore operations
88 */
89EXPORT_SYMBOL(__down);
90EXPORT_SYMBOL(__down_interruptible);
91EXPORT_SYMBOL(__down_trylock);
92EXPORT_SYMBOL(__up);
93
94#ifdef CONFIG_NET
95/*
96 * Networking support
97 */
98EXPORT_SYMBOL(csum_partial_copy_generic);
99#endif /* CONFIG_NET */
100
101/*
102 * Architecture-specific symbols
103 */
104EXPORT_SYMBOL(__xtensa_copy_user);
105
106/*
107 * Kernel hacking ...
108 */
109
110#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
111// FIXME EXPORT_SYMBOL(screen_info);
112#endif
113
Chris Zankel5a0015d2005-06-23 22:01:16 -0700114EXPORT_SYMBOL(outsb);
115EXPORT_SYMBOL(outsw);
116EXPORT_SYMBOL(outsl);
117EXPORT_SYMBOL(insb);
118EXPORT_SYMBOL(insw);
119EXPORT_SYMBOL(insl);