/* channel = IDMA channel number from 0 to 7  */
int mvDmaIsChannelActive(int)
/* channel = IDMA channel number from 0 to 7  */
int mvDmaIsChannelActive(int)
{
	ulong data;
	data = GTREGREAD (MV64460_DMA_CHANNEL0_CONTROL + 4 * channel);
	if (data & BIT14)
		return 1;
	return 0;
}