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
37 #ifdef CONFIG_NET
38 #include <linux/net.h>
39 #include <linux/netdevice.h>
40 #ifdef CONFIG_INET
41 #include <linux/ip.h>
42 #include <linux/etherdevice.h>
43 #include <net/protocol.h>
44 #include <net/arp.h>
45 #include <net/tcp.h>
46 #include <net/route.h>
47 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
48 #include "../drivers/net/slhc.h"
49 #endif
50 #endif
51 #endif
52 #ifdef CONFIG_PCI
53 #include <linux/bios32.h>
54 #include <linux/pci.h>
55 #endif
56 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
57 #include <linux/msdos_fs.h>
58 #endif
59
60 #if defined(CONFIG_PROC_FS)
61 #include <linux/proc_fs.h>
62 #endif
63
64 #include <asm/irq.h>
65 extern char *get_options(char *str, int *ints);
66 extern void set_device_ro(int dev,int flag);
67 extern struct file_operations * get_blkfops(unsigned int);
68
69 extern void *sys_call_table;
70
71 #ifdef CONFIG_FTAPE
72 extern char * ftape_big_buffer;
73 #endif
74
75 #ifdef CONFIG_SCSI
76 #include "../drivers/scsi/scsi.h"
77 #include "../drivers/scsi/scsi_ioctl.h"
78 #include "../drivers/scsi/hosts.h"
79 #include "../drivers/scsi/constants.h"
80 #include <linux/scsicam.h>
81
82 extern int generic_proc_info(char *, char **, off_t, int, int, int);
83 #endif
84
85 int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
86 off_t offset, int length,
87 int inode, int func) = 0;
88
89 #if defined(CONFIG_PROC_FS)
90 extern struct proc_dir_entry scsi_dir[];
91 extern struct proc_dir_entry scsi_hba_dir[];
92 #endif
93
94 extern int sys_tz;
95 extern int request_dma(unsigned int dmanr, char * deviceID);
96 extern void free_dma(unsigned int dmanr);
97 extern int (*rarp_ioctl_hook)(int,void*);
98
99 extern int close_fp(struct file *filp);
100 extern void (* iABI_hook)(struct pt_regs * regs);
101
102 struct symbol_table symbol_table = {
103 #include <linux/symtab_begin.h>
104 #ifdef CONFIG_MODVERSIONS
105 { (void *)1 ,
106 SYMBOL_NAME_STR (Using_Versions) },
107 #endif
108
109 X(rename_module_symbol),
110 X(register_symtab),
111 X(get_options),
112
113
114
115 #ifndef EISA_bus__is_a_macro
116 X(EISA_bus),
117 #endif
118 #ifndef MCA_bus__is_a_macro
119 X(MCA_bus),
120 #endif
121 #ifndef wp_works_ok__is_a_macro
122 X(wp_works_ok),
123 #endif
124
125 #ifdef CONFIG_PCI
126
127 X(pcibios_present),
128 X(pcibios_find_class),
129 X(pcibios_find_device),
130 X(pcibios_read_config_byte),
131 X(pcibios_read_config_word),
132 X(pcibios_read_config_dword),
133 X(pcibios_strerror),
134 X(pcibios_write_config_byte),
135 X(pcibios_write_config_word),
136 X(pcibios_write_config_dword),
137 #endif
138
139
140 X(verify_area),
141 X(do_mmap),
142 X(do_munmap),
143 X(zeromap_page_range),
144 X(unmap_page_range),
145 X(insert_vm_struct),
146 X(merge_segments),
147
148
149 X(__get_free_pages),
150 X(free_pages),
151 X(kmalloc),
152 X(kfree),
153 X(vmalloc),
154 X(vremap),
155 X(vfree),
156 X(mem_map),
157
158
159 X(getname),
160 X(putname),
161 X(__iget),
162 X(iput),
163 X(namei),
164 X(lnamei),
165 X(open_namei),
166 X(close_fp),
167 X(check_disk_change),
168 X(invalidate_buffers),
169 X(invalidate_inodes),
170 X(fsync_dev),
171 X(permission),
172 X(inode_setattr),
173 X(inode_change_ok),
174 X(generic_mmap),
175 X(set_blocksize),
176 X(getblk),
177 X(bread),
178 X(breada),
179 X(brelse),
180 X(ll_rw_block),
181 X(__wait_on_buffer),
182 X(dcache_lookup),
183 X(dcache_add),
184 X(aout_core_dump),
185
186
187 X(register_chrdev),
188 X(unregister_chrdev),
189 X(register_blkdev),
190 X(unregister_blkdev),
191 X(tty_register_driver),
192 X(tty_unregister_driver),
193 X(tty_std_termios),
194
195
196 X(block_read),
197 X(block_write),
198 X(block_fsync),
199 X(wait_for_request),
200 X(blksize_size),
201 X(hardsect_size),
202 X(blk_size),
203 X(blk_dev),
204 X(is_read_only),
205 X(set_device_ro),
206 X(bmap),
207 X(sync_dev),
208 X(get_blkfops),
209
210
211 X(register_serial),
212 X(unregister_serial),
213
214
215 X(tty_hangup),
216 X(tty_wait_until_sent),
217 X(tty_check_change),
218 X(tty_hung_up_p),
219
220
221 X(register_filesystem),
222 X(unregister_filesystem),
223
224
225 X(register_binfmt),
226 X(unregister_binfmt),
227
228
229 X(lookup_exec_domain),
230 X(register_exec_domain),
231 X(unregister_exec_domain),
232
233
234 X(request_irq),
235 X(free_irq),
236 X(enable_irq),
237 X(disable_irq),
238 X(bh_active),
239 X(bh_mask),
240 X(bh_base),
241 X(add_timer),
242 X(del_timer),
243 X(tq_timer),
244 X(tq_immediate),
245 X(tq_scheduler),
246 X(tq_last),
247 X(timer_active),
248 X(timer_table),
249 X(intr_count),
250
251
252 X(autoirq_setup),
253 X(autoirq_report),
254
255
256 X(request_dma),
257 X(free_dma),
258 #ifdef HAVE_DISABLE_HLT
259 X(disable_hlt),
260 X(enable_hlt),
261 #endif
262
263
264 X(check_region),
265 X(request_region),
266 X(release_region),
267
268
269 X(wake_up),
270 X(wake_up_interruptible),
271 X(sleep_on),
272 X(interruptible_sleep_on),
273 X(schedule),
274 X(current),
275 X(jiffies),
276 X(xtime),
277 X(loops_per_sec),
278 X(need_resched),
279 X(kill_proc),
280 X(kill_pg),
281 X(kill_sl),
282
283
284 X(panic),
285 X(printk),
286 X(sprintf),
287 X(vsprintf),
288 X(simple_strtoul),
289 X(system_utsname),
290 X(sys_call_table),
291
292
293 X(send_sig),
294
295
296 X(setup_arg_pages),
297 X(copy_strings),
298 X(create_tables),
299 X(do_execve),
300 X(flush_old_exec),
301 X(open_inode),
302 X(read_exec),
303
304
305 X(si_meminfo),
306 #ifdef CONFIG_NET
307
308 X(sock_register),
309 X(sock_unregister),
310
311 #ifdef CONFIG_INET
312 X(inet_add_protocol),
313 X(inet_del_protocol),
314 X(rarp_ioctl_hook),
315 X(init_etherdev),
316 X(ip_rt_route),
317 X(arp_send),
318 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
319
320 X(slhc_init),
321 X(slhc_free),
322 X(slhc_remember),
323 X(slhc_compress),
324 X(slhc_uncompress),
325 X(slhc_toss),
326 #endif
327 #endif
328
329 X(register_netdevice_notifier),
330 X(unregister_netdevice_notifier),
331 #endif
332
333 #ifdef CONFIG_FTAPE
334
335 X(ftape_big_buffer),
336 #endif
337 #ifdef CONFIG_INET
338
339 X(register_netdev),
340 X(unregister_netdev),
341 X(ether_setup),
342 X(eth_type_trans),
343 X(alloc_skb),
344 X(kfree_skb),
345 X(dev_alloc_skb),
346 X(dev_kfree_skb),
347 X(netif_rx),
348 X(dev_rint),
349 X(dev_tint),
350 X(irq2dev_map),
351 X(dev_add_pack),
352 X(dev_remove_pack),
353 X(dev_get),
354 X(dev_ioctl),
355 X(dev_queue_xmit),
356 X(dev_base),
357 X(dev_close),
358 X(arp_find),
359 X(n_tty_ioctl),
360 X(tty_register_ldisc),
361 X(kill_fasync),
362 #endif
363 #ifdef CONFIG_SCSI
364
365
366
367
368
369
370
371
372
373
374 X(in_scan_scsis),
375 X(scsi_register_module),
376 X(scsi_unregister_module),
377 X(scsi_free),
378 X(scsi_malloc),
379 X(scsi_register),
380 X(scsi_unregister),
381 X(scsicam_bios_param),
382 X(allocate_device),
383 X(scsi_do_cmd),
384 X(scsi_command_size),
385 X(scsi_init_malloc),
386 X(scsi_init_free),
387 X(scsi_ioctl),
388 X(print_command),
389 X(print_msg),
390 X(print_status),
391 X(print_sense),
392 X(dma_free_sectors),
393 X(kernel_scsi_ioctl),
394 X(need_isa_buffer),
395 X(request_queueable),
396 X(dispatch_scsi_info_ptr),
397 X(generic_proc_info),
398 X(scsi_devices),
399 X(gendisk_head),
400 X(resetup_one_dev),
401 #if defined(CONFIG_PROC_FS)
402 X(proc_print_scsidevice),
403 #endif
404 #else
405
406
407
408
409 X(gendisk_head),
410 X(resetup_one_dev),
411
412 #if defined(CONFIG_PROC_FS)
413 X(scsi_dir),
414 X(scsi_hba_dir),
415 #endif
416 X(dispatch_scsi_info_ptr),
417 #endif
418
419 X(set_writetime),
420 X(sys_tz),
421 X(__wait_on_super),
422 X(file_fsync),
423 X(clear_inode),
424 X(refile_buffer),
425 X(___strtok),
426 X(init_fifo),
427 X(super_blocks),
428 X(chrdev_inode_operations),
429 X(blkdev_inode_operations),
430 X(read_ahead),
431 X(get_hash_table),
432 X(get_empty_inode),
433 X(insert_inode_hash),
434 X(event),
435 X(__down),
436 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
437
438 X(msdos_bmap),
439 X(msdos_create),
440 X(msdos_file_read),
441 X(msdos_file_write),
442 X(msdos_lookup),
443 X(msdos_mkdir),
444 X(msdos_mmap),
445 X(msdos_put_inode),
446 X(msdos_put_super),
447 X(msdos_read_inode),
448 X(msdos_read_super),
449 X(msdos_readdir),
450 X(msdos_rename),
451 X(msdos_rmdir),
452 X(msdos_smap),
453 X(msdos_statfs),
454 X(msdos_truncate),
455 X(msdos_unlink),
456 X(msdos_unlink_umsdos),
457 X(msdos_write_inode),
458 #endif
459 #ifdef CONFIG_PROC_FS
460 X(proc_register),
461 X(proc_unregister),
462 #endif
463
464
465
466
467 #include <linux/symtab_end.h>
468 };
469
470
471
472