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

	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_Rng_Config *RngConfigPtr;

	RngConfigPtr = XHdcp22Rng_LookupConfig(InstancePtr->Config.RngDeviceId);
	if(RngConfigPtr == NULL)
	{
		return XST_FAILURE;
	}

	Status |= XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, RngConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22Rng_CfgInitialize(&InstancePtr->RngInst, RngConfigPtr, SubcoreBaseAddr);

	return Status;
}
/*****************************************************************************/
/**
* This function is called to initialize the random number generator.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	XST_SUCCESS or XST_FAILURE.
*
* @note		None.
******************************************************************************/
This function is called to initialize the random number generator.
This function is called to initialize the random number generator .
static int XHdcp22Rx_InitializeRng(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_Rng_Config *RngConfigPtr;
	RngConfigPtr = XHdcp22Rng_LookupConfig(InstancePtr->Config.RngDeviceId);
	if(RngConfigPtr == NULL)
	{
		return XST_FAILURE;
	}
	Status |= XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, RngConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22Rng_CfgInitialize(&InstancePtr->RngInst, RngConfigPtr, SubcoreBaseAddr);
	return Status;
}
static int XHdcp22Rx_InitializeRng ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; UINTPTR SubcoreBaseAddr ; XHdcp22_Rng_Config * RngConfigPtr ; RngConfigPtr = XHdcp22Rng_LookupConfig ( InstancePtr -> Config . RngDeviceId ) ; if ( RngConfigPtr == NULL ) { return XST_FAILURE ; } Status |= XHdcp22Rx_ComputeBaseAddress ( InstancePtr -> Config . BaseAddress , RngConfigPtr -> BaseAddress , & SubcoreBaseAddr ) ; Status |= XHdcp22Rng_CfgInitialize ( & InstancePtr -> RngInst , RngConfigPtr , SubcoreBaseAddr ) ; return Status ; }
This function is called to initialize the random number generator.
This function is called to initialize the random number generator .
/* Verify arguments */