lib/sw_services/xilplmi/src/xplmi_dma.c
XPmcDma *XPlmi_GetDmaInstance(u32 DeviceId)
{
	XPmcDma *PmcDmaPtr = NULL;

	if (DeviceId == (u32)PMCDMA_0_DEVICE_ID) {
		if (PmcDma0.IsReady != (u32)FALSE) {
			PmcDmaPtr = &PmcDma0;
		}
	} else if (DeviceId == (u32)PMCDMA_1_DEVICE_ID) {
		if (PmcDma1.IsReady != (u32)FALSE) {
			PmcDmaPtr = &PmcDma1;
		}
	} else {
		/* Do nothing */
	}

	return PmcDmaPtr;
}
/*****************************************************************************/
/**
 * @brief	This function returns DMA instance.
 *
 * @param	DeviceId is PMC DMA's device ID
 *
 * @return	PMC DMA instance pointer.
 *
 *****************************************************************************/
@brief       This function returns DMA instance.
@param       DeviceId is PMC DMA's device ID

@return      PMC DMA instance pointer.
@brief This function returns DMA instance . @param DeviceId is PMC DMA ' s device ID @return PMC DMA instance pointer .
XPmcDma *XPlmi_GetDmaInstance(u32 DeviceId)
{
	XPmcDma *PmcDmaPtr = NULL;
	if (DeviceId == (u32)PMCDMA_0_DEVICE_ID) {
		if (PmcDma0.IsReady != (u32)FALSE) {
			PmcDmaPtr = &PmcDma0;
		}
	} else if (DeviceId == (u32)PMCDMA_1_DEVICE_ID) {
		if (PmcDma1.IsReady != (u32)FALSE) {
			PmcDmaPtr = &PmcDma1;
		}
	} else {
	}
	return PmcDmaPtr;
}
XPmcDma * XPlmi_GetDmaInstance ( u32 DeviceId ) { XPmcDma * PmcDmaPtr = NULL ; if ( DeviceId == ( u32 ) PMCDMA_0_DEVICE_ID ) { if ( PmcDma0 . IsReady != ( u32 ) FALSE ) { PmcDmaPtr = & PmcDma0 ; } } else if ( DeviceId == ( u32 ) PMCDMA_1_DEVICE_ID ) { if ( PmcDma1 . IsReady != ( u32 ) FALSE ) { PmcDmaPtr = & PmcDma1 ; } } else { } return PmcDmaPtr ; }
@brief       This function returns DMA instance.
@brief This function returns DMA instance .
/* Do nothing */