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