1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/module.h>
13 #include <linux/config.h>
14 #include <linux/kernel.h>
15 #include <linux/smp.h>
16 #include <linux/fs.h>
17 #include <linux/blkdev.h>
18 #include <linux/sched.h>
19 #include <linux/kernel_stat.h>
20 #include <linux/mm.h>
21 #include <linux/malloc.h>
22 #include <linux/ptrace.h>
23 #include <linux/sys.h>
24 #include <linux/utsname.h>
25 #include <linux/interrupt.h>
26 #include <linux/ioport.h>
27 #include <linux/timer.h>
28 #include <linux/binfmts.h>
29 #include <linux/personality.h>
30 #include <linux/termios.h>
31 #include <linux/tqueue.h>
32 #include <linux/tty.h>
33 #include <linux/serial.h>
34 #include <linux/locks.h>
35 #include <linux/string.h>
36 #include <linux/delay.h>
37 #include <linux/sem.h>
38 #include <linux/minix_fs.h>
39 #include <linux/ext2_fs.h>
40 #include <linux/random.h>
41 #include <linux/mount.h>
42 #include <linux/pagemap.h>
43 #include <linux/sysctl.h>
44 #include <linux/genhd.h>
45
46 extern unsigned char aux_device_present, kbd_read_mask;
47
48 #ifdef CONFIG_NET
49 #include <linux/in.h>
50 #include <linux/net.h>
51 #include <linux/netdevice.h>
52 #include <linux/firewall.h>
53
54 #include <linux/trdevice.h>
55
56 #ifdef CONFIG_AX25
57 #include <net/ax25.h>
58 #endif
59 #ifdef CONFIG_INET
60 #include <linux/ip.h>
61 #include <linux/etherdevice.h>
62 #include <net/protocol.h>
63 #include <net/arp.h>
64 #include <net/ip.h>
65 #include <net/udp.h>
66 #include <net/tcp.h>
67 #include <net/route.h>
68 #include <linux/net_alias.h>
69 #endif
70 #ifdef CONFIG_NET_ALIAS
71 #include <linux/net_alias.h>
72 #endif
73 #endif
74 #ifdef CONFIG_PCI
75 #include <linux/bios32.h>
76 #include <linux/pci.h>
77 #endif
78 #if defined(CONFIG_PROC_FS)
79 #include <linux/proc_fs.h>
80 #endif
81 #ifdef CONFIG_KERNELD
82 #include <linux/kerneld.h>
83 #endif
84 #include <asm/irq.h>
85 #ifdef __SMP__
86 #include <linux/smp.h>
87 #endif
88
89 #ifndef CONFIG_SCSI
90 #if defined(CONFIG_PROC_FS)
91
92
93
94
95
96 extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
97 off_t offset, int length, int inout);
98 extern struct inode_operations proc_scsi_inode_operations;
99 #endif
100 #endif
101
102 extern char *get_options(char *str, int *ints);
103 extern void set_device_ro(int dev,int flag);
104 extern struct file_operations * get_blkfops(unsigned int);
105
106 extern void *sys_call_table;
107
108 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
109 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
110 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
111 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
112 #include "../drivers/net/8390.h"
113 #endif
114
115 extern int sys_tz;
116 extern int request_dma(unsigned int dmanr, char * deviceID);
117 extern void free_dma(unsigned int dmanr);
118 extern int (*rarp_ioctl_hook)(int,void*);
119
120 extern void (* iABI_hook)(struct pt_regs * regs);
121
122 #ifdef CONFIG_BINFMT_ELF
123 #include <linux/elfcore.h>
124 extern int dump_fpu(elf_fpregset_t *);
125 #endif
126
127 struct symbol_table symbol_table = {
128 #include <linux/symtab_begin.h>
129 #ifdef MODVERSIONS
130 { (void *)1 ,
131 SYMBOL_NAME_STR (Using_Versions) },
132 #endif
133
134
135 X(rename_module_symbol),
136 X(register_symtab),
137 #ifdef CONFIG_KERNELD
138 X(kerneld_send),
139 #endif
140 X(get_options),
141
142
143
144 #ifndef EISA_bus__is_a_macro
145 X(EISA_bus),
146 #endif
147 #ifndef MCA_bus__is_a_macro
148 X(MCA_bus),
149 #endif
150 #ifndef wp_works_ok__is_a_macro
151 X(wp_works_ok),
152 #endif
153
154 #ifdef CONFIG_PCI
155
156 X(pcibios_present),
157 X(pcibios_find_class),
158 X(pcibios_find_device),
159 X(pcibios_read_config_byte),
160 X(pcibios_read_config_word),
161 X(pcibios_read_config_dword),
162 X(pcibios_strerror),
163 X(pcibios_write_config_byte),
164 X(pcibios_write_config_word),
165 X(pcibios_write_config_dword),
166 #endif
167
168
169 X(verify_area),
170 X(do_mmap),
171 X(do_munmap),
172 X(insert_vm_struct),
173 X(merge_segments),
174
175
176 X(__get_free_pages),
177 X(free_pages),
178 X(kmalloc),
179 X(kfree),
180 X(vmalloc),
181 X(vremap),
182 X(vfree),
183 X(mem_map),
184 X(remap_page_range),
185 X(high_memory),
186 X(update_vm_cache),
187
188
189 X(getname),
190 X(putname),
191 X(__iget),
192 X(iput),
193 X(namei),
194 X(lnamei),
195 X(open_namei),
196 X(close_fp),
197 X(check_disk_change),
198 X(invalidate_buffers),
199 X(invalidate_inodes),
200 X(fsync_dev),
201 X(permission),
202 X(inode_setattr),
203 X(inode_change_ok),
204 X(generic_mmap),
205 X(set_blocksize),
206 X(getblk),
207 X(bread),
208 X(breada),
209 X(__brelse),
210 X(__bforget),
211 X(ll_rw_block),
212 X(__wait_on_buffer),
213 X(dcache_lookup),
214 X(dcache_add),
215 X(aout_core_dump),
216 X(add_blkdev_randomness),
217 X(generic_file_read),
218 X(generic_readpage),
219
220
221 X(register_chrdev),
222 X(unregister_chrdev),
223 X(register_blkdev),
224 X(unregister_blkdev),
225 X(tty_register_driver),
226 X(tty_unregister_driver),
227 X(tty_std_termios),
228
229
230 X(block_read),
231 X(block_write),
232 X(block_fsync),
233 X(wait_for_request),
234 X(blksize_size),
235 X(hardsect_size),
236 X(blk_size),
237 X(blk_dev),
238 X(is_read_only),
239 X(set_device_ro),
240 X(bmap),
241 X(sync_dev),
242 X(get_blkfops),
243
244
245 X(register_serial),
246 X(unregister_serial),
247
248
249 X(tty_hangup),
250 X(tty_wait_until_sent),
251 X(tty_check_change),
252 X(tty_hung_up_p),
253 X(do_SAK),
254 X(console_print),
255
256
257 X(register_filesystem),
258 X(unregister_filesystem),
259
260
261 X(register_binfmt),
262 X(unregister_binfmt),
263
264
265 X(lookup_exec_domain),
266 X(register_exec_domain),
267 X(unregister_exec_domain),
268
269
270 X(register_sysctl_table),
271 X(unregister_sysctl_table),
272
273
274 X(request_irq),
275 X(free_irq),
276 X(enable_irq),
277 X(disable_irq),
278 X(probe_irq_on),
279 X(probe_irq_off),
280 X(bh_active),
281 X(bh_mask),
282 X(bh_base),
283 X(add_timer),
284 X(del_timer),
285 X(tq_timer),
286 X(tq_immediate),
287 X(tq_scheduler),
288 X(tq_last),
289 X(timer_active),
290 X(timer_table),
291 X(intr_count),
292
293
294 X(autoirq_setup),
295 X(autoirq_report),
296
297
298 X(request_dma),
299 X(free_dma),
300 #ifdef HAVE_DISABLE_HLT
301 X(disable_hlt),
302 X(enable_hlt),
303 #endif
304
305
306 X(check_region),
307 X(request_region),
308 X(release_region),
309
310
311 X(wake_up),
312 X(wake_up_interruptible),
313 X(sleep_on),
314 X(interruptible_sleep_on),
315 X(schedule),
316 X(current_set),
317 X(jiffies),
318 X(xtime),
319 X(do_gettimeofday),
320 X(loops_per_sec),
321 X(need_resched),
322 X(kstat),
323 X(kill_proc),
324 X(kill_pg),
325 X(kill_sl),
326
327
328 X(panic),
329 X(printk),
330 X(sprintf),
331 X(vsprintf),
332 X(kdevname),
333 X(simple_strtoul),
334 X(system_utsname),
335 X(sys_call_table),
336
337
338 X(send_sig),
339
340
341 X(setup_arg_pages),
342 X(copy_strings),
343 X(create_tables),
344 X(do_execve),
345 X(flush_old_exec),
346 X(open_inode),
347 X(read_exec),
348
349
350 X(si_meminfo),
351 #ifdef CONFIG_NET
352
353 X(sock_register),
354 X(sock_unregister),
355 #ifdef CONFIG_FIREWALL
356
357 X(register_firewall),
358 X(unregister_firewall),
359 #endif
360 #ifdef CONFIG_INET
361
362 X(inet_add_protocol),
363 X(inet_del_protocol),
364 X(rarp_ioctl_hook),
365 X(init_etherdev),
366 X(ip_rt_route),
367 X(ip_rt_put),
368 X(arp_send),
369 #ifdef CONFIG_IP_FORWARD
370 X(ip_forward),
371 #endif
372 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
373 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
374 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
375 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
376
377 X(ei_open),
378 X(ei_close),
379 X(ei_debug),
380 X(ei_interrupt),
381 X(ethdev_init),
382 X(NS8390_init),
383 #endif
384 #ifdef CONFIG_NET_ALIAS
385 #include <linux/net_alias.h>
386 #endif
387 #endif
388
389 X(register_netdevice_notifier),
390 X(unregister_netdevice_notifier),
391 #ifdef CONFIG_NET_ALIAS
392 X(register_net_alias_type),
393 X(unregister_net_alias_type),
394 #endif
395 #endif
396
397
398 #ifdef CONFIG_AX25
399 X(ax25_encapsulate),
400 X(ax25_rebuild_header),
401 #endif
402 #ifdef CONFIG_INET
403 X(register_netdev),
404 X(unregister_netdev),
405 X(ether_setup),
406 X(eth_type_trans),
407 X(eth_copy_and_sum),
408 X(alloc_skb),
409 X(kfree_skb),
410 X(dev_alloc_skb),
411 X(dev_kfree_skb),
412 X(netif_rx),
413 X(dev_rint),
414 X(dev_tint),
415 X(irq2dev_map),
416 X(dev_add_pack),
417 X(dev_remove_pack),
418 X(dev_get),
419 X(dev_ioctl),
420 X(dev_queue_xmit),
421 X(dev_base),
422 X(dev_close),
423 X(arp_find),
424 X(n_tty_ioctl),
425 X(tty_register_ldisc),
426 X(kill_fasync),
427 #endif
428 #ifndef CONFIG_SCSI
429
430
431
432
433
434
435
436 X(gendisk_head),
437 X(resetup_one_dev),
438 #if defined(CONFIG_PROC_FS)
439
440
441
442
443 X(proc_scsi_inode_operations),
444 X(dispatch_scsi_info_ptr),
445 #endif
446 #endif
447
448 X(set_writetime),
449 X(sys_tz),
450 X(__wait_on_super),
451 X(file_fsync),
452 X(clear_inode),
453 X(refile_buffer),
454 X(___strtok),
455 X(init_fifo),
456 X(super_blocks),
457 X(chrdev_inode_operations),
458 X(blkdev_inode_operations),
459 X(read_ahead),
460 X(get_hash_table),
461 X(get_empty_inode),
462 X(insert_inode_hash),
463 X(event),
464 X(__down),
465
466 X(add_mouse_randomness),
467 X(fasync_helper),
468
469 X(aux_device_present),
470 X(kbd_read_mask),
471
472 #ifdef CONFIG_TR
473 X(tr_setup),
474 X(tr_type_trans),
475 #endif
476
477 #ifdef CONFIG_BINFMT_ELF
478 X(dump_fpu),
479 #endif
480
481
482
483
484
485 #include <linux/symtab_end.h>
486 };
487
488
489
490