/* Get the number of frame store buffers to use. */
void XAxiVdma_GetFrmStore(XAxiVdma *InstancePtr, u8 *FrmStoreNum, u16 Direction)
/* Get the number of frame store buffers to use. */
void XAxiVdma_GetFrmStore(XAxiVdma *InstancePtr, u8 *FrmStoreNum, u16 Direction)
{
	XAxiVdma_Channel *Channel;
	Channel = XAxiVdma_GetChannel(InstancePtr, Direction);
	if (!Channel) {
		return;
	}
	if (Channel->DbgFeatureFlags & XAXIVDMA_ENABLE_DBG_FRMSTORE_REG) {
		*FrmStoreNum = (XAxiVdma_ReadReg(Channel->ChanBase,
			XAXIVDMA_FRMSTORE_OFFSET)) & XAXIVDMA_FRMSTORE_MASK;
	} else {
		PRINTF(
			"Frame Store Register is disabled\n\r");
	}
}