* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / block / genhd.c
blobaece0447de7e067c76c2971e3e537b6a162e5c63
1 /*
2 * Code extracted from
3 * linux/kernel/hd.c
5 * Copyright (C) 1991-1998 Linus Torvalds
7 * Moved partition checking code to fs/partitions* - Russell King
8 * (linux@arm.uk.linux.org)
9 */
11 #include <linux/config.h>
12 #include <linux/fs.h>
13 #include <linux/genhd.h>
14 #include <linux/kernel.h>
15 #include <linux/blk.h>
16 #include <linux/init.h>
18 extern int parport_init(void);
19 extern int chr_dev_init(void);
20 extern int blk_dev_init(void);
21 #ifdef CONFIG_BLK_DEV_DAC960
22 extern void DAC960_Initialize(void);
23 #endif
24 extern int scsi_dev_init(void);
25 extern int net_dev_init(void);
26 extern void console_map_init(void);
27 extern int soc_probe(void);
28 extern int atmdev_init(void);
30 void __init device_init(void)
32 #ifdef CONFIG_PARPORT
33 parport_init();
34 #endif
36 * I2O must come before block and char as the I2O layer may
37 * in future claim devices that block/char most not touch.
39 #ifdef CONFIG_I2O
40 i2o_init();
41 #endif
42 chr_dev_init();
43 blk_dev_init();
44 sti();
45 #ifdef CONFIG_BLK_DEV_DAC960
46 DAC960_Initialize();
47 #endif
48 #ifdef CONFIG_FC4_SOC
49 /* This has to be done before scsi_dev_init */
50 soc_probe();
51 #endif
52 #ifdef CONFIG_SCSI
53 scsi_dev_init();
54 #endif
55 #ifdef CONFIG_BLK_CPQ_DA
56 cpqarray_init();
57 #endif
58 #ifdef CONFIG_NET
59 net_dev_init();
60 #endif
61 #ifdef CONFIG_ATM
62 (void) atmdev_init();
63 #endif
64 #ifdef CONFIG_VT
65 console_map_init();
66 #endif