aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-eeprom.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-04-24 14:55:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:22 -0400
commit694cc56dbb818fe689f721fb53452eb5ad3f8e9a (patch)
tree24dd95c142fbad86f1b31bc836b667adbfafce86 /drivers/net/wireless/iwlwifi/iwl-eeprom.h
parente4d18d817f0ffc830bce57906b2a7dd9e713c388 (diff)
iwlwifi: wrapping nic configuration in iwl core handler
This patch wraps nic hw configuration in a iwl core handler Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.h b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
index 57fb89d5621b..0c42e5a1288b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.h
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
@@ -247,9 +247,21 @@ struct iwl_eeprom_calib_info {
247#define EEPROM_LEDS_MODE (2*0x45+1) /* 1 bytes */ 247#define EEPROM_LEDS_MODE (2*0x45+1) /* 1 bytes */
248#define EEPROM_OEM_MODE (2*0x46) /* 2 bytes */ 248#define EEPROM_OEM_MODE (2*0x46) /* 2 bytes */
249#define EEPROM_WOWLAN_MODE (2*0x47) /* 2 bytes */ 249#define EEPROM_WOWLAN_MODE (2*0x47) /* 2 bytes */
250#define EEPROM_RADIO_CONFIG (2*0x48) /* 2 bytes */
250#define EEPROM_3945_M_VERSION (2*0x4A) /* 1 bytes */ 251#define EEPROM_3945_M_VERSION (2*0x4A) /* 1 bytes */
251#define EEPROM_ANTENNA_SWITCH_TYPE (2*0x4A+1) /* 1 bytes */ 252#define EEPROM_ANTENNA_SWITCH_TYPE (2*0x4A+1) /* 1 bytes */
252 253
254/* The following masks are to be applied on EEPROM_RADIO_CONFIG */
255#define EEPROM_RF_CFG_TYPE_MSK(x) (x & 0x3) /* bits 0-1 */
256#define EEPROM_RF_CFG_STEP_MSK(x) ((x >> 2) & 0x3) /* bits 2-3 */
257#define EEPROM_RF_CFG_DASH_MSK(x) ((x >> 4) & 0x3) /* bits 4-5 */
258#define EEPROM_RF_CFG_PNUM_MSK(x) ((x >> 6) & 0x3) /* bits 6-7 */
259#define EEPROM_RF_CFG_TX_ANT_MSK(x) ((x >> 8) & 0xF) /* bits 8-11 */
260#define EEPROM_RF_CFG_RX_ANT_MSK(x) ((x >> 12) & 0xF) /* bits 12-15 */
261
262#define EEPROM_3945_RF_CFG_TYPE_MAX 0x0
263#define EEPROM_4965_RF_CFG_TYPE_MAX 0x1
264
253/* 265/*
254 * Per-channel regulatory data. 266 * Per-channel regulatory data.
255 * 267 *