XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
u8 *XHdcp1x_TxGetTopologyBKSV(XHdcp1x *InstancePtr)
{
	u8 Buf[8];
	u64 RemoteKsv = 0;
	static u8 Bksv[5];

	/* Initialize Buf */
	memset(Buf, 0, 8);
	memset(Bksv, 0, 5);

	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BKSV,
				Buf, XHDCP1X_PORT_SIZE_BKSV);

	XHDCP1X_PORT_BUF_TO_UINT(RemoteKsv, Buf,
					XHDCP1X_PORT_SIZE_BKSV * 8);

	memcpy(&Bksv[0], &RemoteKsv, XHDCP1X_PORT_SIZE_BKSV);

	return(&Bksv[0]);
}
/*****************************************************************************/
/**
*
* This function returns the value of BKSV of the device connected to the
* repeater downstream interface.
*
* @param    InstancePtr is a pointer to the XHdcp14 core instance.
*
* @return
*           - TRUE if MAX_DEPTH_EXCEEDED
*           - FALSE if not
*
* @note     None.
*
******************************************************************************/
This function returns the value of BKSV of the device connected to the
repeater downstream interface.
This function returns the value of BKSV of the device connected to the repeater downstream interface .
u8 *XHdcp1x_TxGetTopologyBKSV(XHdcp1x *InstancePtr)
{
	u8 Buf[8];
	u64 RemoteKsv = 0;
	static u8 Bksv[5];
	memset(Buf, 0, 8);
	memset(Bksv, 0, 5);
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BKSV,
				Buf, XHDCP1X_PORT_SIZE_BKSV);
	XHDCP1X_PORT_BUF_TO_UINT(RemoteKsv, Buf,
					XHDCP1X_PORT_SIZE_BKSV * 8);
	memcpy(&Bksv[0], &RemoteKsv, XHDCP1X_PORT_SIZE_BKSV);
	return(&Bksv[0]);
}
u8 * XHdcp1x_TxGetTopologyBKSV ( XHdcp1x * InstancePtr ) { u8 Buf [ 8 ] ; u64 RemoteKsv = 0 ; static u8 Bksv [ 5 ] ; memset ( Buf , 0 , 8 ) ; memset ( Bksv , 0 , 5 ) ; XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BKSV , Buf , XHDCP1X_PORT_SIZE_BKSV ) ; XHDCP1X_PORT_BUF_TO_UINT ( RemoteKsv , Buf , XHDCP1X_PORT_SIZE_BKSV * 8 ) ; memcpy ( & Bksv [ 0 ] , & RemoteKsv , XHDCP1X_PORT_SIZE_BKSV ) ; return ( & Bksv [ 0 ] ) ; }
This function returns the value of BKSV of the device connected to the
repeater downstream interface.
This function returns the value of BKSV of the device connected to the repeater downstream interface .
/* Initialize Buf */