aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorBen Cahill <ben.m.cahill@intel.com>2007-11-28 22:09:59 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:26 -0500
commit14519a0b46085db68e610147098d03386c34801f (patch)
tree3e44b32572ff57ef60ff2c49b7655fc59957f669 /drivers/net/wireless/iwlwifi
parent2248d8d8bc9799baf7f0a08afee7cb3afcc20ed3 (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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-commands.h39
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-hw.h37
2 files changed, 39 insertions, 37 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
465union 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
434struct tx_power_dual_stream { 473struct tx_power_dual_stream {
435 __le32 dw; 474 __le32 dw;
436} __attribute__ ((packed)); 475} __attribute__ ((packed));
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
index 02ea71ec1d3e..962aef2f1ef2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
@@ -698,45 +698,8 @@ enum {
698#define CALIB_IWL_TX_ATTEN_GR5_FCH 1 698#define CALIB_IWL_TX_ATTEN_GR5_FCH 1
699#define CALIB_IWL_TX_ATTEN_GR5_LCH 20 699#define CALIB_IWL_TX_ATTEN_GR5_LCH 20
700 700
701union iwl4965_tx_power_dual_stream {
702 struct {
703 u8 radio_tx_gain[2];
704 u8 dsp_predis_atten[2];
705 } s;
706 u32 dw;
707};
708
709/********************* END TXPOWER *****************************************/ 701/********************* END TXPOWER *****************************************/
710 702
711/* HT flags */
712#define RXON_FLG_CTRL_CHANNEL_LOC_POS (22)
713#define RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK __constant_cpu_to_le32(0x1<<22)
714
715#define RXON_FLG_HT_OPERATING_MODE_POS (23)
716
717#define RXON_FLG_HT_PROT_MSK __constant_cpu_to_le32(0x1<<23)
718#define RXON_FLG_FAT_PROT_MSK __constant_cpu_to_le32(0x2<<23)
719
720#define RXON_FLG_CHANNEL_MODE_POS (25)
721#define RXON_FLG_CHANNEL_MODE_MSK __constant_cpu_to_le32(0x3<<25)
722#define RXON_FLG_CHANNEL_MODE_PURE_40_MSK __constant_cpu_to_le32(0x1<<25)
723#define RXON_FLG_CHANNEL_MODE_MIXED_MSK __constant_cpu_to_le32(0x2<<25)
724
725#define RXON_RX_CHAIN_DRIVER_FORCE_MSK __constant_cpu_to_le16(0x1<<0)
726#define RXON_RX_CHAIN_VALID_MSK __constant_cpu_to_le16(0x7<<1)
727#define RXON_RX_CHAIN_VALID_POS (1)
728#define RXON_RX_CHAIN_FORCE_SEL_MSK __constant_cpu_to_le16(0x7<<4)
729#define RXON_RX_CHAIN_FORCE_SEL_POS (4)
730#define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK __constant_cpu_to_le16(0x7<<7)
731#define RXON_RX_CHAIN_FORCE_MIMO_SEL_POS (7)
732#define RXON_RX_CHAIN_CNT_MSK __constant_cpu_to_le16(0x3<<10)
733#define RXON_RX_CHAIN_CNT_POS (10)
734#define RXON_RX_CHAIN_MIMO_CNT_MSK __constant_cpu_to_le16(0x3<<12)
735#define RXON_RX_CHAIN_MIMO_CNT_POS (12)
736#define RXON_RX_CHAIN_MIMO_FORCE_MSK __constant_cpu_to_le16(0x1<<14)
737#define RXON_RX_CHAIN_MIMO_FORCE_POS (14)
738
739
740/* Flow Handler Definitions */ 703/* Flow Handler Definitions */
741 704
742/**********************/ 705/**********************/