XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
static void XHdcp1x_TxTestForRepeater(XHdcp1x *InstancePtr,
		XHdcp1x_StateType *NextStatePtr)
{
	/* Check for repeater */
	if (XHdcp1x_PortIsRepeater(InstancePtr)) {

		/* Update InstancePtr */
		InstancePtr->Tx.Flags |= XVPHY_FLAG_IS_REPEATER;

		/* Update NextStatePtr */
		*NextStatePtr = XHDCP1X_STATE_WAITFORREADY;

		/* Log */
		XHdcp1x_TxDebugLog(InstancePtr, "repeater detected");

	}
	else {
		/* Update InstancePtr */
		InstancePtr->Tx.Flags &= ~XVPHY_FLAG_IS_REPEATER;

		/* Set the Down Stream Ready flag - in case of repeater
		 * we are ready to send repeater values upstream */
		InstancePtr->Tx.DownstreamReady = 1;

		/* Update NextStatePtr */
		*NextStatePtr = XHDCP1X_STATE_AUTHENTICATED;

	}
}
/*****************************************************************************/
/**
* This function checks the remote end to see if its a repeater.
*
* @param	InstancePtr is the HDCP state machine.
* @param	NextStatePtr is the next state.
*
* @return	None.
*
* @note		The implementation of this function enables encryption when a
*		repeater is detected downstream. The standard is ambiguous
*		as to the handling of this specific case by this behaviour is
*		required in order to pass the Unigraf compliance test suite.
*
******************************************************************************/
This function checks the remote end to see if its a repeater.
This function checks the remote end to see if its a repeater .
static void XHdcp1x_TxTestForRepeater(XHdcp1x *InstancePtr,
		XHdcp1x_StateType *NextStatePtr)
{
	if (XHdcp1x_PortIsRepeater(InstancePtr)) {
		InstancePtr->Tx.Flags |= XVPHY_FLAG_IS_REPEATER;
		*NextStatePtr = XHDCP1X_STATE_WAITFORREADY;
		XHdcp1x_TxDebugLog(InstancePtr, "repeater detected");
	}
	else {
		InstancePtr->Tx.Flags &= ~XVPHY_FLAG_IS_REPEATER;
		InstancePtr->Tx.DownstreamReady = 1;
		*NextStatePtr = XHDCP1X_STATE_AUTHENTICATED;
	}
}
static void XHdcp1x_TxTestForRepeater ( XHdcp1x * InstancePtr , XHdcp1x_StateType * NextStatePtr ) { if ( XHdcp1x_PortIsRepeater ( InstancePtr ) ) { InstancePtr -> Tx . Flags |= XVPHY_FLAG_IS_REPEATER ; * NextStatePtr = XHDCP1X_STATE_WAITFORREADY ; XHdcp1x_TxDebugLog ( InstancePtr , " " ) ; } else { InstancePtr -> Tx . Flags &= ~ XVPHY_FLAG_IS_REPEATER ; InstancePtr -> Tx . DownstreamReady = 1 ; * NextStatePtr = XHDCP1X_STATE_AUTHENTICATED ; } }
This function checks the remote end to see if its a repeater.
This function checks the remote end to see if its a repeater .
/* Check for repeater */ /* Update InstancePtr */ /* Update NextStatePtr */ /* Log */ /* Update InstancePtr */ /* Set the Down Stream Ready flag - in case of repeater
		 * we are ready to send repeater values upstream */ /* Update NextStatePtr */