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