/* Check to see if the provided DMA channel is busy.  */
static int tsi148_dma_busy(int channel)
/* Check to see if the provided DMA channel is busy.  */
static int tsi148_dma_busy(int channel)
{
	u32 tmp;
	tmp = ioread32be(tsi148_bridge->base + TSI148_LCSR_DMA[channel] +
		TSI148_LCSR_OFFSET_DSTA);
	if (tmp & TSI148_LCSR_DSTA_BSY)
		return 0;
	else
		return 1;
}