FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * This method implements the actions taken by the SCIC_SDS_CONTROLLER on
 * entry to the SCI_BASE_CONTROLLER_STATE_RESETTING.
 *    - Set the state handlers to the controllers resetting state.
 *    - Write to the SCU hardware reset register to force a reset
 *    - Transition to the SCI_BASE_CONTROLLER_STATE_RESET
 *
 * @param[in] object This is the SCI_BASE_OBJECT which is cast to a
 *       SCIC_SDS_CONTROLLER object.
 *
 * @return none
 */
This method implements the actions taken by the SCIC_SDS_CONTROLLER on
entry to the SCI_BASE_CONTROLLER_STATE_RESETTING.
- Set the state handlers to the controllers resetting state.
- Write to the SCU hardware reset register to force a reset
- Transition to the SCI_BASE_CONTROLLER_STATE_RESET

@param[in] object This is the SCI_BASE_OBJECT which is cast to a
SCIC_SDS_CONTROLLER object.

@return none
This method implements the actions taken by the SCIC_SDS_CONTROLLER on entry to the SCI_BASE_CONTROLLER_STATE_RESETTING . - Set the state handlers to the controllers resetting state . - Write to the SCU hardware reset register to force a reset - Transition to the SCI_BASE_CONTROLLER_STATE_RESET @param [ in ] object This is the SCI_BASE_OBJECT which is cast to a SCIC_SDS_CONTROLLER object . @return none
static
void scic_sds_controller_resetting_state_enter(
   SCI_BASE_OBJECT_T *object
)
{
   SCIC_SDS_CONTROLLER_T *this_controller;
   this_controller= (SCIC_SDS_CONTROLLER_T *)object;
   SCIC_LOG_TRACE((
      sci_base_object_get_logger(this_controller),
      SCIC_LOG_OBJECT_CONTROLLER,
      "scic_sds_controller_resetting_state_enter(0x%x) enter\n",
      this_controller
   ));
   scic_sds_controller_set_base_state_handlers(
      this_controller, SCI_BASE_CONTROLLER_STATE_RESETTING);
   scic_sds_controller_reset_hardware(this_controller);
   sci_base_state_machine_change_state(
      scic_sds_controller_get_base_state_machine(this_controller),
      SCI_BASE_CONTROLLER_STATE_RESET
   );
}
static void scic_sds_controller_resetting_state_enter ( SCI_BASE_OBJECT_T * object ) { SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) object ; SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( this_controller ) , SCIC_LOG_OBJECT_CONTROLLER , " \n " , this_controller ) ) ; scic_sds_controller_set_base_state_handlers ( this_controller , SCI_BASE_CONTROLLER_STATE_RESETTING ) ; scic_sds_controller_reset_hardware ( this_controller ) ; sci_base_state_machine_change_state ( scic_sds_controller_get_base_state_machine ( this_controller ) , SCI_BASE_CONTROLLER_STATE_RESET ) ; }
This method implements the actions taken by the SCIC_SDS_CONTROLLER on
 entry to the SCI_BASE_CONTROLLER_STATE_RESETTING.
This method implements the actions taken by the SCIC_SDS_CONTROLLER on entry to the SCI_BASE_CONTROLLER_STATE_RESETTING .