src/dev/arm/ufs_device.cc
/**
 * SCSI status check function. generic device test, creates sense codes
 * Future versions may include TODO: device checks, which is why this is
 * in a separate function.
 */
SCSI status check function. generic device test, creates sense codes
Future versions may include TODO: device checks, which is why this is
in a separate function.
SCSI status check function . generic device test creates sense codes Future versions may include TODO : device checks which is why this is in a separate function .
void
UFSHostDevice::UFSSCSIDevice::statusCheck(uint8_t status,
                                uint8_t* sensecodelist)
{
    for (uint8_t count = 0; count < 19; count++)
        sensecodelist[count] = 0;
    sensecodelist[0] = 18; 
    sensecodelist[1] = 0x70; 
    sensecodelist[3] = status & 0xF; 
    sensecodelist[8] = 0x1F; 
}
void UFSHostDevice :: UFSSCSIDevice :: statusCheck ( uint8_t status , uint8_t * sensecodelist ) { for ( uint8_t count = 0 ; count < 19 ; count ++ ) sensecodelist [ count ] = 0 ; sensecodelist [ 0 ] = 18 ; sensecodelist [ 1 ] = 0x70 ; sensecodelist [ 3 ] = status & 0xF ; sensecodelist [ 8 ] = 0x1F ; }
SCSI status check function.
SCSI status check function .
//sense length //we send a valid frame //mask to be sure + sensecode //data length