1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/autoconf.h>
13 #include <linux/module.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/config.h>
36 #include <linux/sem.h>
37 #include <linux/minix_fs.h>
38 #include <linux/ext2_fs.h>
39
40 #ifdef __alpha__
41 # include <asm/io.h>
42 # include <asm/hwrpb.h>
43
44 extern void bcopy (const char *src, char *dst, int len);
45 extern struct hwrpb_struct *hwrpb;
46
47
48 extern void __divl (void);
49 extern void __reml (void);
50 extern void __divq (void);
51 extern void __remq (void);
52 extern void __divlu (void);
53 extern void __remlu (void);
54 extern void __divqu (void);
55 extern void __remqu (void);
56
57 #endif
58
59 #ifdef CONFIG_NET
60 #include <linux/in.h>
61 #include <linux/net.h>
62 #include <linux/netdevice.h>
63 #include <linux/firewall.h>
64 #ifdef CONFIG_AX25
65 #include <net/ax25.h>
66 #endif
67 #ifdef CONFIG_INET
68 #include <linux/ip.h>
69 #include <linux/etherdevice.h>
70 #include <net/protocol.h>
71 #include <net/arp.h>
72 #include <net/ip.h>
73 #include <net/udp.h>
74 #include <net/tcp.h>
75 #include <net/route.h>
76 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
77 #include "../drivers/net/slhc.h"
78 #endif
79 #endif
80 #endif
81 #ifdef CONFIG_PCI
82 #include <linux/bios32.h>
83 #include <linux/pci.h>
84 #endif
85 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
86 #include <linux/msdos_fs.h>
87 #endif
88
89 #if defined(CONFIG_PROC_FS)
90 #include <linux/proc_fs.h>
91 #endif
92
93 #include <asm/irq.h>
94 extern char *get_options(char *str, int *ints);
95 extern void set_device_ro(int dev,int flag);
96 extern struct file_operations * get_blkfops(unsigned int);
97
98 extern void *sys_call_table;
99
100 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
101 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
102 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
103 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
104 #include "../drivers/net/8390.h"
105 #endif
106
107 #ifdef CONFIG_SCSI
108 #include "../drivers/scsi/scsi.h"
109 #include "../drivers/scsi/scsi_ioctl.h"
110 #include "../drivers/scsi/hosts.h"
111 #include "../drivers/scsi/constants.h"
112 #include <linux/scsicam.h>
113
114 extern int generic_proc_info(char *, char **, off_t, int, int, int);
115 #endif
116
117 int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
118 off_t offset, int length,
119 int inode, int func) = 0;
120
121 extern int sys_tz;
122 extern int request_dma(unsigned int dmanr, char * deviceID);
123 extern void free_dma(unsigned int dmanr);
124 extern int (*rarp_ioctl_hook)(int,void*);
125
126 extern void (* iABI_hook)(struct pt_regs * regs);
127
128 struct symbol_table symbol_table = {
129 #include <linux/symtab_begin.h>
130 #ifdef CONFIG_MODVERSIONS
131 { (void *)1 ,
132 SYMBOL_NAME_STR (Using_Versions) },
133 #endif
134
135
136 #ifdef __alpha__
137 X(inb),
138 X(inw),
139 X(inl),
140 X(outb),
141 X(outw),
142 X(outl),
143 X(bcopy),
144 X(hwrpb),
145 X(__divl),
146 X(__reml),
147 X(__divq),
148 X(__remq),
149 X(__divlu),
150 X(__remlu),
151 X(__divqu),
152 X(__remqu),
153 X(strlen),
154 X(memcmp),
155 X(memmove),
156 X(__constant_c_memset),
157 #endif
158
159
160 X(rename_module_symbol),
161 X(register_symtab),
162 X(get_options),
163
164
165
166 #ifndef EISA_bus__is_a_macro
167 X(EISA_bus),
168 #endif
169 #ifndef MCA_bus__is_a_macro
170 X(MCA_bus),
171 #endif
172 #ifndef wp_works_ok__is_a_macro
173 X(wp_works_ok),
174 #endif
175
176 #ifdef CONFIG_PCI
177
178 X(pcibios_present),
179 X(pcibios_find_class),
180 X(pcibios_find_device),
181 X(pcibios_read_config_byte),
182 X(pcibios_read_config_word),
183 X(pcibios_read_config_dword),
184 X(pcibios_strerror),
185 X(pcibios_write_config_byte),
186 X(pcibios_write_config_word),
187 X(pcibios_write_config_dword),
188 #endif
189
190
191 X(verify_area),
192 X(do_mmap),
193 X(do_munmap),
194 X(zeromap_page_range),
195 X(unmap_page_range),
196 X(insert_vm_struct),
197 X(merge_segments),
198
199
200 X(__get_free_pages),
201 X(free_pages),
202 X(kmalloc),
203 X(kfree),
204 X(vmalloc),
205 X(vremap),
206 X(vfree),
207 X(mem_map),
208 X(remap_page_range),
209
210
211 X(getname),
212 X(putname),
213 X(__iget),
214 X(iput),
215 X(namei),
216 X(lnamei),
217 X(open_namei),
218 X(close_fp),
219 X(check_disk_change),
220 X(invalidate_buffers),
221 X(invalidate_inodes),
222 X(fsync_dev),
223 X(permission),
224 X(inode_setattr),
225 X(inode_change_ok),
226 X(generic_mmap),
227 X(set_blocksize),
228 X(getblk),
229 X(bread),
230 X(breada),
231 X(brelse),
232 X(ll_rw_block),
233 X(__wait_on_buffer),
234 X(dcache_lookup),
235 X(dcache_add),
236 X(aout_core_dump),
237
238
239 X(register_chrdev),
240 X(unregister_chrdev),
241 X(register_blkdev),
242 X(unregister_blkdev),
243 X(tty_register_driver),
244 X(tty_unregister_driver),
245 X(tty_std_termios),
246
247
248 X(block_read),
249 X(block_write),
250 X(block_fsync),
251 X(wait_for_request),
252 X(blksize_size),
253 X(hardsect_size),
254 X(blk_size),
255 X(blk_dev),
256 X(is_read_only),
257 X(set_device_ro),
258 X(bmap),
259 X(sync_dev),
260 X(get_blkfops),
261
262
263 X(register_serial),
264 X(unregister_serial),
265
266
267 X(tty_hangup),
268 X(tty_wait_until_sent),
269 X(tty_check_change),
270 X(tty_hung_up_p),
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(CONFIG_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 #endif
538
539
540
541
542 #include <linux/symtab_end.h>
543 };
544
545
546
547