FreeBSD/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c
/**
 * @brief This method provides default handling (i.e. returns an error);
 *        when a user attempts to complete an IO on a remote device and a
 *        complete IO operation is not allowed.
 *
 * @param[in]  remote_device This parameter specifies the remote device
 *             object on which the user is attempting to perform a start IO
 *             operation.
 * @param[in]  io_request This parameter specifies the IO request to be
 *             started.
 *
 * @return This method returns an indication that complete IO operations
 *         are not allowed.
 * @retval SCI_FAILURE_INVALID_STATE This value is always returned.
 */
@brief This method provides default handling ;
when a user attempts to complete an IO on a remote device and a
complete IO operation is not allowed.

@param[in]  remote_device This parameter specifies the remote device
object on which the user is attempting to perform a start IO
operation.
@param[in]  io_request This parameter specifies the IO request to be
started.

@return This method returns an indication that complete IO operations
are not allowed.
@retval SCI_FAILURE_INVALID_STATE This value is always returned.
@brief This method provides default handling ; when a user attempts to complete an IO on a remote device and a complete IO operation is not allowed . @param [ in ] remote_device This parameter specifies the remote device object on which the user is attempting to perform a start IO operation . @param [ in ] io_request This parameter specifies the IO request to be started . @return This method returns an indication that complete IO operations are not allowed . @retval SCI_FAILURE_INVALID_STATE This value is always returned .
SCI_STATUS scif_sas_remote_device_default_complete_high_priority_io_handler(
   SCI_BASE_REMOTE_DEVICE_T * remote_device,
   SCI_BASE_REQUEST_T       * io_request,
   void                     * response_data,
   SCI_IO_STATUS              completion_status
)
{
   SCIF_LOG_WARNING((
      sci_base_object_get_logger((SCIF_SAS_REMOTE_DEVICE_T *)remote_device),
      SCIF_LOG_OBJECT_REMOTE_DEVICE,
      "RemoteDevice:0x%x State:0x%x invalid state to complete high priority IO\n",
      remote_device,
      sci_base_state_machine_get_state(
         &((SCIF_SAS_REMOTE_DEVICE_T *)remote_device)->parent.state_machine)
   ));
   return SCI_FAILURE_INVALID_STATE;
}
SCI_STATUS scif_sas_remote_device_default_complete_high_priority_io_handler ( SCI_BASE_REMOTE_DEVICE_T * remote_device , SCI_BASE_REQUEST_T * io_request , void * response_data , SCI_IO_STATUS completion_status ) { SCIF_LOG_WARNING ( ( sci_base_object_get_logger ( ( SCIF_SAS_REMOTE_DEVICE_T * ) remote_device ) , SCIF_LOG_OBJECT_REMOTE_DEVICE , " \n " , remote_device , sci_base_state_machine_get_state ( & ( ( SCIF_SAS_REMOTE_DEVICE_T * ) remote_device ) -> parent . state_machine ) ) ) ; return SCI_FAILURE_INVALID_STATE ; }
@brief This method provides default handling (i.e.
@brief This method provides default handling ( i . e .