XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
int XHdcp22Tx_Reset(XHdcp22_Tx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* If in a authenticated state, execute the unauthenticated callback */
	if (InstancePtr->Info.AuthenticationStatus == XHDCP22_TX_AUTHENTICATED) {
		if (InstancePtr->IsUnauthenticatedCallbackSet)
			InstancePtr->UnauthenticatedCallback(InstancePtr->UnauthenticatedCallbackRef);
	}

	/* Initialize statemachine, but do not run it */
	InstancePtr->Info.AuthenticationStatus = XHDCP22_TX_UNAUTHENTICATED;
	InstancePtr->Info.CurrentState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.PrvState = XHDCP22_TX_STATE_H0;

	/* Clear statistics counters */
	InstancePtr->Info.AuthRequestCnt = 0;
	InstancePtr->Info.ReauthRequestCnt = 0;

	/* Stop the timer if it's still running */
	XTmrCtr_Stop(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_0);

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

	/* Disable encryption */
	XHdcp22Tx_DisableEncryption(InstancePtr);

     /* Reset Cipher */
	XHdcp22Cipher_Disable(&InstancePtr->Cipher);

	XHdcp22Tx_LogWr(InstancePtr, XHDCP22_TX_LOG_EVT_RESET, 0);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function resets the state machine.
*
* @param   InstancePtr is a pointer to the XHdcp22Tx core instance.
*
* @return  XST_SUCCESS
*
* @note    None.
*
******************************************************************************/
This function resets the state machine.
This function resets the state machine .
int XHdcp22Tx_Reset(XHdcp22_Tx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	if (InstancePtr->Info.AuthenticationStatus == XHDCP22_TX_AUTHENTICATED) {
		if (InstancePtr->IsUnauthenticatedCallbackSet)
			InstancePtr->UnauthenticatedCallback(InstancePtr->UnauthenticatedCallbackRef);
	}
	InstancePtr->Info.AuthenticationStatus = XHDCP22_TX_UNAUTHENTICATED;
	InstancePtr->Info.CurrentState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.PrvState = XHDCP22_TX_STATE_H0;
	InstancePtr->Info.AuthRequestCnt = 0;
	InstancePtr->Info.ReauthRequestCnt = 0;
	XTmrCtr_Stop(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_0);
	InstancePtr->Info.IsTopologyAvailable = (FALSE);
	XHdcp22Tx_DisableEncryption(InstancePtr);
	XHdcp22Cipher_Disable(&InstancePtr->Cipher);
	XHdcp22Tx_LogWr(InstancePtr, XHDCP22_TX_LOG_EVT_RESET, 0);
	return XST_SUCCESS;
}
int XHdcp22Tx_Reset ( XHdcp22_Tx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( InstancePtr -> Info . AuthenticationStatus == XHDCP22_TX_AUTHENTICATED ) { if ( InstancePtr -> IsUnauthenticatedCallbackSet ) InstancePtr -> UnauthenticatedCallback ( InstancePtr -> UnauthenticatedCallbackRef ) ; } InstancePtr -> Info . AuthenticationStatus = XHDCP22_TX_UNAUTHENTICATED ; InstancePtr -> Info . CurrentState = XHDCP22_TX_STATE_H0 ; InstancePtr -> Info . PrvState = XHDCP22_TX_STATE_H0 ; InstancePtr -> Info . AuthRequestCnt = 0 ; InstancePtr -> Info . ReauthRequestCnt = 0 ; XTmrCtr_Stop ( & InstancePtr -> Timer . TmrCtr , XHDCP22_TX_TIMER_CNTR_0 ) ; InstancePtr -> Info . IsTopologyAvailable = ( FALSE ) ; XHdcp22Tx_DisableEncryption ( InstancePtr ) ; XHdcp22Cipher_Disable ( & InstancePtr -> Cipher ) ; XHdcp22Tx_LogWr ( InstancePtr , XHDCP22_TX_LOG_EVT_RESET , 0 ) ; return XST_SUCCESS ; }
This function resets the state machine.
This function resets the state machine .
/* If in a authenticated state, execute the unauthenticated callback */ /* Initialize statemachine, but do not run it */ /* Clear statistics counters */ /* Stop the timer if it's still running */ /* Clear Topology Available flag */ /* Disable encryption */ /* Reset Cipher */