XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
static int XHdcp22Tx_InitializeRng(XHdcp22_Tx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	int Result = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;

	XHdcp22_Rng_Config *ConfigPtr = NULL;

	ConfigPtr = XHdcp22Rng_LookupConfig(InstancePtr->Config.RngId);
	if (ConfigPtr == NULL) {
		return XST_DEVICE_NOT_FOUND;
	}

	Result = XHdcp22Tx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, ConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Result |= XHdcp22Rng_CfgInitialize(&InstancePtr->Rng, ConfigPtr, SubcoreBaseAddr);
	if (Result != XST_SUCCESS) {
		return Result;
	}
	XHdcp22Rng_Enable(&InstancePtr->Rng);
	return Result;
}
/*****************************************************************************/
/**
*
* This function is a called to initialize the hardware random generator.
*
* @param  InstancePtr is a pointer to the XHdcp22Tx core instance.
*
* @return
*    - XST_SUCCESS if authenticated is started successfully.
*    - XST_FAIL if the state machine is disabled.
*
* @note  None.
*
******************************************************************************/
This function is a called to initialize the hardware random generator.
This function is a called to initialize the hardware random generator .
static int XHdcp22Tx_InitializeRng(XHdcp22_Tx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	int Result = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_Rng_Config *ConfigPtr = NULL;
	ConfigPtr = XHdcp22Rng_LookupConfig(InstancePtr->Config.RngId);
	if (ConfigPtr == NULL) {
		return XST_DEVICE_NOT_FOUND;
	}
	Result = XHdcp22Tx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, ConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Result |= XHdcp22Rng_CfgInitialize(&InstancePtr->Rng, ConfigPtr, SubcoreBaseAddr);
	if (Result != XST_SUCCESS) {
		return Result;
	}
	XHdcp22Rng_Enable(&InstancePtr->Rng);
	return Result;
}
static int XHdcp22Tx_InitializeRng ( XHdcp22_Tx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Result = XST_SUCCESS ; UINTPTR SubcoreBaseAddr ; XHdcp22_Rng_Config * ConfigPtr = NULL ; ConfigPtr = XHdcp22Rng_LookupConfig ( InstancePtr -> Config . RngId ) ; if ( ConfigPtr == NULL ) { return XST_DEVICE_NOT_FOUND ; } Result = XHdcp22Tx_ComputeBaseAddress ( InstancePtr -> Config . BaseAddress , ConfigPtr -> BaseAddress , & SubcoreBaseAddr ) ; Result |= XHdcp22Rng_CfgInitialize ( & InstancePtr -> Rng , ConfigPtr , SubcoreBaseAddr ) ; if ( Result != XST_SUCCESS ) { return Result ; } XHdcp22Rng_Enable ( & InstancePtr -> Rng ) ; return Result ; }
This function is a called to initialize the hardware random generator.
This function is a called to initialize the hardware random generator .
/* Verify arguments */