Subject: Re: Myson driver won't send
To: Peter. Bex <Peter.Bex@student.kun.nl>
From: Manuel Bouyer <firstname.lastname@example.org>
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
> 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
> 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 + 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 <email@example.com>