FreeBSD/sys/dev/isci/scil/sati_util.c
/**
 * @brief This method will return length of sense data.
 *
 * @return sense data length
 */
@brief This method will return length of sense data.
@return sense data length
@brief This method will return length of sense data . @return sense data length
U8 sati_scsi_get_sense_data_length(SATI_TRANSLATOR_SEQUENCE_T * sequence, void * scsi_io)
{
    U8 response_code;
    response_code = sati_scsi_get_sense_data_response_code(sequence);
    switch (response_code)
    {
    case SCSI_FIXED_CURRENT_RESPONSE_CODE:
    case SCSI_FIXED_DEFERRED_RESPONSE_CODE:
        return SCSI_FIXED_SENSE_DATA_BASE_LENGTH;
    break;
    case SCSI_DESCRIPTOR_CURRENT_RESPONSE_CODE:
    case SCSI_DESCRIPTOR_DEFERRED_RESPONSE_CODE:
        return sati_scsi_get_descriptor_sense_data_length(sequence, scsi_io);
    break;
    }
    return SCSI_FIXED_SENSE_DATA_BASE_LENGTH;
}
U8 sati_scsi_get_sense_data_length ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io ) { U8 response_code ; response_code = sati_scsi_get_sense_data_response_code ( sequence ) ; switch ( response_code ) { case SCSI_FIXED_CURRENT_RESPONSE_CODE : case SCSI_FIXED_DEFERRED_RESPONSE_CODE : return SCSI_FIXED_SENSE_DATA_BASE_LENGTH ; break ; case SCSI_DESCRIPTOR_CURRENT_RESPONSE_CODE : case SCSI_DESCRIPTOR_DEFERRED_RESPONSE_CODE : return sati_scsi_get_descriptor_sense_data_length ( sequence , scsi_io ) ; break ; } return SCSI_FIXED_SENSE_DATA_BASE_LENGTH ; }
@brief This method will return length of sense data.
@brief This method will return length of sense data .