Subject: Re: How to share DMA?
To: Mahadeva Swamy T L <Port-mips@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: port-mips
Date: 01/07/2004 19:41:09
At 03:06 AM 1/7/2004, Mahadeva Swamy T L wrote:
>Hi,
>
>I am working on TX49(MIPS) Target Board, where it supports DMA operation
>for 4 channels. Presently the SIO is working in normal CPU mode (not
>dma). Now I need to implement the DMA for my two SIO's. for this I need
>4 DMA channels. Also I need to support ACLC(audio) on DMA which uses 2
>channels. But actually I have only 4DMA channels. So How shall I share
>DMA channels between these? Please Guide.


Actually, you only need two dedicated DMA channels for the two SIOs.
One for each receive channel.  Depending on the size of the receive FIFOs
and speed, you might get away with a single DMA channel.  If the descriptors
can tell what device the data arrived from...  For transmit, only allocate
a DMA channel when you have something to send.


-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.