/* Disable interrupts for a channel. Interrupts that are not specified by the interrupt mask are not affected. */
void XAxiVdma_ChannelDisableIntr(XAxiVdma_Channel *Channel, u32 IntrType)
/* Disable interrupts for a channel. Interrupts that are not specified by the interrupt mask are not affected. */
void XAxiVdma_ChannelDisableIntr(XAxiVdma_Channel *Channel, u32 IntrType)
{
	u32 CrBits;
	u32 IrqBits;
	if ((IntrType & XAXIVDMA_IXR_ALL_MASK) == 0) {
		PRINTF(
		    "Disable intr with null intr mask value %x\r\n",
		    (unsigned int)IntrType);
		return;
	}
	CrBits = XAxiVdma_ReadReg(Channel->ChanBase, XAXIVDMA_CR_OFFSET);
	IrqBits = (CrBits & XAXIVDMA_IXR_ALL_MASK) &
	           ~(IntrType & XAXIVDMA_IXR_ALL_MASK);
	CrBits &= ~XAXIVDMA_IXR_ALL_MASK;
	XAxiVdma_WriteReg(Channel->ChanBase, XAXIVDMA_CR_OFFSET,
	    CrBits | IrqBits);
	return;
}