FreeBSD/sys/dev/isci/scil/sati_util.c
/**
 * @brief This method will construct a Mode Select ATA SET FEATURES command
 *        For example, Enable/Disable Write Cache, Enable/Disable Read Ahead
 *
 * @return N/A
 *
 */
@brief This method will construct a Mode Select ATA SET FEATURES command
For example, Enable/Disable Write Cache, Enable/Disable Read Ahead

@return N/A
@brief This method will construct a Mode Select ATA SET FEATURES command For example Enable / Disable Write Cache Enable / Disable Read Ahead @return N / A
void sati_ata_set_features_construct(
   void                       * ata_io,
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   U8                           feature
)
{
   U8 * register_fis = sati_cb_get_h2d_register_fis_address(ata_io);
   sati_set_ata_command(register_fis, ATA_SET_FEATURES);
   sati_set_ata_features(register_fis, feature);
   sati_ata_non_data_command(ata_io, sequence);
}
void sati_ata_set_features_construct ( void * ata_io , SATI_TRANSLATOR_SEQUENCE_T * sequence , U8 feature ) { U8 * register_fis = sati_cb_get_h2d_register_fis_address ( ata_io ) ; sati_set_ata_command ( register_fis , ATA_SET_FEATURES ) ; sati_set_ata_features ( register_fis , feature ) ; sati_ata_non_data_command ( ata_io , sequence ) ; }
@brief This method will construct a Mode Select ATA SET FEATURES command
        For example, Enable/Disable Write Cache, Enable/Disable Read Ahead
@brief This method will construct a Mode Select ATA SET FEATURES command For example Enable / Disable Write Cache Enable / Disable Read Ahead