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