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

	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_Cipher_Config *CipherConfigPtr = NULL;

	CipherConfigPtr = XHdcp22Cipher_LookupConfig(InstancePtr->Config.CipherDeviceId);
	if(CipherConfigPtr == NULL)
	{
		return XST_FAILURE;
	}

	Status = XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, CipherConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22Cipher_CfgInitialize(&InstancePtr->CipherInst, CipherConfigPtr, SubcoreBaseAddr);

	XHdcp22Cipher_SetRxMode(&InstancePtr->CipherInst);

	return Status;
}
/*****************************************************************************/
/**
* This function is called to initialize the cipher.
*
* @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 cipher.
This function is called to initialize the cipher .
static int XHdcp22Rx_InitializeCipher(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_Cipher_Config *CipherConfigPtr = NULL;
	CipherConfigPtr = XHdcp22Cipher_LookupConfig(InstancePtr->Config.CipherDeviceId);
	if(CipherConfigPtr == NULL)
	{
		return XST_FAILURE;
	}
	Status = XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, CipherConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22Cipher_CfgInitialize(&InstancePtr->CipherInst, CipherConfigPtr, SubcoreBaseAddr);
	XHdcp22Cipher_SetRxMode(&InstancePtr->CipherInst);
	return Status;
}
static int XHdcp22Rx_InitializeCipher ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; UINTPTR SubcoreBaseAddr ; XHdcp22_Cipher_Config * CipherConfigPtr = NULL ; CipherConfigPtr = XHdcp22Cipher_LookupConfig ( InstancePtr -> Config . CipherDeviceId ) ; if ( CipherConfigPtr == NULL ) { return XST_FAILURE ; } Status = XHdcp22Rx_ComputeBaseAddress ( InstancePtr -> Config . BaseAddress , CipherConfigPtr -> BaseAddress , & SubcoreBaseAddr ) ; Status |= XHdcp22Cipher_CfgInitialize ( & InstancePtr -> CipherInst , CipherConfigPtr , SubcoreBaseAddr ) ; XHdcp22Cipher_SetRxMode ( & InstancePtr -> CipherInst ) ; return Status ; }
This function is called to initialize the cipher.
This function is called to initialize the cipher .
/* Verify arguments */