FreeBSD/sys/dev/isci/scil/sati_mode_sense_6.c
/**
 * @brief This method will perform data translation from the supplied ATA
 *        input data (i.e. an ATA IDENTIFY DEVICE block) into a INFORMATIONAL
 *        EXCEPTIONS CONTROL mode page format.  The data will be written
 *        into the user's mode page data buffer.  This function operates
 *        specifically for MODE SENSE 6 commands.
 *        For more information on the parameters passed to this method,
 *        please reference sati_translate_data().
 *
 * @return none.
 */
@brief This method will perform data translation from the supplied ATA
input data  into a INFORMATIONAL
EXCEPTIONS CONTROL mode page format.  The data will be written
into the user's mode page data buffer.  This function operates
specifically for MODE SENSE 6 commands.
For more information on the parameters passed to this method,
please reference sati_translate_data().

@return none.
@brief This method will perform data translation from the supplied ATA input data into a INFORMATIONAL EXCEPTIONS CONTROL mode page format . The data will be written into the user ' s mode page data buffer . This function operates specifically for MODE SENSE 6 commands . For more information on the parameters passed to this method please reference sati_translate_data () . @return none .
void sati_mode_sense_6_informational_excp_control_translate_data(
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   void                       * ata_input_data,
   void                       * scsi_io
)
{
   ATA_IDENTIFY_DEVICE_DATA_T * identify = (ATA_IDENTIFY_DEVICE_DATA_T*)
                                           ata_input_data;
   U8   data_length = (U8) sati_mode_sense_calculate_page_header(scsi_io, 6)
                           + SCSI_MODE_PAGE_1C_LENGTH;
   U32  page_offset = sati_mode_sense_6_translate_data(
                         sequence, identify, scsi_io, data_length
                      );
   sati_mode_sense_informational_excp_control_translate_data(
      sequence, scsi_io, identify, page_offset
   );
}
void sati_mode_sense_6_informational_excp_control_translate_data ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * ata_input_data , void * scsi_io ) { ATA_IDENTIFY_DEVICE_DATA_T * identify = ( ATA_IDENTIFY_DEVICE_DATA_T * ) ata_input_data ; U8 data_length = ( U8 ) sati_mode_sense_calculate_page_header ( scsi_io , 6 ) + SCSI_MODE_PAGE_1C_LENGTH ; U32 page_offset = sati_mode_sense_6_translate_data ( sequence , identify , scsi_io , data_length ) ; sati_mode_sense_informational_excp_control_translate_data ( sequence , scsi_io , identify , page_offset ) ; }
@brief This method will perform data translation from the supplied ATA
        input data (i.e.
@brief This method will perform data translation from the supplied ATA input data ( i . e .