/* Check if DMA channel is the flow controller.  */
static int DmaIsFlowController(void *pDescriptor)
/* Check if DMA channel is the flow controller.  */
static int DmaIsFlowController(void *pDescriptor)
{
	uint32_t ttfc =
	    (dmacHw_GET_DESC_RING(pDescriptor))->pTail->ctl.
	    lo & dmacHw_REG_CTL_TTFC_MASK;
	switch (ttfc) {
	case dmacHw_REG_CTL_TTFC_MM_DMAC:
	case dmacHw_REG_CTL_TTFC_MP_DMAC:
	case dmacHw_REG_CTL_TTFC_PM_DMAC:
	case dmacHw_REG_CTL_TTFC_PP_DMAC:
		return 1;
	}
	return 0;
}