FreeBSD/sys/dev/isci/scil/scic_sds_phy.c
/**
 * This method continues the link training for the phy as if it were a SAS PHY
 * instead of a SATA PHY. This is done because the completion queue had a SAS
 * PHY DETECTED event when the state machine was expecting a SATA PHY event.
 *
 * @param[in] this_phy The phy object that received SAS PHY DETECTED.
 *
 * @return none
 */
This method continues the link training for the phy as if it were a SAS PHY
instead of a SATA PHY. This is done because the completion queue had a SAS
PHY DETECTED event when the state machine was expecting a SATA PHY event.

@param[in] this_phy The phy object that received SAS PHY DETECTED.

@return none
This method continues the link training for the phy as if it were a SAS PHY instead of a SATA PHY . This is done because the completion queue had a SAS PHY DETECTED event when the state machine was expecting a SATA PHY event . @param [ in ] this_phy The phy object that received SAS PHY DETECTED . @return none
static
void scic_sds_phy_start_sas_link_training(
   SCIC_SDS_PHY_T * this_phy
)
{
   U32 phy_control;
   phy_control = SCU_SAS_PCFG_READ(this_phy);
   phy_control |= SCU_SAS_PCFG_GEN_BIT(SATA_SPINUP_HOLD);
   SCU_SAS_PCFG_WRITE(this_phy, phy_control);
   sci_base_state_machine_change_state(
      &this_phy->starting_substate_machine,
      SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_SPEED_EN
   );
   this_phy->protocol = SCIC_SDS_PHY_PROTOCOL_SAS;
}
static void scic_sds_phy_start_sas_link_training ( SCIC_SDS_PHY_T * this_phy ) { U32 phy_control ; phy_control = SCU_SAS_PCFG_READ ( this_phy ) ; phy_control |= SCU_SAS_PCFG_GEN_BIT ( SATA_SPINUP_HOLD ) ; SCU_SAS_PCFG_WRITE ( this_phy , phy_control ) ; sci_base_state_machine_change_state ( & this_phy -> starting_substate_machine , SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_SPEED_EN ) ; this_phy -> protocol = SCIC_SDS_PHY_PROTOCOL_SAS ; }
This method continues the link training for the phy as if it were a SAS PHY
 instead of a SATA PHY.
This method continues the link training for the phy as if it were a SAS PHY instead of a SATA PHY .