FreeBSD/sys/dev/isci/scil/sati_abort_task_set.c
/**
 * @brief This method will translate the abort task set SCSI task request into an
 *        ATA READ LOG EXT command. For more information on the parameters
 *        passed to this method, please reference sati_translate_command().
 *
 * @return Indicate if the command translation succeeded.
 * @retval SCI_SUCCESS This is returned if the command translation was
 *         successful.
 */
@brief This method will translate the abort task set SCSI task request into an
ATA READ LOG EXT command. For more information on the parameters
passed to this method, please reference sati_translate_command().

@return Indicate if the command translation succeeded.
@retval SCI_SUCCESS This is returned if the command translation was
successful.
@brief This method will translate the abort task set SCSI task request into an ATA READ LOG EXT command . For more information on the parameters passed to this method please reference sati_translate_command () . @return Indicate if the command translation succeeded . @retval SCI_SUCCESS This is returned if the command translation was successful .
SATI_STATUS sati_abort_task_set_translate_command(
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   void                       * scsi_io,
   void                       * ata_io
)
{
   U8 * register_fis;
   sati_ata_read_log_ext_construct(
      ata_io,
      sequence,
      ATA_LOG_PAGE_NCQ_ERROR,
      sizeof(ATA_NCQ_COMMAND_ERROR_LOG_T)
   );
   register_fis = sati_cb_get_h2d_register_fis_address(ata_io);
   sati_set_sata_command_flag(register_fis);
   sequence->type                = SATI_SEQUENCE_ABORT_TASK_SET;
   sequence->state               = SATI_SEQUENCE_STATE_AWAIT_RESPONSE;
   return SATI_SUCCESS;
}
SATI_STATUS sati_abort_task_set_translate_command ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io , void * ata_io ) { U8 * register_fis ; sati_ata_read_log_ext_construct ( ata_io , sequence , ATA_LOG_PAGE_NCQ_ERROR , sizeof ( ATA_NCQ_COMMAND_ERROR_LOG_T ) ) ; register_fis = sati_cb_get_h2d_register_fis_address ( ata_io ) ; sati_set_sata_command_flag ( register_fis ) ; sequence -> type = SATI_SEQUENCE_ABORT_TASK_SET ; sequence -> state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE ; return SATI_SUCCESS ; }
@brief This method will translate the abort task set SCSI task request into an
        ATA READ LOG EXT command.
@brief This method will translate the abort task set SCSI task request into an ATA READ LOG EXT command .
//ATA Read Log Ext with log address set to 0x10