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/fs.h>
16 #include <linux/blkdev.h>
17 #include <linux/sched.h>
18 #include <linux/kernel_stat.h>
19 #include <linux/mm.h>
20 #include <linux/malloc.h>
21 #include <linux/ptrace.h>
22 #include <linux/sys.h>
23 #include <linux/utsname.h>
24 #include <linux/interrupt.h>
25 #include <linux/ioport.h>
26 #include <linux/timer.h>
27 #include <linux/binfmts.h>
28 #include <linux/personality.h>
29 #include <linux/termios.h>
30 #include <linux/tqueue.h>
31 #include <linux/tty.h>
32 #include <linux/serial.h>
33 #include <linux/locks.h>
34 #include <linux/string.h>
35 #include <linux/delay.h>
36 #include <linux/sem.h>
37 #include <linux/minix_fs.h>
38 #include <linux/ext2_fs.h>
39 #include <linux/random.h>
40 #include <linux/mount.h>
41
42 extern unsigned char aux_device_present, kbd_read_mask;
43
44 #ifdef __alpha__
45 # include <asm/io.h>
46 # include <asm/hwrpb.h>
47
48 extern void bcopy (const char *src, char *dst, int len);
49 extern struct hwrpb_struct *hwrpb;
50
51
52 extern void __divl (void);
53 extern void __reml (void);
54 extern void __divq (void);
55 extern void __remq (void);
56 extern void __divlu (void);
57 extern void __remlu (void);
58 extern void __divqu (void);
59 extern void __remqu (void);
60
61 #endif
62
63 #ifdef CONFIG_NET
64 #include <linux/in.h>
65 #include <linux/net.h>
66 #include <linux/netdevice.h>
67 #include <linux/firewall.h>
68
69 #include <linux/trdevice.h>
70
71 #ifdef CONFIG_AX25
72 #include <net/ax25.h>
73 #endif
74 #ifdef CONFIG_INET
75 #include <linux/ip.h>
76 #include <linux/etherdevice.h>
77 #include <net/protocol.h>
78 #include <net/arp.h>
79 #include <net/ip.h>
80 #include <net/udp.h>
81 #include <net/tcp.h>
82 #include <net/route.h>
83 #include <linux/net_alias.h>
84 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
85 #include "../drivers/net/slhc.h"
86 #endif
87 #endif
88 #ifdef CONFIG_NET_ALIAS
89 #include <linux/net_alias.h>
90 #endif
91 #endif
92 #ifdef CONFIG_PCI
93 #include <linux/bios32.h>
94 #include <linux/pci.h>
95 #endif
96 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
97 #include <linux/msdos_fs.h>
98 #endif
99
100 #if defined(CONFIG_PROC_FS)
101 #include <linux/proc_fs.h>
102 #endif
103
104 #include <asm/irq.h>
105 #ifdef __SMP__
106 #include <linux/smp.h>
107 #endif
108
109 extern char *get_options(char *str, int *ints);
110 extern void set_device_ro(int dev,int flag);
111 extern struct file_operations * get_blkfops(unsigned int);
112
113 extern void *sys_call_table;
114
115 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
116 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
117 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
118 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
119 #include "../drivers/net/8390.h"
120 #endif
121
122 #ifdef CONFIG_SCSI
123 #include "../drivers/scsi/scsi.h"
124 #include "../drivers/scsi/scsi_ioctl.h"
125 #include "../drivers/scsi/hosts.h"
126 #include "../drivers/scsi/constants.h"
127 #include "../drivers/scsi/sd.h"
128 #include <linux/scsicam.h>
129
130 extern int generic_proc_info(char *, char **, off_t, int, int, int);
131 #endif
132
133 extern int sys_tz;
134 extern int request_dma(unsigned int dmanr, char * deviceID);
135 extern void free_dma(unsigned int dmanr);
136 extern int (*rarp_ioctl_hook)(int,void*);
137
138 extern void (* iABI_hook)(struct pt_regs * regs);
139
140 #ifdef CONFIG_BINFMT_ELF
141 #include <linux/elfcore.h>
142 extern int dump_fpu(elf_fpregset_t *);
143 #endif
144
145 struct symbol_table symbol_table = {
146 #include <linux/symtab_begin.h>
147 #ifdef MODVERSIONS
148 { (void *)1 ,
149 SYMBOL_NAME_STR (Using_Versions) },
150 #endif
151
152
153 #ifdef __alpha__
154 X(_inb),
155 X(_inw),
156 X(_inl),
157 X(_outb),
158 X(_outw),
159 X(_outl),
160 X(bcopy),
161 X(hwrpb),
162 X(__divl),
163 X(__reml),
164 X(__divq),
165 X(__remq),
166 X(__divlu),
167 X(__remlu),
168 X(__divqu),
169 X(__remqu),
170 X(strlen),
171 X(memcmp),
172 X(memmove),
173 X(__constant_c_memset),
174 #endif
175
176
177 X(rename_module_symbol),
178 X(register_symtab),
179 X(get_options),
180
181
182
183 #ifndef EISA_bus__is_a_macro
184 X(EISA_bus),
185 #endif
186 #ifndef MCA_bus__is_a_macro
187 X(MCA_bus),
188 #endif
189 #ifndef wp_works_ok__is_a_macro
190 X(wp_works_ok),
191 #endif
192
193 #ifdef CONFIG_PCI
194
195 X(pcibios_present),
196 X(pcibios_find_class),
197 X(pcibios_find_device),
198 X(pcibios_read_config_byte),
199 X(pcibios_read_config_word),
200 X(pcibios_read_config_dword),
201 X(pcibios_strerror),
202 X(pcibios_write_config_byte),
203 X(pcibios_write_config_word),
204 X(pcibios_write_config_dword),
205 #endif
206
207
208 X(verify_area),
209 X(do_mmap),
210 X(do_munmap),
211 X(insert_vm_struct),
212 X(merge_segments),
213
214
215 X(__get_free_pages),
216 X(free_pages),
217 X(kmalloc),
218 X(kfree),
219 X(vmalloc),
220 X(vremap),
221 X(vfree),
222 X(mem_map),
223 X(remap_page_range),
224 X(high_memory),
225
226
227 X(getname),
228 X(putname),
229 X(__iget),
230 X(iput),
231 X(namei),
232 X(lnamei),
233 X(open_namei),
234 X(close_fp),
235 X(check_disk_change),
236 X(invalidate_buffers),
237 X(invalidate_inodes),
238 X(fsync_dev),
239 X(permission),
240 X(inode_setattr),
241 X(inode_change_ok),
242 X(generic_mmap),
243 X(set_blocksize),
244 X(getblk),
245 X(bread),
246 X(breada),
247 X(__brelse),
248 X(__bforget),
249 X(ll_rw_block),
250 X(__wait_on_buffer),
251 X(dcache_lookup),
252 X(dcache_add),
253 X(aout_core_dump),
254 X(add_blkdev_randomness),
255
256
257 X(register_chrdev),
258 X(unregister_chrdev),
259 X(register_blkdev),
260 X(unregister_blkdev),
261 X(tty_register_driver),
262 X(tty_unregister_driver),
263 X(tty_std_termios),
264
265
266 X(block_read),
267 X(block_write),
268 X(block_fsync),
269 X(wait_for_request),
270 X(blksize_size),
271 X(hardsect_size),
272 X(blk_size),
273 X(blk_dev),
274 X(is_read_only),
275 X(set_device_ro),
276 X(bmap),
277 X(sync_dev),
278 X(get_blkfops),
279
280
281 X(register_serial),
282 X(unregister_serial),
283
284
285 X(tty_hangup),
286 X(tty_wait_until_sent),
287 X(tty_check_change),
288 X(tty_hung_up_p),
289 X(do_SAK),
290 X(console_print),
291
292
293 X(register_filesystem),
294 X(unregister_filesystem),
295
296
297 X(register_binfmt),
298 X(unregister_binfmt),
299
300
301 X(lookup_exec_domain),
302 X(register_exec_domain),
303 X(unregister_exec_domain),
304
305
306 X(request_irq),
307 X(free_irq),
308 X(enable_irq),
309 X(disable_irq),
310 X(probe_irq_on),
311 X(probe_irq_off),
312 X(bh_active),
313 X(bh_mask),
314 X(bh_base),
315 X(add_timer),
316 X(del_timer),
317 X(tq_timer),
318 X(tq_immediate),
319 X(tq_scheduler),
320 X(tq_last),
321 X(timer_active),
322 X(timer_table),
323 X(intr_count),
324
325
326 X(autoirq_setup),
327 X(autoirq_report),
328
329
330 X(request_dma),
331 X(free_dma),
332 #ifdef HAVE_DISABLE_HLT
333 X(disable_hlt),
334 X(enable_hlt),
335 #endif
336
337
338 X(check_region),
339 X(request_region),
340 X(release_region),
341
342
343 X(wake_up),
344 X(wake_up_interruptible),
345 X(sleep_on),
346 X(interruptible_sleep_on),
347 X(schedule),
348 X(current_set),
349 #if defined(__i386__) && defined(__SMP__)
350 X(apic_reg),
351 #endif
352 X(jiffies),
353 X(xtime),
354 X(do_gettimeofday),
355 X(loops_per_sec),
356 X(need_resched),
357 X(kstat),
358 X(kill_proc),
359 X(kill_pg),
360 X(kill_sl),
361
362
363 X(panic),
364 X(printk),
365 X(sprintf),
366 X(vsprintf),
367 X(kdevname),
368 X(simple_strtoul),
369 X(system_utsname),
370 X(sys_call_table),
371
372
373 X(send_sig),
374
375
376 X(setup_arg_pages),
377 X(copy_strings),
378 X(create_tables),
379 X(do_execve),
380 X(flush_old_exec),
381 X(open_inode),
382 X(read_exec),
383
384
385 X(si_meminfo),
386 #ifdef CONFIG_NET
387
388 X(sock_register),
389 X(sock_unregister),
390 #ifdef CONFIG_FIREWALL
391
392 X(register_firewall),
393 X(unregister_firewall),
394 #endif
395 #ifdef CONFIG_INET
396
397 X(inet_add_protocol),
398 X(inet_del_protocol),
399 X(rarp_ioctl_hook),
400 X(init_etherdev),
401 X(ip_rt_route),
402 X(ip_rt_put),
403 X(arp_send),
404 #ifdef CONFIG_IP_FORWARD
405 X(ip_forward),
406 #endif
407 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
408 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
409 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
410 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
411
412 X(ei_open),
413 X(ei_close),
414 X(ei_debug),
415 X(ei_interrupt),
416 X(ethdev_init),
417 X(NS8390_init),
418 #endif
419 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
420
421 X(slhc_init),
422 X(slhc_free),
423 X(slhc_remember),
424 X(slhc_compress),
425 X(slhc_uncompress),
426 X(slhc_toss),
427 #endif
428 #ifdef CONFIG_NET_ALIAS
429 #include <linux/net_alias.h>
430 #endif
431 #endif
432
433 X(register_netdevice_notifier),
434 X(unregister_netdevice_notifier),
435 #ifdef CONFIG_NET_ALIAS
436 X(register_net_alias_type),
437 X(unregister_net_alias_type),
438 #endif
439 #endif
440
441
442 #ifdef CONFIG_AX25
443 X(ax25_encapsulate),
444 X(ax25_rebuild_header),
445 #endif
446 #ifdef CONFIG_INET
447 X(register_netdev),
448 X(unregister_netdev),
449 X(ether_setup),
450 X(eth_type_trans),
451 X(eth_copy_and_sum),
452 X(alloc_skb),
453 X(kfree_skb),
454 X(dev_alloc_skb),
455 X(dev_kfree_skb),
456 X(netif_rx),
457 X(dev_rint),
458 X(dev_tint),
459 X(irq2dev_map),
460 X(dev_add_pack),
461 X(dev_remove_pack),
462 X(dev_get),
463 X(dev_ioctl),
464 X(dev_queue_xmit),
465 X(dev_base),
466 X(dev_close),
467 X(arp_find),
468 X(n_tty_ioctl),
469 X(tty_register_ldisc),
470 X(kill_fasync),
471 #endif
472 #ifdef CONFIG_SCSI
473
474
475
476
477
478
479
480 X(scsi_register_module),
481 X(scsi_unregister_module),
482 X(scsi_free),
483 X(scsi_malloc),
484 X(scsi_register),
485 X(scsi_unregister),
486 X(scsicam_bios_param),
487 X(allocate_device),
488 X(scsi_do_cmd),
489 X(scsi_command_size),
490 X(scsi_init_malloc),
491 X(scsi_init_free),
492 X(scsi_ioctl),
493 X(scsi_mark_host_bus_reset),
494 X(print_command),
495 X(print_msg),
496 X(print_status),
497 X(print_sense),
498 X(dma_free_sectors),
499 X(kernel_scsi_ioctl),
500 X(need_isa_buffer),
501 X(request_queueable),
502 X(generic_proc_info),
503 X(scsi_devices),
504 X(gendisk_head),
505 X(resetup_one_dev),
506 #if defined(CONFIG_PROC_FS)
507 X(proc_print_scsidevice),
508 #endif
509 #else
510
511
512
513
514 X(gendisk_head),
515 X(resetup_one_dev),
516 #endif
517
518 X(set_writetime),
519 X(sys_tz),
520 X(__wait_on_super),
521 X(file_fsync),
522 X(clear_inode),
523 X(refile_buffer),
524 X(___strtok),
525 X(init_fifo),
526 X(super_blocks),
527 X(chrdev_inode_operations),
528 X(blkdev_inode_operations),
529 X(read_ahead),
530 X(get_hash_table),
531 X(get_empty_inode),
532 X(insert_inode_hash),
533 X(event),
534 X(__down),
535 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
536
537 X(msdos_bmap),
538 X(msdos_create),
539 X(msdos_file_read),
540 X(msdos_file_write),
541 X(msdos_lookup),
542 X(msdos_mkdir),
543 X(msdos_mmap),
544 X(msdos_put_inode),
545 X(msdos_put_super),
546 X(msdos_read_inode),
547 X(msdos_read_super),
548 X(msdos_readdir),
549 X(msdos_rename),
550 X(msdos_rmdir),
551 X(msdos_smap),
552 X(msdos_statfs),
553 X(msdos_truncate),
554 X(msdos_unlink),
555 X(msdos_unlink_umsdos),
556 X(msdos_write_inode),
557 #endif
558 #ifdef CONFIG_PROC_FS
559 X(proc_register),
560 X(proc_unregister),
561 X(in_group_p),
562 X(generate_cluster),
563 #ifdef CONFIG_SCSI
564 X(proc_scsi),
565 X(proc_scsi_inode_operations),
566 #endif
567 X(proc_net_inode_operations),
568 X(proc_net),
569 #endif
570
571 X(add_mouse_randomness),
572 X(fasync_helper),
573
574 X(aux_device_present),
575 X(kbd_read_mask),
576
577 #ifdef CONFIG_TR
578 X(tr_setup),
579 X(tr_type_trans),
580 #endif
581
582 #ifdef CONFIG_BINFMT_ELF
583 X(dump_fpu),
584 #endif
585
586
587
588
589
590 #include <linux/symtab_end.h>
591 };
592
593
594
595