diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2007-11-28 22:09:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:26 -0500 |
commit | 14519a0b46085db68e610147098d03386c34801f (patch) | |
tree | 3e44b32572ff57ef60ff2c49b7655fc59957f669 /drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |
parent | 2248d8d8bc9799baf7f0a08afee7cb3afcc20ed3 (diff) |
iwlwifi: move uCode API definitions to iwl-4965-commands.h
Move uCode API definitions to iwl-4965-commands.h
Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-commands.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h index bd55709e48f2..49582b90f8cf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |||
@@ -335,6 +335,21 @@ enum { | |||
335 | RXON_DEV_TYPE_SNIFFER = 6, | 335 | RXON_DEV_TYPE_SNIFFER = 6, |
336 | }; | 336 | }; |
337 | 337 | ||
338 | |||
339 | #define RXON_RX_CHAIN_DRIVER_FORCE_MSK __constant_cpu_to_le16(0x1<<0) | ||
340 | #define RXON_RX_CHAIN_VALID_MSK __constant_cpu_to_le16(0x7<<1) | ||
341 | #define RXON_RX_CHAIN_VALID_POS (1) | ||
342 | #define RXON_RX_CHAIN_FORCE_SEL_MSK __constant_cpu_to_le16(0x7<<4) | ||
343 | #define RXON_RX_CHAIN_FORCE_SEL_POS (4) | ||
344 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK __constant_cpu_to_le16(0x7<<7) | ||
345 | #define RXON_RX_CHAIN_FORCE_MIMO_SEL_POS (7) | ||
346 | #define RXON_RX_CHAIN_CNT_MSK __constant_cpu_to_le16(0x3<<10) | ||
347 | #define RXON_RX_CHAIN_CNT_POS (10) | ||
348 | #define RXON_RX_CHAIN_MIMO_CNT_MSK __constant_cpu_to_le16(0x3<<12) | ||
349 | #define RXON_RX_CHAIN_MIMO_CNT_POS (12) | ||
350 | #define RXON_RX_CHAIN_MIMO_FORCE_MSK __constant_cpu_to_le16(0x1<<14) | ||
351 | #define RXON_RX_CHAIN_MIMO_FORCE_POS (14) | ||
352 | |||
338 | /* rx_config flags */ | 353 | /* rx_config flags */ |
339 | /* band & modulation selection */ | 354 | /* band & modulation selection */ |
340 | #define RXON_FLG_BAND_24G_MSK __constant_cpu_to_le32(1 << 0) | 355 | #define RXON_FLG_BAND_24G_MSK __constant_cpu_to_le32(1 << 0) |
@@ -358,6 +373,21 @@ enum { | |||
358 | * (according to ON_AIR deassertion) */ | 373 | * (according to ON_AIR deassertion) */ |
359 | #define RXON_FLG_TSF2HOST_MSK __constant_cpu_to_le32(1 << 15) | 374 | #define RXON_FLG_TSF2HOST_MSK __constant_cpu_to_le32(1 << 15) |
360 | 375 | ||
376 | |||
377 | /* HT flags */ | ||
378 | #define RXON_FLG_CTRL_CHANNEL_LOC_POS (22) | ||
379 | #define RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK __constant_cpu_to_le32(0x1<<22) | ||
380 | |||
381 | #define RXON_FLG_HT_OPERATING_MODE_POS (23) | ||
382 | |||
383 | #define RXON_FLG_HT_PROT_MSK __constant_cpu_to_le32(0x1<<23) | ||
384 | #define RXON_FLG_FAT_PROT_MSK __constant_cpu_to_le32(0x2<<23) | ||
385 | |||
386 | #define RXON_FLG_CHANNEL_MODE_POS (25) | ||
387 | #define RXON_FLG_CHANNEL_MODE_MSK __constant_cpu_to_le32(0x3<<25) | ||
388 | #define RXON_FLG_CHANNEL_MODE_PURE_40_MSK __constant_cpu_to_le32(0x1<<25) | ||
389 | #define RXON_FLG_CHANNEL_MODE_MIXED_MSK __constant_cpu_to_le32(0x2<<25) | ||
390 | |||
361 | /* rx_config filter flags */ | 391 | /* rx_config filter flags */ |
362 | /* accept all data frames */ | 392 | /* accept all data frames */ |
363 | #define RXON_FILTER_PROMISC_MSK __constant_cpu_to_le32(1 << 0) | 393 | #define RXON_FILTER_PROMISC_MSK __constant_cpu_to_le32(1 << 0) |
@@ -431,6 +461,15 @@ struct iwl4965_tx_power { | |||
431 | #define POWER_TABLE_NUM_ENTRIES 33 | 461 | #define POWER_TABLE_NUM_ENTRIES 33 |
432 | #define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32 | 462 | #define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32 |
433 | #define POWER_TABLE_CCK_ENTRY 32 | 463 | #define POWER_TABLE_CCK_ENTRY 32 |
464 | |||
465 | union iwl4965_tx_power_dual_stream { | ||
466 | struct { | ||
467 | u8 radio_tx_gain[2]; | ||
468 | u8 dsp_predis_atten[2]; | ||
469 | } s; | ||
470 | u32 dw; | ||
471 | }; | ||
472 | |||
434 | struct tx_power_dual_stream { | 473 | struct tx_power_dual_stream { |
435 | __le32 dw; | 474 | __le32 dw; |
436 | } __attribute__ ((packed)); | 475 | } __attribute__ ((packed)); |