FreeBSD/sys/dev/isci/scil/scic_sds_phy.c
/**
 * This method assigns the direct attached device ID for this phy.
 *
 * @param[in] this_phy The phy for which the direct attached device id is to
 *       be assigned.
 * @param[in] device_id The direct attached device ID to assign to the phy.
 *       This will either be the RNi for the device or an invalid RNi if there
 *       is no current device assigned to the phy.
 */
This method assigns the direct attached device ID for this phy.
@param[in] this_phy The phy for which the direct attached device id is to
be assigned.
@param[in] device_id The direct attached device ID to assign to the phy.
This will either be the RNi for the device or an invalid RNi if there
is no current device assigned to the phy.
This method assigns the direct attached device ID for this phy . @param [ in ] this_phy The phy for which the direct attached device id is to be assigned . @param [ in ] device_id The direct attached device ID to assign to the phy . This will either be the RNi for the device or an invalid RNi if there is no current device assigned to the phy .
void scic_sds_phy_setup_transport(
   SCIC_SDS_PHY_T * this_phy,
   U32              device_id
)
{
   U32 tl_control;
   SCU_STPTLDARNI_WRITE(this_phy, device_id);
   tl_control = SCU_TLCR_READ(this_phy);
   tl_control |= SCU_TLCR_GEN_BIT(CLEAR_TCI_NCQ_MAPPING_TABLE);
   SCU_TLCR_WRITE(this_phy, tl_control);
}
void scic_sds_phy_setup_transport ( SCIC_SDS_PHY_T * this_phy , U32 device_id ) { U32 tl_control ; SCU_STPTLDARNI_WRITE ( this_phy , device_id ) ; tl_control = SCU_TLCR_READ ( this_phy ) ; tl_control |= SCU_TLCR_GEN_BIT ( CLEAR_TCI_NCQ_MAPPING_TABLE ) ; SCU_TLCR_WRITE ( this_phy , tl_control ) ; }
This method assigns the direct attached device ID for this phy.
This method assigns the direct attached device ID for this phy .
// The read should guarntee that the first write gets posted // before the next write