Esempio n. 1
0
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
}
Esempio n. 2
0
void devscsi_init(void)
{
  uint8_t i;
  /* This is a bit crude - we need to do proper scans of each controller
     according to devs/luns etc */
  for (i = 0; i < NSCSI; i++) {
    kprintf("\rSCSI drive %d: ", i);
    scsi_dev_init(i);
  }
  kprintf("\r%d SCSI device(s) detected.\n", nscsi);
}