XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
static int XHdcp22Tx_WriteRepeaterAuth_Send_Ack(XHdcp22_Tx *InstancePtr, const u8 *VPtr)
{
	XHdcp22_Tx_DDCMessage* MsgPtr =
		(XHdcp22_Tx_DDCMessage*)InstancePtr->MessageBuffer;

	MsgPtr->DdcAddress = XHDCP22_TX_HDCPPORT_WRITE_MSG_OFFSET;
	MsgPtr->Message.MsgId = XHDCP22_TX_REPEATAUTH_SEND_ACK;

	memcpy(MsgPtr->Message.RepeatAuthSendAck.V, VPtr,
		sizeof(MsgPtr->Message.RepeatAuthSendAck.V));

	if (InstancePtr->Config.Protocol == XHDCP22_TX_DP) {
		return XHdcp22Tx_Dp_Write_Dpcd_Msg(InstancePtr);
	} else {
		/* Execute write */
		return InstancePtr->DdcWrite(XHDCP22_TX_DDC_BASE_ADDRESS,
				sizeof(XHdcp22_Tx_RepeatAuthSendAck) + 1, (u8 *)MsgPtr,
				(TRUE), InstancePtr->DdcHandlerRef);
	}
}
/******************************************************************************/
/**
*
* This function sends the Receiver ID List acknowledgement to the repeater.
*
* @param  InstancePtr is a pointer to the XHdcp22Tx core instance.
* @param  VPtr is a pointer to the least significant 128-bits of V.
*
* @return
*         - XST_SUCCESS if writing succeeded
*         - XST_FAILURE if failed to write
*
* @note   None.
*
******************************************************************************/
This function sends the Receiver ID List acknowledgement to the repeater.
This function sends the Receiver ID List acknowledgement to the repeater .
static int XHdcp22Tx_WriteRepeaterAuth_Send_Ack(XHdcp22_Tx *InstancePtr, const u8 *VPtr)
{
	XHdcp22_Tx_DDCMessage* MsgPtr =
		(XHdcp22_Tx_DDCMessage*)InstancePtr->MessageBuffer;
	MsgPtr->DdcAddress = XHDCP22_TX_HDCPPORT_WRITE_MSG_OFFSET;
	MsgPtr->Message.MsgId = XHDCP22_TX_REPEATAUTH_SEND_ACK;
	memcpy(MsgPtr->Message.RepeatAuthSendAck.V, VPtr,
		sizeof(MsgPtr->Message.RepeatAuthSendAck.V));
	if (InstancePtr->Config.Protocol == XHDCP22_TX_DP) {
		return XHdcp22Tx_Dp_Write_Dpcd_Msg(InstancePtr);
	} else {
		return InstancePtr->DdcWrite(XHDCP22_TX_DDC_BASE_ADDRESS,
				sizeof(XHdcp22_Tx_RepeatAuthSendAck) + 1, (u8 *)MsgPtr,
				(TRUE), InstancePtr->DdcHandlerRef);
	}
}
static int XHdcp22Tx_WriteRepeaterAuth_Send_Ack ( XHdcp22_Tx * InstancePtr , const u8 * VPtr ) { XHdcp22_Tx_DDCMessage * MsgPtr = ( XHdcp22_Tx_DDCMessage * ) InstancePtr -> MessageBuffer ; MsgPtr -> DdcAddress = XHDCP22_TX_HDCPPORT_WRITE_MSG_OFFSET ; MsgPtr -> Message . MsgId = XHDCP22_TX_REPEATAUTH_SEND_ACK ; memcpy ( MsgPtr -> Message . RepeatAuthSendAck . V , VPtr , sizeof ( MsgPtr -> Message . RepeatAuthSendAck . V ) ) ; if ( InstancePtr -> Config . Protocol == XHDCP22_TX_DP ) { return XHdcp22Tx_Dp_Write_Dpcd_Msg ( InstancePtr ) ; } else { return InstancePtr -> DdcWrite ( XHDCP22_TX_DDC_BASE_ADDRESS , sizeof ( XHdcp22_Tx_RepeatAuthSendAck ) + 1 , ( u8 * ) MsgPtr , ( TRUE ) , InstancePtr -> DdcHandlerRef ) ; } }
This function sends the Receiver ID List acknowledgement to the repeater.
This function sends the Receiver ID List acknowledgement to the repeater .
/* Execute write */