XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
static int XHdcp22Tx_ComputeBaseAddress(UINTPTR BaseAddress, UINTPTR SubcoreOffset, UINTPTR *SubcoreAddressPtr)
{
	int Status;
	UINTPTR Address;

	Address = BaseAddress | SubcoreOffset;
	if((Address >= BaseAddress))
	{
		*SubcoreAddressPtr = Address;
		Status = XST_SUCCESS;
	}
	else
	{
		*SubcoreAddressPtr = 0;
		Status = XST_FAILURE;
	}

	return (Status);
}
/*****************************************************************************/
/**
*
* This function computes the subcore absolute address on axi-lite interface
* Subsystem is mapped at an absolute address and all included sub-cores are
* at pre-defined offset from the subsystem base address. To access the subcore
* register map from host CPU an absolute address is required.
*
* @param  BaseAddress is the base address of the subsystem instance
* @param  SubcoreOffset is the offset of the the subcore instance
* @param  SubcoreAddressPtr is the computed base address of the subcore instance
*
* @return XST_SUCCESS if base address computation is successful and within
*         subsystem address range else XST_FAILURE
*
******************************************************************************/
This function computes the subcore absolute address on axi-lite interface
Subsystem is mapped at an absolute address and all included sub-cores are
at pre-defined offset from the subsystem base address. To access the subcore
register map from host CPU an absolute address is required.
This function computes the subcore absolute address on axi - lite interface Subsystem is mapped at an absolute address and all included sub - cores are at pre - defined offset from the subsystem base address . To access the subcore register map from host CPU an absolute address is required .
static int XHdcp22Tx_ComputeBaseAddress(UINTPTR BaseAddress, UINTPTR SubcoreOffset, UINTPTR *SubcoreAddressPtr)
{
	int Status;
	UINTPTR Address;
	Address = BaseAddress | SubcoreOffset;
	if((Address >= BaseAddress))
	{
		*SubcoreAddressPtr = Address;
		Status = XST_SUCCESS;
	}
	else
	{
		*SubcoreAddressPtr = 0;
		Status = XST_FAILURE;
	}
	return (Status);
}
static int XHdcp22Tx_ComputeBaseAddress ( UINTPTR BaseAddress , UINTPTR SubcoreOffset , UINTPTR * SubcoreAddressPtr ) { int Status ; UINTPTR Address ; Address = BaseAddress | SubcoreOffset ; if ( ( Address >= BaseAddress ) ) { * SubcoreAddressPtr = Address ; Status = XST_SUCCESS ; } else { * SubcoreAddressPtr = 0 ; Status = XST_FAILURE ; } return ( Status ) ; }
This function computes the subcore absolute address on axi-lite interface
Subsystem is mapped at an absolute address and all included sub-cores are
at pre-defined offset from the subsystem base address.
This function computes the subcore absolute address on axi - lite interface Subsystem is mapped at an absolute address and all included sub - cores are at pre - defined offset from the subsystem base address .