FreeBSD/sys/boot/i386/libi386/bioscd.c
/*
 * Translate between BIOS device numbers and our private unit numbers.
 */
Translate between BIOS device numbers and our private unit numbers.
Translate between BIOS device numbers and our private unit numbers .
int
bc_bios2unit(int biosdev)
{
	int i;
	DEBUG("looking for bios device 0x%x", biosdev);
	for (i = 0; i < nbcinfo; i++) {
		DEBUG("bc unit %d is BIOS device 0x%x", i, bcinfo[i].bc_unit);
		if (bcinfo[i].bc_unit == biosdev)
			return(i);
	}
	return(-1);
}
int bc_bios2unit ( int biosdev ) { int i ; DEBUG ( " " , biosdev ) ; for ( i = 0 ; i < nbcinfo ; i ++ ) { DEBUG ( " " , i , bcinfo [ i ] . bc_unit ) ; if ( bcinfo [ i ] . bc_unit == biosdev ) return ( i ) ; } return ( -1 ) ; }
Translate between BIOS device numbers and our private unit numbers.
Translate between BIOS device numbers and our private unit numbers .