XilinxProcessorIPLib/drivers/mcdma/src/xmcdma.c
void XMcdma_SetSGARCache(XMcdma *InstancePtr, u8 Value)
{
	u32 Val;


	if (Value > 0xF) {
		xil_printf("Invalid ARCACHE Value\n\r");
		return;
	}

	Val = XMcdma_ReadReg(InstancePtr->Config.BaseAddress, XMCDMA_SGCACHE_OFFSET);

	Val = (Val & ~XMCDMA_SGARCACHE_MASK) | Value;

	XMcdma_WriteReg(InstancePtr->Config.BaseAddress, XMCDMA_SGCACHE_OFFSET, Val);
}
/*****************************************************************************/
/**
 * This function sets the ARCACHE field of the SG interface
 * With the user specified value
 *
 * @param	InstancePtr is the driver instance we are working on
 * @param	Value is the ARCACHE value to be written.
 *
 * @return	None
 *
 * @note	None.
 *
 *****************************************************************************/
This function sets the ARCACHE field of the SG interface
With the user specified value

@param       InstancePtr is the driver instance we are working on
@param       Value is the ARCACHE value to be written.

@return      None

@note        None.
This function sets the ARCACHE field of the SG interface With the user specified value @param InstancePtr is the driver instance we are working on @param Value is the ARCACHE value to be written . @return None @note None .
void XMcdma_SetSGARCache(XMcdma *InstancePtr, u8 Value)
{
	u32 Val;
	if (Value > 0xF) {
		xil_printf("Invalid ARCACHE Value\n\r");
		return;
	}
	Val = XMcdma_ReadReg(InstancePtr->Config.BaseAddress, XMCDMA_SGCACHE_OFFSET);
	Val = (Val & ~XMCDMA_SGARCACHE_MASK) | Value;
	XMcdma_WriteReg(InstancePtr->Config.BaseAddress, XMCDMA_SGCACHE_OFFSET, Val);
}
void XMcdma_SetSGARCache ( XMcdma * InstancePtr , u8 Value ) { u32 Val ; if ( Value > 0xF ) { xil_printf ( " \n \r " ) ; return ; } Val = XMcdma_ReadReg ( InstancePtr -> Config . BaseAddress , XMCDMA_SGCACHE_OFFSET ) ; Val = ( Val & ~ XMCDMA_SGARCACHE_MASK ) | Value ; XMcdma_WriteReg ( InstancePtr -> Config . BaseAddress , XMCDMA_SGCACHE_OFFSET , Val ) ; }
This function sets the ARCACHE field of the SG interface
 With the user specified value
This function sets the ARCACHE field of the SG interface With the user specified value