Merge branch 'upstream'
[pandora-kernel.git] / arch / x86_64 / kernel / x8664_ksyms.c
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/smp.h>
4 #include <linux/user.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/pci.h>
11 #include <linux/apm_bios.h>
12 #include <linux/kernel.h>
13 #include <linux/string.h>
14 #include <linux/syscalls.h>
15 #include <linux/tty.h>
16
17 #include <asm/semaphore.h>
18 #include <asm/processor.h>
19 #include <asm/i387.h>
20 #include <asm/uaccess.h>
21 #include <asm/checksum.h>
22 #include <asm/io.h>
23 #include <asm/delay.h>
24 #include <asm/irq.h>
25 #include <asm/mmx.h>
26 #include <asm/desc.h>
27 #include <asm/pgtable.h>
28 #include <asm/pgalloc.h>
29 #include <asm/nmi.h>
30 #include <asm/kdebug.h>
31 #include <asm/unistd.h>
32 #include <asm/tlbflush.h>
33 #include <asm/kdebug.h>
34
35 extern spinlock_t rtc_lock;
36
37 #ifdef CONFIG_SMP
38 extern void __write_lock_failed(rwlock_t *rw);
39 extern void __read_lock_failed(rwlock_t *rw);
40 #endif
41
42 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
43 extern struct drive_info_struct drive_info;
44 EXPORT_SYMBOL(drive_info);
45 #endif
46
47 /* platform dependent support */
48 EXPORT_SYMBOL(boot_cpu_data);
49 //EXPORT_SYMBOL(dump_fpu);
50 EXPORT_SYMBOL(__ioremap);
51 EXPORT_SYMBOL(ioremap_nocache);
52 EXPORT_SYMBOL(iounmap);
53 EXPORT_SYMBOL(kernel_thread);
54 EXPORT_SYMBOL(pm_idle);
55 EXPORT_SYMBOL(pm_power_off);
56
57 EXPORT_SYMBOL(__down_failed);
58 EXPORT_SYMBOL(__down_failed_interruptible);
59 EXPORT_SYMBOL(__down_failed_trylock);
60 EXPORT_SYMBOL(__up_wakeup);
61 /* Networking helper routines. */
62 EXPORT_SYMBOL(csum_partial_copy_nocheck);
63 EXPORT_SYMBOL(ip_compute_csum);
64 /* Delay loops */
65 EXPORT_SYMBOL(__udelay);
66 EXPORT_SYMBOL(__ndelay);
67 EXPORT_SYMBOL(__delay);
68 EXPORT_SYMBOL(__const_udelay);
69
70 EXPORT_SYMBOL(__get_user_1);
71 EXPORT_SYMBOL(__get_user_2);
72 EXPORT_SYMBOL(__get_user_4);
73 EXPORT_SYMBOL(__get_user_8);
74 EXPORT_SYMBOL(__put_user_1);
75 EXPORT_SYMBOL(__put_user_2);
76 EXPORT_SYMBOL(__put_user_4);
77 EXPORT_SYMBOL(__put_user_8);
78
79 EXPORT_SYMBOL(strncpy_from_user);
80 EXPORT_SYMBOL(__strncpy_from_user);
81 EXPORT_SYMBOL(clear_user);
82 EXPORT_SYMBOL(__clear_user);
83 EXPORT_SYMBOL(copy_user_generic);
84 EXPORT_SYMBOL(copy_from_user);
85 EXPORT_SYMBOL(copy_to_user);
86 EXPORT_SYMBOL(copy_in_user);
87 EXPORT_SYMBOL(strnlen_user);
88
89 #ifdef CONFIG_PCI
90 EXPORT_SYMBOL(pci_mem_start);
91 #endif
92
93 EXPORT_SYMBOL(copy_page);
94 EXPORT_SYMBOL(clear_page);
95
96 EXPORT_SYMBOL(_cpu_pda);
97 #ifdef CONFIG_SMP
98 EXPORT_SYMBOL(cpu_data);
99 EXPORT_SYMBOL(__write_lock_failed);
100 EXPORT_SYMBOL(__read_lock_failed);
101
102 EXPORT_SYMBOL(smp_call_function);
103 EXPORT_SYMBOL(cpu_callout_map);
104 #endif
105
106 #ifdef CONFIG_VT
107 EXPORT_SYMBOL(screen_info);
108 #endif
109
110 EXPORT_SYMBOL(get_wchan);
111
112 EXPORT_SYMBOL(rtc_lock);
113
114 EXPORT_SYMBOL_GPL(set_nmi_callback);
115 EXPORT_SYMBOL_GPL(unset_nmi_callback);
116
117 /* Export string functions. We normally rely on gcc builtin for most of these,
118    but gcc sometimes decides not to inline them. */    
119 #undef memcpy
120 #undef memset
121 #undef memmove
122 #undef strlen
123
124 extern void * memset(void *,int,__kernel_size_t);
125 extern size_t strlen(const char *);
126 extern void * memmove(void * dest,const void *src,size_t count);
127 extern void * memcpy(void *,const void *,__kernel_size_t);
128 extern void * __memcpy(void *,const void *,__kernel_size_t);
129
130 EXPORT_SYMBOL(memset);
131 EXPORT_SYMBOL(strlen);
132 EXPORT_SYMBOL(memmove);
133 EXPORT_SYMBOL(memcpy);
134 EXPORT_SYMBOL(__memcpy);
135
136 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
137 /* prototypes are wrong, these are assembly with custom calling functions */
138 extern void rwsem_down_read_failed_thunk(void);
139 extern void rwsem_wake_thunk(void);
140 extern void rwsem_downgrade_thunk(void);
141 extern void rwsem_down_write_failed_thunk(void);
142 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
143 EXPORT_SYMBOL(rwsem_wake_thunk);
144 EXPORT_SYMBOL(rwsem_downgrade_thunk);
145 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
146 #endif
147
148 EXPORT_SYMBOL(empty_zero_page);
149
150 EXPORT_SYMBOL(die_chain);
151 EXPORT_SYMBOL(register_die_notifier);
152
153 #ifdef CONFIG_SMP
154 EXPORT_SYMBOL(cpu_sibling_map);
155 EXPORT_SYMBOL(smp_num_siblings);
156 #endif
157
158 extern void do_softirq_thunk(void);
159 EXPORT_SYMBOL(do_softirq_thunk);
160
161 #ifdef CONFIG_BUG
162 EXPORT_SYMBOL(out_of_line_bug);
163 #endif
164
165 EXPORT_SYMBOL(init_level4_pgt);
166
167 extern unsigned long __supported_pte_mask;
168 EXPORT_SYMBOL(__supported_pte_mask);
169
170 #ifdef CONFIG_SMP
171 EXPORT_SYMBOL(flush_tlb_page);
172 #endif
173
174 EXPORT_SYMBOL(cpu_khz);
175
176 EXPORT_SYMBOL(load_gs_index);
177