added a lot of printk output to ease writing of emulator
[linux-2.4.21-pre4.git] / arch / i386 / kernel / i386_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/elfcore.h>
6 #include <linux/mca.h>
7 #include <linux/sched.h>
8 #include <linux/in6.h>
9 #include <linux/interrupt.h>
10 #include <linux/smp_lock.h>
11 #include <linux/pm.h>
12 #include <linux/pci.h>
13 #include <linux/apm_bios.h>
14 #include <linux/kernel.h>
15 #include <linux/string.h>
16 #include <linux/tty.h>
17
18 #include <asm/semaphore.h>
19 #include <asm/processor.h>
20 #include <asm/i387.h>
21 #include <asm/uaccess.h>
22 #include <asm/checksum.h>
23 #include <asm/io.h>
24 #include <asm/hardirq.h>
25 #include <asm/delay.h>
26 #include <asm/irq.h>
27 #include <asm/mmx.h>
28 #include <asm/desc.h>
29 #include <asm/pgtable.h>
30 #include <asm/pgalloc.h>
31
32 extern void dump_thread(struct pt_regs *, struct user *);
33 extern spinlock_t rtc_lock;
34
35 #if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
36 extern void machine_real_restart(unsigned char *, int);
37 EXPORT_SYMBOL(machine_real_restart);
38 extern void default_idle(void);
39 EXPORT_SYMBOL(default_idle);
40 #endif
41
42 #ifdef CONFIG_SMP
43 extern void FASTCALL( __write_lock_failed(rwlock_t *rw));
44 extern void FASTCALL( __read_lock_failed(rwlock_t *rw));
45 #endif
46
47 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
48 extern struct drive_info_struct drive_info;
49 EXPORT_SYMBOL(drive_info);
50 #endif
51
52 extern unsigned long get_cmos_time(void);
53
54 /* platform dependent support */
55 EXPORT_SYMBOL(boot_cpu_data);
56 #ifdef CONFIG_EISA
57 EXPORT_SYMBOL(EISA_bus);
58 #endif
59 EXPORT_SYMBOL(MCA_bus);
60 EXPORT_SYMBOL(__verify_write);
61 EXPORT_SYMBOL(dump_thread);
62 EXPORT_SYMBOL(dump_fpu);
63 EXPORT_SYMBOL(dump_extended_fpu);
64 EXPORT_SYMBOL(__ioremap);
65 EXPORT_SYMBOL(iounmap);
66 EXPORT_SYMBOL(enable_irq);
67 EXPORT_SYMBOL(disable_irq);
68 EXPORT_SYMBOL(disable_irq_nosync);
69 EXPORT_SYMBOL(probe_irq_mask);
70 EXPORT_SYMBOL(kernel_thread);
71 EXPORT_SYMBOL(pm_idle);
72 EXPORT_SYMBOL(pm_power_off);
73 EXPORT_SYMBOL(get_cmos_time);
74 EXPORT_SYMBOL(apm_info);
75 EXPORT_SYMBOL(gdt);
76 EXPORT_SYMBOL(empty_zero_page);
77
78 #ifdef CONFIG_DEBUG_IOVIRT
79 EXPORT_SYMBOL(__io_virt_debug);
80 #endif
81
82 EXPORT_SYMBOL_NOVERS(__down_failed);
83 EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
84 EXPORT_SYMBOL_NOVERS(__down_failed_trylock);
85 EXPORT_SYMBOL_NOVERS(__up_wakeup);
86 /* Networking helper routines. */
87 EXPORT_SYMBOL(csum_partial_copy_generic);
88 /* Delay loops */
89 EXPORT_SYMBOL(__udelay);
90 EXPORT_SYMBOL(__delay);
91 EXPORT_SYMBOL(__const_udelay);
92
93 EXPORT_SYMBOL_NOVERS(__get_user_1);
94 EXPORT_SYMBOL_NOVERS(__get_user_2);
95 EXPORT_SYMBOL_NOVERS(__get_user_4);
96
97 EXPORT_SYMBOL(strtok);
98 EXPORT_SYMBOL(strpbrk);
99 EXPORT_SYMBOL(strstr);
100
101 EXPORT_SYMBOL(strncpy_from_user);
102 EXPORT_SYMBOL(__strncpy_from_user);
103 EXPORT_SYMBOL(clear_user);
104 EXPORT_SYMBOL(__clear_user);
105 EXPORT_SYMBOL(__generic_copy_from_user);
106 EXPORT_SYMBOL(__generic_copy_to_user);
107 EXPORT_SYMBOL(strnlen_user);
108
109 EXPORT_SYMBOL(pci_alloc_consistent);
110 EXPORT_SYMBOL(pci_free_consistent);
111
112 #ifdef CONFIG_PCI
113 EXPORT_SYMBOL(pcibios_penalize_isa_irq);
114 EXPORT_SYMBOL(pci_mem_start);
115 #endif
116
117 #ifdef CONFIG_PCI_BIOS
118 EXPORT_SYMBOL(pcibios_set_irq_routing);
119 EXPORT_SYMBOL(pcibios_get_irq_routing_table);
120 #endif
121
122 #ifdef CONFIG_X86_USE_3DNOW
123 EXPORT_SYMBOL(_mmx_memcpy);
124 EXPORT_SYMBOL(mmx_clear_page);
125 EXPORT_SYMBOL(mmx_copy_page);
126 #endif
127
128 #ifdef CONFIG_SMP
129 EXPORT_SYMBOL(cpu_data);
130 EXPORT_SYMBOL(kernel_flag_cacheline);
131 EXPORT_SYMBOL(smp_num_cpus);
132 EXPORT_SYMBOL(cpu_online_map);
133 EXPORT_SYMBOL_NOVERS(__write_lock_failed);
134 EXPORT_SYMBOL_NOVERS(__read_lock_failed);
135
136 /* Global SMP irq stuff */
137 EXPORT_SYMBOL(synchronize_irq);
138 EXPORT_SYMBOL(global_irq_holder);
139 EXPORT_SYMBOL(__global_cli);
140 EXPORT_SYMBOL(__global_sti);
141 EXPORT_SYMBOL(__global_save_flags);
142 EXPORT_SYMBOL(__global_restore_flags);
143 EXPORT_SYMBOL(smp_call_function);
144
145 /* TLB flushing */
146 EXPORT_SYMBOL(flush_tlb_page);
147 #endif
148
149 #ifdef CONFIG_X86_IO_APIC
150 EXPORT_SYMBOL(IO_APIC_get_PCI_irq_vector);
151 #endif
152
153 #ifdef CONFIG_MCA
154 EXPORT_SYMBOL(machine_id);
155 #endif
156
157 #ifdef CONFIG_VT
158 EXPORT_SYMBOL(screen_info);
159 #endif
160
161 EXPORT_SYMBOL(get_wchan);
162
163 EXPORT_SYMBOL(rtc_lock);
164
165 #undef memcpy
166 #undef memset
167 extern void * memset(void *,int,__kernel_size_t);
168 extern void * memcpy(void *,const void *,__kernel_size_t);
169 EXPORT_SYMBOL_NOVERS(memcpy);
170 EXPORT_SYMBOL_NOVERS(memset);
171
172 #ifdef CONFIG_HAVE_DEC_LOCK
173 EXPORT_SYMBOL(atomic_dec_and_lock);
174 #endif
175
176 extern int is_sony_vaio_laptop;
177 EXPORT_SYMBOL(is_sony_vaio_laptop);
178
179 #ifdef CONFIG_MULTIQUAD
180 EXPORT_SYMBOL(xquad_portio);
181 #endif