Subject: Re: Myson driver won't send
To: Peter. Bex <Peter.Bex@student.kun.nl>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-net
Date: 09/15/2002 22:04:58
On Sun, Sep 15, 2002 at 04:53:36PM +0200, Peter. Bex wrote:
> Hello again,
> 
> My network card still won't send any packets /at all/, but receiving works 
> perfectly.
> My thought was that perhaps something is wrong in the buffer(or descriptor) 
> address calculations, since I'm using 1 DMA buffer for both sending and 
> receiving.
> Since the receive buffers are first (and the same with descriptors, as you can 
> see in the code I posted), and the transmit buffers come after, I started 
> thinking in this direction.
> 
> So my question is: Can you calculate a DMA address the way I do (by taking 
> dm_addr[0] + offset[in bytes]) or should I have either 2 DMA buffers (which 
> would create a very long piece of code to initialise it all), or calculate the 
> address in some other way?

No, this looks right. Did you try adding printf's to the code to see if the
transmit logic in your driver is ever triggered ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--