FreeBSD/sys/dev/isci/scil/scif_sas_smp_io_request.c
/**
 * @brief construct a smp REPORT PHY SATA command to the fw_device.
 * @param[in] fw_controller The framework controller object.
 * @param[in] fw_device the framework smp device that PHY CONTROL command
 *       targets to.
 * @param[in] phy_identifier The phy index the DISCOVER command targets to.
 *
 * @return void * address to the built scif sas smp request.
 */
@brief construct a smp REPORT PHY SATA command to the fw_device.
@param[in] fw_controller The framework controller object.
@param[in] fw_device the framework smp device that PHY CONTROL command
targets to.
@param[in] phy_identifier The phy index the DISCOVER command targets to.

@return void * address to the built scif sas smp request.
@brief construct a smp REPORT PHY SATA command to the fw_device . @param [ in ] fw_controller The framework controller object . @param [ in ] fw_device the framework smp device that PHY CONTROL command targets to . @param [ in ] phy_identifier The phy index the DISCOVER command targets to . @return void * address to the built scif sas smp request .
void * scif_sas_smp_request_construct_phy_control(
   SCIF_SAS_CONTROLLER_T    * fw_controller,
   SCIF_SAS_REMOTE_DEVICE_T * fw_device,
   U8                         phy_operation,
   U8                         phy_identifier,
   void                     * external_request_object,
   void                     * external_memory
)
{
   SMP_REQUEST_T phy_control;
   scif_sas_smp_protocol_request_construct(
      &phy_control,
      SMP_FUNCTION_PHY_CONTROL,
      0,
      sizeof(SMP_REQUEST_PHY_CONTROL_T) / sizeof(U32)
   );
   phy_control.request.phy_control.phy_operation = phy_operation;
   phy_control.request.phy_control.phy_identifier = phy_identifier;
   return scif_sas_smp_request_build(
             fw_controller, fw_device, &phy_control,
             external_request_object, external_memory
          );
}
void * scif_sas_smp_request_construct_phy_control ( SCIF_SAS_CONTROLLER_T * fw_controller , SCIF_SAS_REMOTE_DEVICE_T * fw_device , U8 phy_operation , U8 phy_identifier , void * external_request_object , void * external_memory ) { SMP_REQUEST_T phy_control ; scif_sas_smp_protocol_request_construct ( & phy_control , SMP_FUNCTION_PHY_CONTROL , 0 , sizeof ( SMP_REQUEST_PHY_CONTROL_T ) / sizeof ( U32 ) ) ; phy_control . request . phy_control . phy_operation = phy_operation ; phy_control . request . phy_control . phy_identifier = phy_identifier ; return scif_sas_smp_request_build ( fw_controller , fw_device , & phy_control , external_request_object , external_memory ) ; }
@brief construct a smp REPORT PHY SATA command to the fw_device.
@brief construct a smp REPORT PHY SATA command to the fw_device .