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