1#include <linux/module.h>
2#include <linux/smp.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/vmalloc.h>
9#include <linux/pci.h>
10#include <linux/irq.h>
11
12#include <asm/semaphore.h>
13#include <asm/processor.h>
14#include <asm/uaccess.h>
15#include <asm/checksum.h>
16#include <asm/io.h>
17#include <asm/delay.h>
18#include <asm/tlbflush.h>
19#include <asm/cacheflush.h>
20
21extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
22extern struct hw_interrupt_type no_irq_type;
23
24EXPORT_SYMBOL(sh_mv);
25
26/* platform dependent support */
27EXPORT_SYMBOL(dump_fpu);
28EXPORT_SYMBOL(kernel_thread);
29EXPORT_SYMBOL(irq_desc);
30EXPORT_SYMBOL(no_irq_type);
31
32EXPORT_SYMBOL(strlen);
33
34/* PCI exports */
35#ifdef CONFIG_PCI
36EXPORT_SYMBOL(pci_alloc_consistent);
37EXPORT_SYMBOL(pci_free_consistent);
38#endif
39
40/* mem exports */
41EXPORT_SYMBOL(memchr);
42EXPORT_SYMBOL(memcpy);
43EXPORT_SYMBOL(memset);
44EXPORT_SYMBOL(memmove);
45EXPORT_SYMBOL(__copy_user);
46EXPORT_SYMBOL(boot_cpu_data);
47
48#ifdef CONFIG_MMU
49EXPORT_SYMBOL(get_vm_area);
50#endif
51
52/* semaphore exports */
53EXPORT_SYMBOL(__up);
54EXPORT_SYMBOL(__down);
55EXPORT_SYMBOL(__down_interruptible);
56
57EXPORT_SYMBOL(__udelay);
58EXPORT_SYMBOL(__ndelay);
59EXPORT_SYMBOL(__const_udelay);
60
61#define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name)
62
63/* These symbols are generated by the compiler itself */
64DECLARE_EXPORT(__udivsi3);
65DECLARE_EXPORT(__sdivsi3);
66DECLARE_EXPORT(__ashrdi3);
67DECLARE_EXPORT(__ashldi3);
68DECLARE_EXPORT(__lshrdi3);
69DECLARE_EXPORT(__movstrSI16);
70#if __GNUC__ == 4
71DECLARE_EXPORT(__movmem);
72#else
73DECLARE_EXPORT(__movstr);
74#endif
75
76#ifdef CONFIG_CPU_SH4
77#if __GNUC__ == 4
78DECLARE_EXPORT(__movmem_i4_even);
79DECLARE_EXPORT(__movmem_i4_odd);
80DECLARE_EXPORT(__movmemSI12_i4);
81#else /* GCC 3.x */
82DECLARE_EXPORT(__movstr_i4_even);
83DECLARE_EXPORT(__movstr_i4_odd);
84DECLARE_EXPORT(__movstrSI12_i4);
85#endif /* __GNUC__ == 4 */
86#endif
87
88#if defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB)
89/* needed by some modules */
90EXPORT_SYMBOL(flush_cache_all);
91EXPORT_SYMBOL(flush_cache_range);
92EXPORT_SYMBOL(flush_dcache_page);
93EXPORT_SYMBOL(__flush_purge_region);
94#endif
95
96#if defined(CONFIG_MMU) && (defined(CONFIG_CPU_SH4) || \
97	defined(CONFIG_SH7705_CACHE_32KB))
98EXPORT_SYMBOL(clear_user_page);
99#endif
100
101EXPORT_SYMBOL(__down_trylock);
102
103#ifdef CONFIG_SMP
104EXPORT_SYMBOL(synchronize_irq);
105#endif
106
107EXPORT_SYMBOL(csum_partial);
108#ifdef CONFIG_IPV6
109EXPORT_SYMBOL(csum_ipv6_magic);
110#endif
111EXPORT_SYMBOL(clear_page);
112