FreeBSD/sys/dev/isci/scil/scic_sds_phy.c
/**
 * This method will transmit a hard reset request on the specified phy. The
 * SCU hardware requires that we reset the OOB state machine and set the hard
 * reset bit in the phy configuration register.
 * We then must start OOB over with the hard reset bit set.
 *
 * @param[in] this_phy
 */
This method will transmit a hard reset request on the specified phy. The
SCU hardware requires that we reset the OOB state machine and set the hard
reset bit in the phy configuration register.
We then must start OOB over with the hard reset bit set.


This method will transmit a hard reset request on the specified phy . The SCU hardware requires that we reset the OOB state machine and set the hard reset bit in the phy configuration register . We then must start OOB over with the hard reset bit set .
static
void scu_link_layer_tx_hard_reset(
   SCIC_SDS_PHY_T *this_phy
)
{
   U32 phy_configuration_value;
   phy_configuration_value = SCU_SAS_PCFG_READ(this_phy);
   phy_configuration_value |=
      (SCU_SAS_PCFG_GEN_BIT(HARD_RESET) | SCU_SAS_PCFG_GEN_BIT(OOB_RESET));
   SCU_SAS_PCFG_WRITE(this_phy, phy_configuration_value);
   phy_configuration_value |= SCU_SAS_PCFG_GEN_BIT(OOB_ENABLE);
   phy_configuration_value &= ~SCU_SAS_PCFG_GEN_BIT(OOB_RESET);
   SCU_SAS_PCFG_WRITE(this_phy, phy_configuration_value);
}
static void scu_link_layer_tx_hard_reset ( SCIC_SDS_PHY_T * this_phy ) { U32 phy_configuration_value ; phy_configuration_value = SCU_SAS_PCFG_READ ( this_phy ) ; phy_configuration_value |= ( SCU_SAS_PCFG_GEN_BIT ( HARD_RESET ) | SCU_SAS_PCFG_GEN_BIT ( OOB_RESET ) ) ; SCU_SAS_PCFG_WRITE ( this_phy , phy_configuration_value ) ; phy_configuration_value |= SCU_SAS_PCFG_GEN_BIT ( OOB_ENABLE ) ; phy_configuration_value &= ~ SCU_SAS_PCFG_GEN_BIT ( OOB_RESET ) ; SCU_SAS_PCFG_WRITE ( this_phy , phy_configuration_value ) ; }
This method will transmit a hard reset request on the specified phy.
This method will transmit a hard reset request on the specified phy .
// SAS Phys must wait for the HARD_RESET_TX event notification to transition // to the starting state. // Now take the OOB state machine out of reset