XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
u8 *XHdcp1x_TxGetTopologyKSVList(XHdcp1x *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	static u8  DeviceList[256][5];
	u32 DeviceCnt;
	u32 i;

	memset(DeviceList[0],0,(32*5));
	DeviceCnt = InstancePtr->RepeaterValues.DeviceCount;

	for(i=0;i<DeviceCnt;i++) {
		memcpy(&DeviceList[i][0],
			&InstancePtr->RepeaterValues.KsvList[i], 5);
	}

	return(DeviceList[0]);

}
/*****************************************************************************/
/**
*
* This function returns the value of KSV List read in the downstream interface
* of the repeater topology.
*
* @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 KSV List read in the downstream interface
of the repeater topology.
This function returns the value of KSV List read in the downstream interface of the repeater topology .
u8 *XHdcp1x_TxGetTopologyKSVList(XHdcp1x *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	static u8  DeviceList[256][5];
	u32 DeviceCnt;
	u32 i;
	memset(DeviceList[0],0,(32*5));
	DeviceCnt = InstancePtr->RepeaterValues.DeviceCount;
	for(i=0;i<DeviceCnt;i++) {
		memcpy(&DeviceList[i][0],
			&InstancePtr->RepeaterValues.KsvList[i], 5);
	}
	return(DeviceList[0]);
}
u8 * XHdcp1x_TxGetTopologyKSVList ( XHdcp1x * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; static u8 DeviceList [ 256 ] [ 5 ] ; u32 DeviceCnt ; u32 i ; memset ( DeviceList [ 0 ] , 0 , ( 32 * 5 ) ) ; DeviceCnt = InstancePtr -> RepeaterValues . DeviceCount ; for ( i = 0 ; i < DeviceCnt ; i ++ ) { memcpy ( & DeviceList [ i ] [ 0 ] , & InstancePtr -> RepeaterValues . KsvList [ i ] , 5 ) ; } return ( DeviceList [ 0 ] ) ; }
This function returns the value of KSV List read in the downstream interface
of the repeater topology.
This function returns the value of KSV List read in the downstream interface of the repeater topology .
/* Verify arguments */