XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static int XHdcp22Rx_ProcessMessageRepeaterAuthStreamManage(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	XHdcp22_Rx_Message *MsgPtr = (XHdcp22_Rx_Message*)InstancePtr->MessageBuffer;

	/* Log message read completion */
	XHdcp22Rx_LogWr(InstancePtr,
		XHDCP22_RX_LOG_EVT_INFO_MESSAGE,
		XHDCP22_RX_MSG_ID_REPEATERAUTHSTREAMMANAGE);

	/* Check message size */
	if(InstancePtr->MessageSize != sizeof(XHdcp22_Rx_RepeaterAuthStreamManage))
	{
		XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_ERROR,
			XHDCP22_RX_ERROR_FLAG_MESSAGE_SIZE);
		return XST_FAILURE;
	}

	/* Record seq_num_M and StreamID_Type parameter */
	memcpy(InstancePtr->Params.SeqNumM,
		MsgPtr->RepeaterAuthStreamManage.SeqNumM,
		XHDCP22_RX_SEQNUMM_SIZE);
	memcpy(InstancePtr->Params.StreamIdType,
		MsgPtr->RepeaterAuthStreamManage.StreamIdType,
		XHDCP22_RX_STREAMID_SIZE);

	/* Run callback function type: XHDCP22_RX_HANDLER_STREAM_MANAGE_REQUEST */
	if(InstancePtr->Handles.IsStreamManageRequestCallbackSet)
	{
		InstancePtr->Handles.StreamManageRequestCallback(
			InstancePtr->Handles.StreamManageRequestCallbackRef);
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* This function processes the RepeaterAuth_Repeater_Manage message.
* The message values seq_num_M and StreamID_Type are stored for
* later computation of MPrime. The user callback function
* type XHDCP22_RX_HANDLER_STREAM_MANAGE_REQUEST is executed.
*
* @param    InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return   - XST_SUCCESS if message processed successfully.
*           - XST_FAILURE if message size is incorrect.
*
* @note     After receiving RepeaterAuth_Repeater_Manage message the
*           repeater upstream interface has 100ms to respond with the
*           RepeaterAuth_Stream_Ready message. Detection of seq_num_M
*           roll-over is the responsibility of the upstream transmitter.
******************************************************************************/
This function processes the RepeaterAuth_Repeater_Manage message.
The message values seq_num_M and StreamID_Type are stored for
later computation of MPrime. The user callback function
type XHDCP22_RX_HANDLER_STREAM_MANAGE_REQUEST is executed.
This function processes the RepeaterAuth_Repeater_Manage message . The message values seq_num_M and StreamID_Type are stored for later computation of MPrime . The user callback function type XHDCP22_RX_HANDLER_STREAM_MANAGE_REQUEST is executed .
static int XHdcp22Rx_ProcessMessageRepeaterAuthStreamManage(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	XHdcp22_Rx_Message *MsgPtr = (XHdcp22_Rx_Message*)InstancePtr->MessageBuffer;
	XHdcp22Rx_LogWr(InstancePtr,
		XHDCP22_RX_LOG_EVT_INFO_MESSAGE,
		XHDCP22_RX_MSG_ID_REPEATERAUTHSTREAMMANAGE);
	if(InstancePtr->MessageSize != sizeof(XHdcp22_Rx_RepeaterAuthStreamManage))
	{
		XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_ERROR,
			XHDCP22_RX_ERROR_FLAG_MESSAGE_SIZE);
		return XST_FAILURE;
	}
	memcpy(InstancePtr->Params.SeqNumM,
		MsgPtr->RepeaterAuthStreamManage.SeqNumM,
		XHDCP22_RX_SEQNUMM_SIZE);
	memcpy(InstancePtr->Params.StreamIdType,
		MsgPtr->RepeaterAuthStreamManage.StreamIdType,
		XHDCP22_RX_STREAMID_SIZE);
	if(InstancePtr->Handles.IsStreamManageRequestCallbackSet)
	{
		InstancePtr->Handles.StreamManageRequestCallback(
			InstancePtr->Handles.StreamManageRequestCallbackRef);
	}
	return XST_SUCCESS;
}
static int XHdcp22Rx_ProcessMessageRepeaterAuthStreamManage ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; XHdcp22_Rx_Message * MsgPtr = ( XHdcp22_Rx_Message * ) InstancePtr -> MessageBuffer ; XHdcp22Rx_LogWr ( InstancePtr , XHDCP22_RX_LOG_EVT_INFO_MESSAGE , XHDCP22_RX_MSG_ID_REPEATERAUTHSTREAMMANAGE ) ; if ( InstancePtr -> MessageSize != sizeof ( XHdcp22_Rx_RepeaterAuthStreamManage ) ) { XHdcp22Rx_LogWr ( InstancePtr , XHDCP22_RX_LOG_EVT_ERROR , XHDCP22_RX_ERROR_FLAG_MESSAGE_SIZE ) ; return XST_FAILURE ; } memcpy ( InstancePtr -> Params . SeqNumM , MsgPtr -> RepeaterAuthStreamManage . SeqNumM , XHDCP22_RX_SEQNUMM_SIZE ) ; memcpy ( InstancePtr -> Params . StreamIdType , MsgPtr -> RepeaterAuthStreamManage . StreamIdType , XHDCP22_RX_STREAMID_SIZE ) ; if ( InstancePtr -> Handles . IsStreamManageRequestCallbackSet ) { InstancePtr -> Handles . StreamManageRequestCallback ( InstancePtr -> Handles . StreamManageRequestCallbackRef ) ; } return XST_SUCCESS ; }
This function processes the RepeaterAuth_Repeater_Manage message.
This function processes the RepeaterAuth_Repeater_Manage message .
/* Verify arguments */ /* Log message read completion */ /* Check message size */ /* Record seq_num_M and StreamID_Type parameter */ /* Run callback function type: XHDCP22_RX_HANDLER_STREAM_MANAGE_REQUEST */