FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * This method is called when the SCIC_SDS_CONTROLLER is in the ready state
 * reset handler is in place.
 *    - Transition to SCI_BASE_CONTROLLER_STATE_RESETTING
 *
 * @param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
 *       SCIC_SDS_CONTROLLER object.
 *
 * @return SCI_STATUS
 * @retval SCI_SUCCESS
 */
This method is called when the SCIC_SDS_CONTROLLER is in the ready state
reset handler is in place.
- Transition to SCI_BASE_CONTROLLER_STATE_RESETTING

@param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
SCIC_SDS_CONTROLLER object.


This method is called when the SCIC_SDS_CONTROLLER is in the ready state reset handler is in place . - Transition to SCI_BASE_CONTROLLER_STATE_RESETTING @param [ in ] controller The SCI_BASE_CONTROLLER object which is cast into a SCIC_SDS_CONTROLLER object .
static
SCI_STATUS scic_sds_controller_general_reset_handler(
   SCI_BASE_CONTROLLER_T *controller
)
{
   SCIC_SDS_CONTROLLER_T *this_controller;
   this_controller = (SCIC_SDS_CONTROLLER_T *)controller;
   SCIC_LOG_TRACE((
      sci_base_object_get_logger(controller),
      SCIC_LOG_OBJECT_CONTROLLER,
      "scic_sds_controller_resetting_state_enter(0x%x) enter\n",
      controller
   ));
   scic_sds_controller_release_resource(this_controller);
   sci_base_state_machine_change_state(
      scic_sds_controller_get_base_state_machine(this_controller),
      SCI_BASE_CONTROLLER_STATE_RESETTING
   );
   return SCI_SUCCESS;
}
static SCI_STATUS scic_sds_controller_general_reset_handler ( SCI_BASE_CONTROLLER_T * controller ) { SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) controller ; SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( controller ) , SCIC_LOG_OBJECT_CONTROLLER , " \n " , controller ) ) ; scic_sds_controller_release_resource ( this_controller ) ; sci_base_state_machine_change_state ( scic_sds_controller_get_base_state_machine ( this_controller ) , SCI_BASE_CONTROLLER_STATE_RESETTING ) ; return SCI_SUCCESS ; }
This method is called when the SCIC_SDS_CONTROLLER is in the ready state
 reset handler is in place.
This method is called when the SCIC_SDS_CONTROLLER is in the ready state reset handler is in place .
//Release resource. So far only resource to be released are timers. // The reset operation is not a graceful cleanup just perform the state // transition.