ath9k_htc: how to read registers?
Hi all,
I have a TL-WN721N USB device with AR9271 chipset. I would like to read registers. There is the "ath9k_regread" function in "htc_drv_init.c", but how to use it?
I am especially interested in the AR_RCCNT register.
BR
Falk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100713/c4d06dec/attachment.htm
The REG_READ macro works fine, but I used it in Rx/Tx routines. This seems to be a bad point of time, because it results in a crash.
Btw: is there any way to determine if a REG_READ is possible or not?
Von: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel-bounces at venema.h4ckr.net] Im Auftrag von Falk-Moritz Schaefer
Gesendet: Dienstag, 13. Juli 2010 10:28
An: ath9k-devel at venema.h4ckr.net
Betreff: [ath9k-devel] ath9k_htc: how to read registers?
Hi all,
I have a TL-WN721N USB device with AR9271 chipset. I would like to read registers. There is the "ath9k_regread" function in "htc_drv_init.c", but how to use it?
I am especially interested in the AR_RCCNT register.
BR
Falk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100714/32608c49/attachment.htm
Quoted 9 lines · Falk-Moritz Schaefer
The
REG_READmacro works fine, but I used it in Rx/Tx routines. This seems to be a bad point of time, because it results in a crash.Btw: is there any way to determine if a
REG_READis possible or not?Von: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel-bounces at venema.h4ckr.net] Im Auftrag von Falk-Moritz Schaefer
Gesendet: Dienstag, 13. Juli 2010 10:28
An: ath9k-devel at venema.h4ckr.net
Betreff: [ath9k-devel]ath9k_htc: how to read registers?
Quoted 6 lines
Hi all,
I have a TL-WN721N USB device with AR9271 chipset. I would like to read registers. There is the ?ath9k_regread? function in ?htc_drv_init.c?, but how to use it?
I am especially interested in the
AR_RCCNTregister.
Take a look at debug.c, read_file_regval().
You can port the "debug" debugfs file implementation from ath9k to ath9k_htc.
Sujith