1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/user.h>
4 #include <linux/elfcore.h>
5 #include <linux/sched.h>
6 #include <linux/in6.h>
7 #include <linux/interrupt.h>
8 #include <linux/smp_lock.h>
9 #include <linux/pm.h>
10 #include <linux/kernel.h>
11 #include <linux/string.h>
12 #include <linux/tty.h>
13 
14 #include <asm/semaphore.h>
15 #include <asm/processor.h>
16 #include <asm/uaccess.h>
17 #include <asm/checksum.h>
18 #include <asm/io.h>
19 #include <asm/hardirq.h>
20 #include <asm/delay.h>
21 #include <asm/irq.h>
22 #include <asm/pgtable.h>
23 #include <asm/fasttimer.h>
24 
25 extern void dump_thread(struct pt_regs *, struct user *);
26 extern unsigned long get_cmos_time(void);
27 extern void __Div(void);
28 extern void __Mod(void);
29 extern void __Udiv(void);
30 extern void __Umod(void);
31 extern void __ashrdi3(void);
32 extern void iounmap(void *addr);
33 
34 /* Platform dependent support */
35 EXPORT_SYMBOL(dump_thread);
36 EXPORT_SYMBOL(enable_irq);
37 EXPORT_SYMBOL(disable_irq);
38 EXPORT_SYMBOL(kernel_thread);
39 EXPORT_SYMBOL(get_cmos_time);
40 EXPORT_SYMBOL(loops_per_usec);
41 
42 /* String functions */
43 EXPORT_SYMBOL(memcmp);
44 EXPORT_SYMBOL(memmove);
45 EXPORT_SYMBOL(strtok);
46 EXPORT_SYMBOL(strpbrk);
47 EXPORT_SYMBOL(strstr);
48 EXPORT_SYMBOL(strcpy);
49 EXPORT_SYMBOL(strchr);
50 EXPORT_SYMBOL(strcmp);
51 EXPORT_SYMBOL(strlen);
52 EXPORT_SYMBOL(strcat);
53 EXPORT_SYMBOL(strncat);
54 EXPORT_SYMBOL(strncmp);
55 EXPORT_SYMBOL(strncpy);
56 
57 /* Math functions */
58 EXPORT_SYMBOL_NOVERS(__Div);
59 EXPORT_SYMBOL_NOVERS(__Mod);
60 EXPORT_SYMBOL_NOVERS(__Udiv);
61 EXPORT_SYMBOL_NOVERS(__Umod);
62 EXPORT_SYMBOL_NOVERS(__ashrdi3);
63 
64 /* Memory functions */
65 EXPORT_SYMBOL(__ioremap);
66 EXPORT_SYMBOL(iounmap);
67 
68 /* Semaphore functions */
69 EXPORT_SYMBOL(__up);
70 EXPORT_SYMBOL(__down);
71 EXPORT_SYMBOL(__down_interruptible);
72 EXPORT_SYMBOL(__down_trylock);
73 
74 /* Export shadow registers for the CPU I/O pins */
75 EXPORT_SYMBOL(genconfig_shadow);
76 EXPORT_SYMBOL(port_pa_data_shadow);
77 EXPORT_SYMBOL(port_pa_dir_shadow);
78 EXPORT_SYMBOL(port_pb_data_shadow);
79 EXPORT_SYMBOL(port_pb_dir_shadow);
80 EXPORT_SYMBOL(port_pb_config_shadow);
81 EXPORT_SYMBOL(port_g_data_shadow);
82 
83 /* Userspace access functions */
84 EXPORT_SYMBOL(__copy_user_zeroing);
85 EXPORT_SYMBOL(__copy_user);
86 
87 /* Cache flush functions */
88 EXPORT_SYMBOL(flush_etrax_cache);
89 EXPORT_SYMBOL(prepare_rx_descriptor);
90 
91 #undef memcpy
92 #undef memset
93 extern void * memset(void *, int, __kernel_size_t);
94 extern void * memcpy(void *, const void *, __kernel_size_t);
95 EXPORT_SYMBOL_NOVERS(memcpy);
96 EXPORT_SYMBOL_NOVERS(memset);
97 
98 #ifdef CONFIG_ETRAX_FAST_TIMER
99 /* Fast timer functions */
100 EXPORT_SYMBOL(fast_timer_list);
101 EXPORT_SYMBOL(start_one_shot_timer);
102 EXPORT_SYMBOL(del_fast_timer);
103 EXPORT_SYMBOL(schedule_usleep);
104 #endif
105