XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
int XHdcp22Tx_Authenticate(XHdcp22_Tx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr);

	/* return a failure if not enabled */
	if (InstancePtr->Info.IsEnabled == (FALSE))
		return XST_FAILURE;

	/* state H1 checks this one */
	InstancePtr->Info.IsReceiverHDCP2Capable = (FALSE);

	/* initialize statemachine, and set to busy status */
	InstancePtr->Info.AuthenticationStatus = XHDCP22_TX_AUTHENTICATION_BUSY;
	InstancePtr->Info.CurrentState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.PrvState = XHDCP22_TX_STATE_H0;

	/* Clear Topology Available flag */
	InstancePtr->Info.IsTopologyAvailable = (FALSE);

	/* If in repeater mode, clear the content stream type is set flag */
	if (XHdcp22Tx_IsRepeater(InstancePtr)) {
		InstancePtr->Info.IsContentStreamTypeSet = (FALSE);
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function is a called to start authentication.
*
* @param  InstancePtr is a pointer to the XHdcp22Tx core instance.
*
* @return
*    - XST_SUCCESS if authenticated is started successfully.
*    - XST_FAIL if the state machine is disabled.
*
* @note  None.
*
******************************************************************************/
This function is a called to start authentication.
This function is a called to start authentication .
int XHdcp22Tx_Authenticate(XHdcp22_Tx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr);
	if (InstancePtr->Info.IsEnabled == (FALSE))
		return XST_FAILURE;
	InstancePtr->Info.IsReceiverHDCP2Capable = (FALSE);
	InstancePtr->Info.AuthenticationStatus = XHDCP22_TX_AUTHENTICATION_BUSY;
	InstancePtr->Info.CurrentState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.PrvState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.IsTopologyAvailable = (FALSE);
	if (XHdcp22Tx_IsRepeater(InstancePtr)) {
		InstancePtr->Info.IsContentStreamTypeSet = (FALSE);
	}
	return XST_SUCCESS;
}
int XHdcp22Tx_Authenticate ( XHdcp22_Tx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr ) ; if ( InstancePtr -> Info . IsEnabled == ( FALSE ) ) return XST_FAILURE ; InstancePtr -> Info . IsReceiverHDCP2Capable = ( FALSE ) ; InstancePtr -> Info . AuthenticationStatus = XHDCP22_TX_AUTHENTICATION_BUSY ; InstancePtr -> Info . CurrentState = XHDCP22_TX_STATE_H0 ; InstancePtr -> Info . PrvState = XHDCP22_TX_STATE_H0 ; InstancePtr -> Info . IsTopologyAvailable = ( FALSE ) ; if ( XHdcp22Tx_IsRepeater ( InstancePtr ) ) { InstancePtr -> Info . IsContentStreamTypeSet = ( FALSE ) ; } return XST_SUCCESS ; }
This function is a called to start authentication.
This function is a called to start authentication .
/* return a failure if not enabled */ /* state H1 checks this one */ /* initialize statemachine, and set to busy status */ /* Clear Topology Available flag */ /* If in repeater mode, clear the content stream type is set flag */