Beispiel #1
0
/* Call this to initialize SDC/blkdev interface */
void devsdc_init(void)
{
	kputs("SDC: ");
	if (devsdc_exist()) {
	    	/* turn on uber-secret SDC LBA mode*/
		sdc_reg_ctl = 0x43; 
		sdc_present = 1;
		kputs("Ok.\n");
	}
	else kprintf("Not found.\n");
}
Beispiel #2
0
/* Call this to initialize SDC/blkdev interface */
void devsdc_init()
{
	blkdev_t *blk;

	kputs("SDC: ");
	if( devsdc_exist() ){
		/* register first drive */
		blk=blkdev_alloc();
		blk->driver_data = 0 ;
		blk->transfer = devsdc_transfer;
		blk->flush = devsdc_flush;
		blk->drive_lba_count=-1;
		/* register second drive */
		blk=blkdev_alloc();
		blk->driver_data = 1 ;
		blk->transfer = devsdc_transfer;
		blk->flush = devsdc_flush;
		blk->drive_lba_count=-1;
		kputs("Ok.\n");
	}
	else kprintf("Not Found.\n");
}