diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-01-04 13:17:18 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-19 11:36:06 -0500 |
commit | 09a525d33870e8a16076ec0200cc5002f6bef35d (patch) | |
tree | 75f3ae04c9175d569c7ef2add7bfe1eb913b3f09 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | fcdc403c31ed5bb5f3baf42f4e2b5e7198fef0c0 (diff) | |
download | blackbird-obmc-linux-09a525d33870e8a16076ec0200cc5002f6bef35d.tar.gz blackbird-obmc-linux-09a525d33870e8a16076ec0200cc5002f6bef35d.zip |
ath9k_htc: Add multiple register read API
This would decrease latency in reading bulk registers.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 5a3dfec45e96..c2b3515deea1 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -70,6 +70,9 @@ #define REG_READ(_ah, _reg) \ ath9k_hw_common(_ah)->ops->read((_ah), (_reg)) +#define REG_READ_MULTI(_ah, _addr, _val, _cnt) \ + ath9k_hw_common(_ah)->ops->multi_read((_ah), (_addr), (_val), (_cnt)) + #define ENABLE_REGWRITE_BUFFER(_ah) \ do { \ if (ath9k_hw_common(_ah)->ops->enable_write_buffer) \ |