aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath.h
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2010-11-19 06:23:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-24 16:19:40 -0500
commitbedbbb959d2c1d1dbb4c2215f5b7074b1da3030a (patch)
tree83609c06dc41fd7e8d6e34ae518928cdf663d90f /drivers/net/wireless/ath/ath.h
parent35162ba75900209755628ccf7357763797037ba6 (diff)
ath: Add a driver_info bitmask field
The driver_info stores the device category information which is used to load appropriate device firmware, select firmware offset and eeprom starting location. The driver_info is accessed across ath9k_htc and ath9k_hw. Hence placed under common structure. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r--drivers/net/wireless/ath/ath.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index 501050c0296f..20ea68c59f7b 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -104,6 +104,11 @@ enum ath_cipher {
104 ATH_CIPHER_MIC = 127 104 ATH_CIPHER_MIC = 127
105}; 105};
106 106
107enum ath_drv_info {
108 AR7010_DEVICE = BIT(0),
109 AR9287_DEVICE = BIT(1),
110};
111
107/** 112/**
108 * struct ath_ops - Register read/write operations 113 * struct ath_ops - Register read/write operations
109 * 114 *
@@ -147,6 +152,7 @@ struct ath_common {
147 u8 rx_chainmask; 152 u8 rx_chainmask;
148 153
149 u32 rx_bufsize; 154 u32 rx_bufsize;
155 u32 driver_info;
150 156
151 u32 keymax; 157 u32 keymax;
152 DECLARE_BITMAP(keymap, ATH_KEYMAX); 158 DECLARE_BITMAP(keymap, ATH_KEYMAX);