XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static void XHdcp22Rx_SetDdcReauthReq(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);

#ifndef _XHDCP22_RX_DISABLE_REAUTH_REQUEST_
	/* Log info event */
	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_INFO, XHDCP22_RX_LOG_INFO_REQAUTH_REQ);

	/* Increment re-authentication request count */
	InstancePtr->Info.ReauthRequestCnt++;

	/* Set the ReauthReq flag */
	InstancePtr->Info.ReauthReq = TRUE;

	if (InstancePtr->Config.Protocol == XHDCP22_RX_DP) {
		/*Set REAUTH_REQ in RxStatus*/
		u8 rxstatus = RX_STATUS_REAUTH_REQ;
		InstancePtr->Handles.RxDpAuxWriteCallback(
				InstancePtr->Handles.RxDpAuxWriteCallbackRef,
				RX_STATUS_OFFSET, &rxstatus, 1);

		/*raise CP_IRQ*/
		InstancePtr->Handles.RxDpCpIrqSetCallback(
				InstancePtr->Handles.RxDpCpIrqSetCallbackRef);
	} else {
		/* Set the RxStatus register */
		XHdcp22Rx_SetRxStatus(InstancePtr, 0,
				InstancePtr->Info.ReauthReq,
				InstancePtr->Info.TopologyReady);
	}

	/* Clear link integrity error flag */
	InstancePtr->Info.ErrorFlag &= ~XHDCP22_RX_ERROR_FLAG_LINK_INTEGRITY;
#endif /* _XHDCP22_RX_DISABLE_REAUTH_REQUEST_ */
}
/*****************************************************************************/
/**
* This function sets the DDC RxStatus registers (0x70-0x71) ReauthReq bit
* and clears the link integrity error flag. Setting the ReauthReq bit
* signals the transmitter to re-initiate authentication.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	None.
*
* @note		None.
******************************************************************************/
This function sets the DDC RxStatus registers (0x70-0x71) ReauthReq bit
and clears the link integrity error flag. Setting the ReauthReq bit
signals the transmitter to re-initiate authentication.
This function sets the DDC RxStatus registers ( 0x70 - 0x71 ) ReauthReq bit and clears the link integrity error flag . Setting the ReauthReq bit signals the transmitter to re - initiate authentication .
static void XHdcp22Rx_SetDdcReauthReq(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
#ifndef _XHDCP22_RX_DISABLE_REAUTH_REQUEST_
	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_INFO, XHDCP22_RX_LOG_INFO_REQAUTH_REQ);
	InstancePtr->Info.ReauthRequestCnt++;
	InstancePtr->Info.ReauthReq = TRUE;
	if (InstancePtr->Config.Protocol == XHDCP22_RX_DP) {
		u8 rxstatus = RX_STATUS_REAUTH_REQ;
		InstancePtr->Handles.RxDpAuxWriteCallback(
				InstancePtr->Handles.RxDpAuxWriteCallbackRef,
				RX_STATUS_OFFSET, &rxstatus, 1);
		InstancePtr->Handles.RxDpCpIrqSetCallback(
				InstancePtr->Handles.RxDpCpIrqSetCallbackRef);
	} else {
		XHdcp22Rx_SetRxStatus(InstancePtr, 0,
				InstancePtr->Info.ReauthReq,
				InstancePtr->Info.TopologyReady);
	}
	InstancePtr->Info.ErrorFlag &= ~XHDCP22_RX_ERROR_FLAG_LINK_INTEGRITY;
#endif 
}
static void XHdcp22Rx_SetDdcReauthReq ( XHdcp22_Rx * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; #ifndef _XHDCP22_RX_DISABLE_REAUTH_REQUEST_ XHdcp22Rx_LogWr ( InstancePtr , XHDCP22_RX_LOG_EVT_INFO , XHDCP22_RX_LOG_INFO_REQAUTH_REQ ) ; InstancePtr -> Info . ReauthRequestCnt ++ ; InstancePtr -> Info . ReauthReq = TRUE ; if ( InstancePtr -> Config . Protocol == XHDCP22_RX_DP ) { u8 rxstatus = RX_STATUS_REAUTH_REQ ; InstancePtr -> Handles . RxDpAuxWriteCallback ( InstancePtr -> Handles . RxDpAuxWriteCallbackRef , RX_STATUS_OFFSET , & rxstatus , 1 ) ; InstancePtr -> Handles . RxDpCpIrqSetCallback ( InstancePtr -> Handles . RxDpCpIrqSetCallbackRef ) ; } else { XHdcp22Rx_SetRxStatus ( InstancePtr , 0 , InstancePtr -> Info . ReauthReq , InstancePtr -> Info . TopologyReady ) ; } InstancePtr -> Info . ErrorFlag &= ~ XHDCP22_RX_ERROR_FLAG_LINK_INTEGRITY ; #endif }
This function sets the DDC RxStatus registers (0x70-0x71) ReauthReq bit
and clears the link integrity error flag.
This function sets the DDC RxStatus registers ( 0x70 - 0x71 ) ReauthReq bit and clears the link integrity error flag .
/* Verify arguments */ /* Log info event */ /* Increment re-authentication request count */ /* Set the ReauthReq flag */ /*Set REAUTH_REQ in RxStatus*/ /*raise CP_IRQ*/ /* Set the RxStatus register */ /* Clear link integrity error flag */ /* _XHDCP22_RX_DISABLE_REAUTH_REQUEST_ */