FreeBSD/sys/dev/isci/scil/scic_sds_phy.c
/**
 * This method is called by the SCIC_SDS_CONTROLLER when the phy object is
 * granted power.
 *    - The notify enable spinups are turned on for this phy object
 *    - The phy state machine is transitioned to the
 *    SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL.
 *
 * @param[in] phy This is the SCI_BASE_PHY object which is cast into a
 *       SCIC_SDS_PHY object.
 *
 * @return SCI_STATUS
 * @retval SCI_SUCCESS
 */
This method is called by the SCIC_SDS_CONTROLLER when the phy object is
granted power.
- The notify enable spinups are turned on for this phy object
- The phy state machine is transitioned to the
SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL.

@param[in] phy This is the SCI_BASE_PHY object which is cast into a
SCIC_SDS_PHY object.


This method is called by the SCIC_SDS_CONTROLLER when the phy object is granted power . - The notify enable spinups are turned on for this phy object - The phy state machine is transitioned to the SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL . @param [ in ] phy This is the SCI_BASE_PHY object which is cast into a SCIC_SDS_PHY object .
static
SCI_STATUS scic_sds_phy_starting_substate_await_sas_power_consume_power_handler(
   SCIC_SDS_PHY_T *this_phy
)
{
   U32 enable_spinup;
   enable_spinup = SCU_SAS_ENSPINUP_READ(this_phy);
   enable_spinup |= SCU_ENSPINUP_GEN_BIT(ENABLE);
   SCU_SAS_ENSPINUP_WRITE(this_phy, enable_spinup);
   sci_base_state_machine_change_state(
      scic_sds_phy_get_starting_substate_machine(this_phy),
      SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL
      );
   return SCI_SUCCESS;
}
static SCI_STATUS scic_sds_phy_starting_substate_await_sas_power_consume_power_handler ( SCIC_SDS_PHY_T * this_phy ) { U32 enable_spinup ; enable_spinup = SCU_SAS_ENSPINUP_READ ( this_phy ) ; enable_spinup |= SCU_ENSPINUP_GEN_BIT ( ENABLE ) ; SCU_SAS_ENSPINUP_WRITE ( this_phy , enable_spinup ) ; sci_base_state_machine_change_state ( scic_sds_phy_get_starting_substate_machine ( this_phy ) , SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL ) ; return SCI_SUCCESS ; }
This method is called by the SCIC_SDS_CONTROLLER when the phy object is
 granted power.
This method is called by the SCIC_SDS_CONTROLLER when the phy object is granted power .
// Change state to the final state this substate machine has run to completion