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_READY.
 *    - Set the state handlers to the controllers ready state.
 *
 * @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_READY.
- Set the state handlers to the controllers ready state.

@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_READY . - Set the state handlers to the controllers ready state . @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_ready_state_enter(
   SCI_BASE_OBJECT_T *object
)
{
   U32 clock_gating_unit_value;
   SCIC_SDS_CONTROLLER_T *this_controller;
   this_controller= (SCIC_SDS_CONTROLLER_T *)object;
   scic_sds_controller_set_base_state_handlers(
      this_controller, SCI_BASE_CONTROLLER_STATE_READY);
   clock_gating_unit_value = SMU_CGUCR_READ(this_controller);
   clock_gating_unit_value &= ~( SMU_CGUCR_GEN_BIT(REGCLK_ENABLE)
                               | SMU_CGUCR_GEN_BIT(TXCLK_ENABLE)
                               | SMU_CGUCR_GEN_BIT(XCLK_ENABLE) );
   clock_gating_unit_value |= SMU_CGUCR_GEN_BIT(IDLE_ENABLE);
   SMU_CGUCR_WRITE(this_controller, clock_gating_unit_value);
   scic_controller_set_interrupt_coalescence(
      this_controller, 0x10, 250);
}
static void scic_sds_controller_ready_state_enter ( SCI_BASE_OBJECT_T * object ) { U32 clock_gating_unit_value ; SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) object ; scic_sds_controller_set_base_state_handlers ( this_controller , SCI_BASE_CONTROLLER_STATE_READY ) ; clock_gating_unit_value = SMU_CGUCR_READ ( this_controller ) ; clock_gating_unit_value &= ~ ( SMU_CGUCR_GEN_BIT ( REGCLK_ENABLE ) | SMU_CGUCR_GEN_BIT ( TXCLK_ENABLE ) | SMU_CGUCR_GEN_BIT ( XCLK_ENABLE ) ) ; clock_gating_unit_value |= SMU_CGUCR_GEN_BIT ( IDLE_ENABLE ) ; SMU_CGUCR_WRITE ( this_controller , clock_gating_unit_value ) ; scic_controller_set_interrupt_coalescence ( this_controller , 0x10 , 250 ) ; }
This method implements the actions taken by the SCIC_SDS_CONTROLLER on
 entry to the SCI_BASE_CONTROLLER_STATE_READY.
This method implements the actions taken by the SCIC_SDS_CONTROLLER on entry to the SCI_BASE_CONTROLLER_STATE_READY .
/**
    * enable clock gating for power control of the scu unit
    */ //set the default interrupt coalescence number and timeout value.