ath: Add a driver_info bitmask field
authorRajkumar Manoharan <rmanoharan@atheros.com>
Fri, 19 Nov 2010 11:23:19 +0000 (16:53 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:40 +0000 (16:19 -0500)
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>
drivers/net/wireless/ath/ath.h

index 501050c0296f10a3e7ea6abb4a45170fffa2b095..20ea68c59f7b9dbdb6ac1503660ee197d1a39497 100644 (file)
@@ -104,6 +104,11 @@ enum ath_cipher {
        ATH_CIPHER_MIC = 127
 };
 
+enum ath_drv_info {
+       AR7010_DEVICE           = BIT(0),
+       AR9287_DEVICE           = BIT(1),
+};
+
 /**
  * struct ath_ops - Register read/write operations
  *
@@ -147,6 +152,7 @@ struct ath_common {
        u8 rx_chainmask;
 
        u32 rx_bufsize;
+       u32 driver_info;
 
        u32 keymax;
        DECLARE_BITMAP(keymap, ATH_KEYMAX);