XilinxProcessorIPLib/drivers/csi2txss/src/xcsi2txss.c
static u32 Csi2TxSs_ComputeSubCoreAbsAddr(UINTPTR SsBaseAddr,
					UINTPTR SsHighAddr,
					u32 Offset, UINTPTR *BaseAddr)
{
	u32 Status;
	UINTPTR AbsAddr;

	AbsAddr = SsBaseAddr + Offset;

	if ((AbsAddr >= SsBaseAddr) && (AbsAddr < SsHighAddr)) {
		*BaseAddr = AbsAddr;
		Status = XST_SUCCESS;
	}
	else {
		*BaseAddr = 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.
* The subsystem is aligned to 4K address and has address range of max 8K
* (0x00000-0x2000). By default, CSI is at offset 0x0_0000, and DPHY is at
* offset 0x0_1000.
* @param	SsBaseAddr is the base address of the the Subsystem instance
* @param	SsHighAddr is the max address of the Subsystem instance
* @param	Offset is the offset of the specified core
* @param	BaseAddr is the computed absolute base address of the subcore
*
* @return
*		- XST_SUCCESS if base address computation is successful and
*		within subsystem address range
*		- XST_FAILURE Otherwise
*
* @note		None
*
******************************************************************************/
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.
The subsystem is aligned to 4K address and has address range of max 8K
(0x00000-0x2000). By default, CSI is at offset 0x0_0000, and DPHY is at
offset 0x0_1000.
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 . The subsystem is aligned to 4K address and has address range of max 8K ( 0x00000 - 0x2000 ) . By default CSI is at offset 0x0_0000 and DPHY is at offset 0x0_1000 .
static u32 Csi2TxSs_ComputeSubCoreAbsAddr(UINTPTR SsBaseAddr,
					UINTPTR SsHighAddr,
					u32 Offset, UINTPTR *BaseAddr)
{
	u32 Status;
	UINTPTR AbsAddr;
	AbsAddr = SsBaseAddr + Offset;
	if ((AbsAddr >= SsBaseAddr) && (AbsAddr < SsHighAddr)) {
		*BaseAddr = AbsAddr;
		Status = XST_SUCCESS;
	}
	else {
		*BaseAddr = 0;
		Status = XST_FAILURE;
	}
	return Status;
}
static u32 Csi2TxSs_ComputeSubCoreAbsAddr ( UINTPTR SsBaseAddr , UINTPTR SsHighAddr , u32 Offset , UINTPTR * BaseAddr ) { u32 Status ; UINTPTR AbsAddr ; AbsAddr = SsBaseAddr + Offset ; if ( ( AbsAddr >= SsBaseAddr ) && ( AbsAddr < SsHighAddr ) ) { * BaseAddr = AbsAddr ; Status = XST_SUCCESS ; } else { * BaseAddr = 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 .