void device_setup(void) { extern void console_map_init(void); struct gendisk *p; int nr=0; chr_dev_init(); blk_dev_init(); sti(); #ifdef CONFIG_SCSI scsi_dev_init(); #endif #ifdef CONFIG_INET net_dev_init(); #endif console_map_init(); for (p = gendisk_head ; p ; p=p->next) { setup_dev(p); nr += p->nr_real; } #ifdef CONFIG_BLK_DEV_RAM #ifdef CONFIG_BLK_DEV_INITRD if (initrd_start && mount_initrd) initrd_load(); else #endif rd_load(); #endif }
int __init device_init(void) { rwlock_init(&gendisk_lock); blk_dev_init(); sti(); #ifdef CONFIG_NET net_dev_init(); #endif #ifdef CONFIG_ATM (void) atmdev_init(); #endif #ifdef CONFIG_VT console_map_init(); #endif return 0; }