Re: [ath5k-devel] a question about setting the RXDP register

2010-06-21 Thread Bob Copeland
[please don't top post] On Mon, Jun 21, 2010 at 11:57:39PM +0800, Lrj wrote: > So after reading the link field of the descriptor, the hardware will update > the RXDP register automaticly. And then the hardware set the "done" field of > the current descriptor, am I right? Yes, except that there's

Re: [ath5k-devel] a question about setting the RXDP register

2010-06-21 Thread Lrj
So after reading the link field of the descriptor, the hardware will update the RXDP register automaticly. And then the hardware set the "done" field of the current descriptor, am I right? Thank you. On Mon, Jun 21, 2010 at 8:24 PM, Bob Copeland wrote: > On Mon, Jun 21, 2010 at 5:04 AM, Lrj wr

Re: [ath5k-devel] a question about setting the RXDP register

2010-06-21 Thread Bob Copeland
On Mon, Jun 21, 2010 at 5:04 AM, Lrj wrote: > If not, how the hardware knows the address of next rx descriptor while the > RXDP register's value remains the first rx descriptor's address? The hardware reads the link field of the current descriptor. -- Bob Copeland %% www.bobcopeland.com ___

[ath5k-devel] a question about setting the RXDP register

2010-06-21 Thread Lrj
Hi, I got a question while reading the aht5k_tasklet_rx(): > /* bail if HW is still using self-linked descriptor */ > > if (ath5k_hw_get_rxdp(sc->ah) == bf->daddr) > break; > > I searched all the ath5k codes, and found that the RXDP register was set only by th