FreeBSD/sys/dev/isci/scil/sati_util.c
/**
 * @brief This method will set the data direction, protocol, and transfer
 *        kength for an ATA non-data command.
 *
 * @pre It is expected that the user will use this method for setting these
 *      values in a non-data ATA command constuct.
 *
 * @param[out] ata_io This parameter specifies the ATA IO request structure
 *             for which to build the IDENTIFY DEVICE command.
 * @param[in]  sequence This parameter specifies the translator sequence
 *             for which the command is being constructed.
 *
 * @return none.
 */
@brief This method will set the data direction, protocol, and transfer
kength for an ATA non-data command.

@pre It is expected that the user will use this method for setting these
values in a non-data ATA command constuct.

@param[out] ata_io This parameter specifies the ATA IO request structure
for which to build the IDENTIFY DEVICE command.
@param[in]  sequence This parameter specifies the translator sequence
for which the command is being constructed.

@return none.
@brief This method will set the data direction protocol and transfer kength for an ATA non - data command . @pre It is expected that the user will use this method for setting these values in a non - data ATA command constuct . @param [ out ] ata_io This parameter specifies the ATA IO request structure for which to build the IDENTIFY DEVICE command . @param [ in ] sequence This parameter specifies the translator sequence for which the command is being constructed . @return none .
void sati_ata_non_data_command(
   void                        * ata_io,
   SATI_TRANSLATOR_SEQUENCE_T  * sequence
)
{
   sequence->data_direction      = SATI_DATA_DIRECTION_NONE;
   sequence->protocol            = SAT_PROTOCOL_NON_DATA;
   sequence->ata_transfer_length = 0;
}
void sati_ata_non_data_command ( void * ata_io , SATI_TRANSLATOR_SEQUENCE_T * sequence ) { sequence -> data_direction = SATI_DATA_DIRECTION_NONE ; sequence -> protocol = SAT_PROTOCOL_NON_DATA ; sequence -> ata_transfer_length = 0 ; }
@brief This method will set the data direction, protocol, and transfer
        kength for an ATA non-data command.
@brief This method will set the data direction protocol and transfer kength for an ATA non - data command .