XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
static void XHdcp1x_RxEnableState(XHdcp1x *InstancePtr)
{
	u64 MyKsv = 0;
	u8 Buf[8];

	/* Disable and register the link failure callback */
	XHdcp1x_CipherSetLinkStateCheck(InstancePtr, FALSE);
	XHdcp1x_CipherSetCallback(InstancePtr,
			XHDCP1X_CIPHER_HANDLER_LINK_FAILURE,
			&XHdcp1x_RxLinkFailCallback, InstancePtr);

	/* Disable and register the Ri callback */
	XHdcp1x_CipherSetRiUpdate(InstancePtr, FALSE);
	XHdcp1x_CipherSetCallback(InstancePtr,
			XHDCP1X_CIPHER_HANDLER_Ri_UPDATE,
			&XHdcp1x_RxRiUpdateCallback, InstancePtr);

	/* Enable the crypto engine */
	XHdcp1x_CipherEnable(InstancePtr);

	/* Register the re-authentication callback */
	XHdcp1x_PortSetCallback(InstancePtr,
			XHDCP1X_PORT_HANDLER_AUTHENTICATE,
			&XHdcp1x_RxAuthCallback, InstancePtr);

	/* Enable the hdcp port */
	XHdcp1x_PortEnable(InstancePtr);

	/* Update the hdcp encryption status */
	InstancePtr->Rx.XORState.CurrentState = FALSE;
}
/*****************************************************************************/
/**
* This function enables a receiver state machine.
*
* @param	InstancePtr is the receiver instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function enables a receiver state machine.
This function enables a receiver state machine .
static void XHdcp1x_RxEnableState(XHdcp1x *InstancePtr)
{
	u64 MyKsv = 0;
	u8 Buf[8];
	XHdcp1x_CipherSetLinkStateCheck(InstancePtr, FALSE);
	XHdcp1x_CipherSetCallback(InstancePtr,
			XHDCP1X_CIPHER_HANDLER_LINK_FAILURE,
			&XHdcp1x_RxLinkFailCallback, InstancePtr);
	XHdcp1x_CipherSetRiUpdate(InstancePtr, FALSE);
	XHdcp1x_CipherSetCallback(InstancePtr,
			XHDCP1X_CIPHER_HANDLER_Ri_UPDATE,
			&XHdcp1x_RxRiUpdateCallback, InstancePtr);
	XHdcp1x_CipherEnable(InstancePtr);
	XHdcp1x_PortSetCallback(InstancePtr,
			XHDCP1X_PORT_HANDLER_AUTHENTICATE,
			&XHdcp1x_RxAuthCallback, InstancePtr);
	XHdcp1x_PortEnable(InstancePtr);
	InstancePtr->Rx.XORState.CurrentState = FALSE;
}
static void XHdcp1x_RxEnableState ( XHdcp1x * InstancePtr ) { u64 MyKsv = 0 ; u8 Buf [ 8 ] ; XHdcp1x_CipherSetLinkStateCheck ( InstancePtr , FALSE ) ; XHdcp1x_CipherSetCallback ( InstancePtr , XHDCP1X_CIPHER_HANDLER_LINK_FAILURE , & XHdcp1x_RxLinkFailCallback , InstancePtr ) ; XHdcp1x_CipherSetRiUpdate ( InstancePtr , FALSE ) ; XHdcp1x_CipherSetCallback ( InstancePtr , XHDCP1X_CIPHER_HANDLER_Ri_UPDATE , & XHdcp1x_RxRiUpdateCallback , InstancePtr ) ; XHdcp1x_CipherEnable ( InstancePtr ) ; XHdcp1x_PortSetCallback ( InstancePtr , XHDCP1X_PORT_HANDLER_AUTHENTICATE , & XHdcp1x_RxAuthCallback , InstancePtr ) ; XHdcp1x_PortEnable ( InstancePtr ) ; InstancePtr -> Rx . XORState . CurrentState = FALSE ; }
This function enables a receiver state machine.
This function enables a receiver state machine .
/* Disable and register the link failure callback */ /* Disable and register the Ri callback */ /* Enable the crypto engine */ /* Register the re-authentication callback */ /* Enable the hdcp port */ /* Update the hdcp encryption status */