Skip to content

Commit

Permalink
ath: Add a driver_info bitmask field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Nov 24, 2010
1 parent 35162ba commit bedbbb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/wireless/ath/ath.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -147,6 +152,7 @@ struct ath_common {
u8 rx_chainmask;

u32 rx_bufsize;
u32 driver_info;

u32 keymax;
DECLARE_BITMAP(keymap, ATH_KEYMAX);
Expand Down

0 comments on commit bedbbb9

Please sign in to comment.