/* * Code extracted from * linux/kernel/hd.c * * Copyright (C) 1991-1998 Linus Torvalds * * Moved partition checking code to fs/partitions* - Russell King * (linux@arm.uk.linux.org) */ #include #include #include #include #include #include extern int parport_init(void); extern int chr_dev_init(void); extern int blk_dev_init(void); #ifdef CONFIG_BLK_DEV_DAC960 extern void DAC960_Initialize(void); #endif extern int scsi_dev_init(void); extern int net_dev_init(void); extern void console_map_init(void); extern int soc_probe(void); extern int atmdev_init(void); extern int i2o_init(void); extern int cpqarray_init(void); void __init device_init(void) { #ifdef CONFIG_PARPORT parport_init(); #endif /* * I2O must come before block and char as the I2O layer may * in future claim devices that block/char most not touch. */ #ifdef CONFIG_I2O i2o_init(); #endif chr_dev_init(); blk_dev_init(); sti(); #ifdef CONFIG_BLK_DEV_DAC960 DAC960_Initialize(); #endif #ifdef CONFIG_FC4_SOC /* This has to be done before scsi_dev_init */ soc_probe(); #endif #ifdef CONFIG_SCSI scsi_dev_init(); #endif #ifdef CONFIG_BLK_CPQ_DA cpqarray_init(); #endif #ifdef CONFIG_NET net_dev_init(); #endif #ifdef CONFIG_ATM (void) atmdev_init(); #endif #ifdef CONFIG_VT console_map_init(); #endif }