FreeBSD/sys/dev/isci/scil/scif_sas_smp_io_request.c
/**
 * @brief construct a smp Report Genernal command to the fw_device.
 *
 * @param[in] fw_controller The framework controller object.
 * @param[in] fw_device the framework device that the REPORT GENERAL command
 *       targets to.
 *
 * @return void * address to the built scif sas smp request.
 */
@brief construct a smp Report Genernal command to the fw_device.
@param[in] fw_controller The framework controller object.
@param[in] fw_device the framework device that the REPORT GENERAL command
targets to.

@return void * address to the built scif sas smp request.
@brief construct a smp Report Genernal command to the fw_device . @param [ in ] fw_controller The framework controller object . @param [ in ] fw_device the framework device that the REPORT GENERAL command targets to . @return void * address to the built scif sas smp request .
void * scif_sas_smp_request_construct_report_general(
   SCIF_SAS_CONTROLLER_T    * fw_controller,
   SCIF_SAS_REMOTE_DEVICE_T * fw_device
)
{
   SMP_REQUEST_T smp_report_general;
   scif_sas_smp_protocol_request_construct(
      &smp_report_general,
      SMP_FUNCTION_REPORT_GENERAL,
      sizeof(SMP_RESPONSE_REPORT_GENERAL_T) / sizeof(U32),
      0
   );
   smp_report_general.request.report_general.crc = 0;
   SCIF_LOG_INFO((
      sci_base_object_get_logger(fw_device),
      SCIF_LOG_OBJECT_IO_REQUEST | SCIF_LOG_OBJECT_DOMAIN_DISCOVERY,
      "SMP REPORT GENERAL -  Device:0x%x\n",
      fw_device
   ));
   return scif_sas_smp_request_build(
             fw_controller, fw_device, &smp_report_general, NULL, NULL);
}
void * scif_sas_smp_request_construct_report_general ( SCIF_SAS_CONTROLLER_T * fw_controller , SCIF_SAS_REMOTE_DEVICE_T * fw_device ) { SMP_REQUEST_T smp_report_general ; scif_sas_smp_protocol_request_construct ( & smp_report_general , SMP_FUNCTION_REPORT_GENERAL , sizeof ( SMP_RESPONSE_REPORT_GENERAL_T ) / sizeof ( U32 ) , 0 ) ; smp_report_general . request . report_general . crc = 0 ; SCIF_LOG_INFO ( ( sci_base_object_get_logger ( fw_device ) , SCIF_LOG_OBJECT_IO_REQUEST | SCIF_LOG_OBJECT_DOMAIN_DISCOVERY , " \n " , fw_device ) ) ; return scif_sas_smp_request_build ( fw_controller , fw_device , & smp_report_general , NULL , NULL ) ; }
@brief construct a smp Report Genernal command to the fw_device.
@brief construct a smp Report Genernal command to the fw_device .
// Build the REPORT GENERAL request.