FreeBSD/sys/dev/isci/scil/sati_util.c
/**
 * @brief This method will construct the common response IU in the user
 *           request's response IU location.
 *
 * @param[out] rsp_iu This parameter specifies the user request's
 *                response IU to be constructed.
 * @param[in]  scsi_status This parameter specifies the SCSI status
 *                value for the user's IO request.
 * @param[in]  sense_data_length This parameter specifies the sense data
 *                length for response IU.
 * @param[in]  data_present The parameter specifies the specific
 *                data present value for response IU.
 *
 * @return none
 */
@brief This method will construct the common response IU in the user
request's response IU location.

@param[out] rsp_iu This parameter specifies the user request's
response IU to be constructed.
@param[in]  scsi_status This parameter specifies the SCSI status
value for the user's IO request.
@param[in]  sense_data_length This parameter specifies the sense data
length for response IU.
@param[in]  data_present The parameter specifies the specific
data present value for response IU.

@return none
@brief This method will construct the common response IU in the user request ' s response IU location . @param [ out ] rsp_iu This parameter specifies the user request ' s response IU to be constructed . @param [ in ] scsi_status This parameter specifies the SCSI status value for the user ' s IO request . @param [ in ] sense_data_length This parameter specifies the sense data length for response IU . @param [ in ] data_present The parameter specifies the specific data present value for response IU . @return none
void sati_scsi_common_response_iu_construct(
   SCI_SSP_RESPONSE_IU_T * rsp_iu,
   U8                      scsi_status,
   U8                      sense_data_length,
   U8                      data_present
)
{
   rsp_iu->sense_data_length[3] = sense_data_length;
   rsp_iu->sense_data_length[2] = 0;
   rsp_iu->sense_data_length[1] = 0;
   rsp_iu->sense_data_length[0] = 0;
   rsp_iu->status               = scsi_status;
   rsp_iu->data_present         = data_present;
}
void sati_scsi_common_response_iu_construct ( SCI_SSP_RESPONSE_IU_T * rsp_iu , U8 scsi_status , U8 sense_data_length , U8 data_present ) { rsp_iu -> sense_data_length [ 3 ] = sense_data_length ; rsp_iu -> sense_data_length [ 2 ] = 0 ; rsp_iu -> sense_data_length [ 1 ] = 0 ; rsp_iu -> sense_data_length [ 0 ] = 0 ; rsp_iu -> status = scsi_status ; rsp_iu -> data_present = data_present ; }
@brief This method will construct the common response IU in the user
           request's response IU location.
@brief This method will construct the common response IU in the user request ' s response IU location .