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
270
271 X(register_filesystem),
272 X(unregister_filesystem),
273
274
275 X(register_binfmt),
276 X(unregister_binfmt),
277
278
279 X(lookup_exec_domain),
280 X(register_exec_domain),
281 X(unregister_exec_domain),
282
283
284 X(request_irq),
285 X(free_irq),
286 X(enable_irq),
287 X(disable_irq),
288 X(probe_irq_on),
289 X(probe_irq_off),
290 X(bh_active),
291 X(bh_mask),
292 X(bh_base),
293 X(add_timer),
294 X(del_timer),
295 X(tq_timer),
296 X(tq_immediate),
297 X(tq_scheduler),
298 X(tq_last),
299 X(timer_active),
300 X(timer_table),
301 X(intr_count),
302
303
304 X(autoirq_setup),
305 X(autoirq_report),
306
307
308 X(request_dma),
309 X(free_dma),
310 #ifdef HAVE_DISABLE_HLT
311 X(disable_hlt),
312 X(enable_hlt),
313 #endif
314
315
316 X(check_region),
317 X(request_region),
318 X(release_region),
319
320
321 X(wake_up),
322 X(wake_up_interruptible),
323 X(sleep_on),
324 X(interruptible_sleep_on),
325 X(schedule),
326 X(current_set),
327 #if defined(__i386__) && defined(__SMP__)
328 X(apic_reg),
329 #endif
330 X(jiffies),
331 X(xtime),
332 X(loops_per_sec),
333 X(need_resched),
334 X(kill_proc),
335 X(kill_pg),
336 X(kill_sl),
337
338
339 X(panic),
340 X(printk),
341 X(sprintf),
342 X(vsprintf),
343 X(kdevname),
344 X(simple_strtoul),
345 X(system_utsname),
346 X(sys_call_table),
347
348
349 X(send_sig),
350
351
352 X(setup_arg_pages),
353 X(copy_strings),
354 X(create_tables),
355 X(do_execve),
356 X(flush_old_exec),
357 X(open_inode),
358 X(read_exec),
359
360
361 X(si_meminfo),
362 #ifdef CONFIG_NET
363
364 X(sock_register),
365 X(sock_unregister),
366 #ifdef CONFIG_FIREWALL
367
368 X(register_firewall),
369 X(unregister_firewall),
370 #endif
371 #ifdef CONFIG_INET
372
373 X(inet_add_protocol),
374 X(inet_del_protocol),
375 X(rarp_ioctl_hook),
376 X(init_etherdev),
377 X(ip_rt_route),
378 X(arp_send),
379 #ifdef CONFIG_IP_FORWARD
380 X(ip_forward),
381 #endif
382 #if defined(CONFIG_ULTRA) || defined(CONFIG_WD80x3) || \
383 defined(CONFIG_EL2) || defined(CONFIG_NE2000) || \
384 defined(CONFIG_E2100) || defined(CONFIG_HPLAN_PLUS) || \
385 defined(CONFIG_HPLAN) || defined(CONFIG_AC3200)
386
387 X(ei_open),
388 X(ei_debug),
389 X(ei_interrupt),
390 X(ethdev_init),
391 X(NS8390_init),
392 #endif
393 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
394
395 X(slhc_init),
396 X(slhc_free),
397 X(slhc_remember),
398 X(slhc_compress),
399 X(slhc_uncompress),
400 X(slhc_toss),
401 #endif
402 #endif
403
404 X(register_netdevice_notifier),
405 X(unregister_netdevice_notifier),
406 #endif
407
408
409 #ifdef CONFIG_AX25
410 X(ax25_encapsulate),
411 X(ax25_rebuild_header),
412 #endif
413 #ifdef CONFIG_INET
414 X(register_netdev),
415 X(unregister_netdev),
416 X(ether_setup),
417 X(eth_type_trans),
418 X(eth_copy_and_sum),
419 X(alloc_skb),
420 X(kfree_skb),
421 X(dev_alloc_skb),
422 X(dev_kfree_skb),
423 X(netif_rx),
424 X(dev_rint),
425 X(dev_tint),
426 X(irq2dev_map),
427 X(dev_add_pack),
428 X(dev_remove_pack),
429 X(dev_get),
430 X(dev_ioctl),
431 X(dev_queue_xmit),
432 X(dev_base),
433 X(dev_close),
434 X(arp_find),
435 X(n_tty_ioctl),
436 X(tty_register_ldisc),
437 X(kill_fasync),
438 #endif
439 #ifdef CONFIG_SCSI
440
441
442
443
444
445
446
447
448
449
450 X(in_scan_scsis),
451 X(scsi_register_module),
452 X(scsi_unregister_module),
453 X(scsi_free),
454 X(scsi_malloc),
455 X(scsi_register),
456 X(scsi_unregister),
457 X(scsicam_bios_param),
458 X(allocate_device),
459 X(scsi_do_cmd),
460 X(scsi_command_size),
461 X(scsi_init_malloc),
462 X(scsi_init_free),
463 X(scsi_ioctl),
464 X(print_command),
465 X(print_msg),
466 X(print_status),
467 X(print_sense),
468 X(dma_free_sectors),
469 X(kernel_scsi_ioctl),
470 X(need_isa_buffer),
471 X(request_queueable),
472 X(dispatch_scsi_info_ptr),
473 X(generic_proc_info),
474 X(scsi_devices),
475 X(gendisk_head),
476 X(resetup_one_dev),
477 #if defined(CONFIG_PROC_FS)
478 X(proc_print_scsidevice),
479 #endif
480 #else
481
482
483
484
485 X(gendisk_head),
486 X(resetup_one_dev),
487 X(dispatch_scsi_info_ptr),
488 #endif
489
490 X(set_writetime),
491 X(sys_tz),
492 X(__wait_on_super),
493 X(file_fsync),
494 X(clear_inode),
495 X(refile_buffer),
496 X(___strtok),
497 X(init_fifo),
498 X(super_blocks),
499 X(chrdev_inode_operations),
500 X(blkdev_inode_operations),
501 X(read_ahead),
502 X(get_hash_table),
503 X(get_empty_inode),
504 X(insert_inode_hash),
505 X(event),
506 X(__down),
507 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
508
509 X(msdos_bmap),
510 X(msdos_create),
511 X(msdos_file_read),
512 X(msdos_file_write),
513 X(msdos_lookup),
514 X(msdos_mkdir),
515 X(msdos_mmap),
516 X(msdos_put_inode),
517 X(msdos_put_super),
518 X(msdos_read_inode),
519 X(msdos_read_super),
520 X(msdos_readdir),
521 X(msdos_rename),
522 X(msdos_rmdir),
523 X(msdos_smap),
524 X(msdos_statfs),
525 X(msdos_truncate),
526 X(msdos_unlink),
527 X(msdos_unlink_umsdos),
528 X(msdos_write_inode),
529 #endif
530 #ifdef CONFIG_PROC_FS
531 X(proc_register),
532 X(proc_unregister),
533 X(in_group_p),
534 X(generate_cluster),
535 X(proc_scsi),
536 X(proc_scsi_inode_operations),
537 #endif
538
539
540
541
542 #include <linux/symtab_end.h>
543 };
544
545
546
547