FreeBSD/sys/dev/isci/scil/sati_log_sense.c
/**
 * @brief This method constructs the SATI supported log page. This is a log
 *        containing the page codes of all the SATI supported log pages.
 *
 * @return n/a
 *
 */
@brief This method constructs the SATI supported log page. This is a log
containing the page codes of all the SATI supported log pages.

@return n/a
@brief This method constructs the SATI supported log page . This is a log containing the page codes of all the SATI supported log pages . @return n / a
static
void sati_supported_log_page_construct(
   SATI_TRANSLATOR_SEQUENCE_T  * sequence,
   void                        * scsi_io
)
{
   U32 next_byte;
   sati_set_data_byte(sequence, scsi_io, 0, 0x00);
   sati_set_data_byte(sequence, scsi_io, 1, 0x00);
   sati_set_data_byte(sequence, scsi_io, 2, 0x00);
   sati_set_data_byte(sequence, scsi_io, 3, 0x02);
   next_byte = 4;
   if(sequence->device->capabilities & SATI_DEVICE_CAP_SMART_SUPPORT)
   {
      sati_set_data_byte(
         sequence,
         scsi_io,
         next_byte,
         SCSI_LOG_PAGE_INFORMATION_EXCEPTION
      );
      next_byte = 5;
   }
   if(sequence->device->capabilities & SATI_DEVICE_CAP_SMART_SELF_TEST_SUPPORT)
   {
      sati_set_data_byte(
         sequence,
         scsi_io,
         next_byte,
         SCSI_LOG_PAGE_SELF_TEST
      );
   }
}
static void sati_supported_log_page_construct ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io ) { U32 next_byte ; sati_set_data_byte ( sequence , scsi_io , 0 , 0x00 ) ; sati_set_data_byte ( sequence , scsi_io , 1 , 0x00 ) ; sati_set_data_byte ( sequence , scsi_io , 2 , 0x00 ) ; sati_set_data_byte ( sequence , scsi_io , 3 , 0x02 ) ; next_byte = 4 ; if ( sequence -> device -> capabilities & SATI_DEVICE_CAP_SMART_SUPPORT ) { sati_set_data_byte ( sequence , scsi_io , next_byte , SCSI_LOG_PAGE_INFORMATION_EXCEPTION ) ; next_byte = 5 ; } if ( sequence -> device -> capabilities & SATI_DEVICE_CAP_SMART_SELF_TEST_SUPPORT ) { sati_set_data_byte ( sequence , scsi_io , next_byte , SCSI_LOG_PAGE_SELF_TEST ) ; } }
@brief This method constructs the SATI supported log page.
@brief This method constructs the SATI supported log page .
//set SPF = 0 and PAGE_CODE = 0 //set SUBPAGE_CODE = 0 //set the Page Length to (n-3) or 2 because only two log pages are supported //specify the next byte to be set