18 Jun 2012 06:10
Re: How can i distinguish TXOK and TXDESC
Adrian Chadd <adrian <at> freebsd.org>
2012-06-18 04:10:15 GMT
2012-06-18 04:10:15 GMT
Hi, Right. So you'll have to just add a new HAL_TX_INT field to distinguish TXOK and TXDESC. Or, you can just hack the HAL get interrupts function to return a bitmap of which _hardware_ interrupts were set ,rather than just the HAL interrupt flags. On 17 June 2012 20:54, lastnoname <lastnoname <at> 163.com> wrote: > > ----- Original Message ----- > From: "Adrian Chadd" <adrian <at> freebsd.org> > To: "lastnoname" <lastnoname <at> 163.com> > Cc: <ath9k-devel <at> lists.ath9k.org> > Sent: Monday, June 18, 2012 2:58 AM > Subject: Re: [ath9k-devel] How can i distinguish TXOK and TXDESC > > >> HAL_INT_TX? ath_hal_getisr() ? Which codebase are you using? >> >> >> Adrian > > I'm using madwifi-0.9.4 openhal , but it doesn't matter. The ath_hal_getisr() function in madwifi euqls ath_isr() in ath9k, and the HAL_INT_TX interrupt mask equals ATH9K_INT_TX in ath9k. > so my question can be asked as follows: > The get_isr function combines the AR_ISR_TXOK ,AR_ISR_TXERR , AR_ISR_TXEOL and AR_ISR_TXDESC interrupts as a ATH9K_INT_TX mask. so I cannot get the actual interrupts from the get_isr function. > I tried to destinguish the interrupts AR_ISR_TXOK ,AR_ISR_TXERR , AR_ISR_TXEOL and AR_ISR_TXDESC. I've tried to read the AR_ISR_S0 and AR_ISR_S1 registers, and found that the AR_ISR_TXOK interrupt(Continue reading)
RSS Feed