lib/sw_services/xilnvm/src/server/xnvm_bbram_ipihandler.c
static int XNvm_BbramUsrDataRead(u32 DstAddrLow, u32 DstAddrHigh)
{
	volatile int Status = XST_FAILURE;
	u64 Addr = ((u64)DstAddrHigh << 32U) | (u64)DstAddrLow;
	u32 UsrData;

	UsrData = XNvm_BbramReadUsrData();

	Status = XPlmi_DmaXfr((u64)(UINTPTR)&UsrData, Addr,
			sizeof(UsrData) / XNVM_WORD_LEN, XPLMI_PMCDMA_0);

	return Status;
}
/*****************************************************************************/
/**
 * @brief       This function reads BBRAM user data.
 *
 * @param	DstAddrLow	Lower 32 bit address of the destination
 * 				address to store the user data
 *		DstAddrHigh	Higher 32 bit address of the destination
 *				address to store the user data
 *
 * @return	- XST_SUCCESS - If the read is successful
 * 		- ErrorCode - If there is a failure
 *
 ******************************************************************************/
@brief       This function reads BBRAM user data.
@param       DstAddrLow      Lower 32 bit address of the destination
address to store the user data
DstAddrHigh     Higher 32 bit address of the destination
address to store the user data

@return      - XST_SUCCESS - If the read is successful
- ErrorCode - If there is a failure
@brief This function reads BBRAM user data . @param DstAddrLow Lower 32 bit address of the destination address to store the user data DstAddrHigh Higher 32 bit address of the destination address to store the user data @return - XST_SUCCESS - If the read is successful - ErrorCode - If there is a failure
static int XNvm_BbramUsrDataRead(u32 DstAddrLow, u32 DstAddrHigh)
{
	volatile int Status = XST_FAILURE;
	u64 Addr = ((u64)DstAddrHigh << 32U) | (u64)DstAddrLow;
	u32 UsrData;
	UsrData = XNvm_BbramReadUsrData();
	Status = XPlmi_DmaXfr((u64)(UINTPTR)&UsrData, Addr,
			sizeof(UsrData) / XNVM_WORD_LEN, XPLMI_PMCDMA_0);
	return Status;
}
static int XNvm_BbramUsrDataRead ( u32 DstAddrLow , u32 DstAddrHigh ) { volatile int Status = XST_FAILURE ; u64 Addr = ( ( u64 ) DstAddrHigh << 32U ) | ( u64 ) DstAddrLow ; u32 UsrData ; UsrData = XNvm_BbramReadUsrData ( ) ; Status = XPlmi_DmaXfr ( ( u64 ) ( UINTPTR ) & UsrData , Addr , sizeof ( UsrData ) / XNVM_WORD_LEN , XPLMI_PMCDMA_0 ) ; return Status ; }
@brief       This function reads BBRAM user data.
@brief This function reads BBRAM user data .