FreeBSD/sys/dev/isci/scil/scif_sas_controller_state_handlers.c
/**
 * @brief This method provides default handling (i.e. returns an error)
 *        when a user attempts to start an IO on a controller and a start
 *        IO operation is not allowed.
 *
 * @param[in]  controller This parameter specifies the controller object
 *             on which the user is attempting to perform a start IO
 *             operation.
 * @param[in]  remote_device This parameter specifies the remote deivce
 *             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.
 * @param[in]  io_tag This parameter specifies the optional allocated
 *             IO tag.  Please reference scif_controller_start_io() for
 *             more information.
 *
 * @return This method returns an indication that start 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 start an IO on a controller and a start
IO operation is not allowed.

@param[in]  controller This parameter specifies the controller object
on which the user is attempting to perform a start IO
operation.
@param[in]  remote_device This parameter specifies the remote deivce
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.
@param[in]  io_tag This parameter specifies the optional allocated
IO tag.  Please reference scif_controller_start_io() for
more information.

@return This method returns an indication that start 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 start an IO on a controller and a start IO operation is not allowed . @param [ in ] controller This parameter specifies the controller object on which the user is attempting to perform a start IO operation . @param [ in ] remote_device This parameter specifies the remote deivce 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 . @param [ in ] io_tag This parameter specifies the optional allocated IO tag . Please reference scif_controller_start_io () for more information . @return This method returns an indication that start IO operations are not allowed . @retval SCI_FAILURE_INVALID_STATE This value is always returned .
static
SCI_STATUS scif_sas_controller_default_start_io_handler(
   SCI_BASE_CONTROLLER_T    * controller,
   SCI_BASE_REMOTE_DEVICE_T * remote_device,
   SCI_BASE_REQUEST_T       * io_request,
   U16                        io_tag
)
{
   SCIF_LOG_WARNING((
      sci_base_object_get_logger((SCIF_SAS_CONTROLLER_T *)controller),
      SCIF_LOG_OBJECT_CONTROLLER,
      "Controller:0x%x State:0x%x invalid state to start IO.\n",
      controller,
      sci_base_state_machine_get_state(
         &((SCIF_SAS_CONTROLLER_T *)controller)->parent.state_machine)
   ));
   return SCI_FAILURE_INVALID_STATE;
}
static SCI_STATUS scif_sas_controller_default_start_io_handler ( SCI_BASE_CONTROLLER_T * controller , SCI_BASE_REMOTE_DEVICE_T * remote_device , SCI_BASE_REQUEST_T * io_request , U16 io_tag ) { SCIF_LOG_WARNING ( ( sci_base_object_get_logger ( ( SCIF_SAS_CONTROLLER_T * ) controller ) , SCIF_LOG_OBJECT_CONTROLLER , " \n " , controller , sci_base_state_machine_get_state ( & ( ( SCIF_SAS_CONTROLLER_T * ) controller ) -> parent . state_machine ) ) ) ; return SCI_FAILURE_INVALID_STATE ; }
@brief This method provides default handling (i.e.
@brief This method provides default handling ( i . e .