예제 #1
0
파일: genhd.c 프로젝트: andreiw/mkunity
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
}
예제 #2
0
파일: devscsi_discard.c 프로젝트: 8l/FUZIX
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);
}