FreeBSD/sys/dev/isci/scil/sati_util.c
/**
 * @brief This method will construct a Write Uncorrectable ATA command that
 *        will write one sector with a pseudo or flagged error. The type of
 *        error is specified by the feature value.
 *
 * @return N/A
 *
 */
@brief This method will construct a Write Uncorrectable ATA command that
will write one sector with a pseudo or flagged error. The type of
error is specified by the feature value.

@return N/A
@brief This method will construct a Write Uncorrectable ATA command that will write one sector with a pseudo or flagged error . The type of error is specified by the feature value . @return N / A
void sati_ata_write_uncorrectable_construct(
   void                       * ata_io,
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   U8                           feature_value
)
{
   U8 * register_fis = sati_cb_get_h2d_register_fis_address(ata_io);
   sati_set_ata_command(register_fis, ATA_WRITE_UNCORRECTABLE);
   sati_set_ata_features(register_fis, feature_value);
   sati_set_ata_sector_count(register_fis, 0x0001);
   sati_ata_non_data_command(ata_io, sequence);
}
void sati_ata_write_uncorrectable_construct ( void * ata_io , SATI_TRANSLATOR_SEQUENCE_T * sequence , U8 feature_value ) { U8 * register_fis = sati_cb_get_h2d_register_fis_address ( ata_io ) ; sati_set_ata_command ( register_fis , ATA_WRITE_UNCORRECTABLE ) ; sati_set_ata_features ( register_fis , feature_value ) ; sati_set_ata_sector_count ( register_fis , 0x0001 ) ; sati_ata_non_data_command ( ata_io , sequence ) ; }
@brief This method will construct a Write Uncorrectable ATA command that
        will write one sector with a pseudo or flagged error.
@brief This method will construct a Write Uncorrectable ATA command that will write one sector with a pseudo or flagged error .