aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-04-24 14:55:30 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:24 -0400
commit33fd503346ad86bd7470a0f8c4c3080393d14233 (patch)
tree5753cf92656fa885f80cb8cab2b8b14c4c45f085 /drivers/net/wireless/iwlwifi/iwl-4965-commands.h
parentc031bf806fef4854b02266a4105f55ed31f2d1a8 (diff)
iwlwifi-5000: add run time calibrations for 5000
This patch adds support for run time calibrations for the 5000 family HW. Those calibrations are sensitivity calibration, and chain noise calibration. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> 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-4965-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-commands.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
index d0e3f35d4984..a5c33f354171 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
@@ -2671,6 +2671,37 @@ struct iwl4965_calibration_cmd {
2671 u8 reserved1; 2671 u8 reserved1;
2672} __attribute__ ((packed)); 2672} __attribute__ ((packed));
2673 2673
2674/* Phy calibration command for 5000 series */
2675
2676enum {
2677 IWL5000_PHY_CALIBRATE_DC_CMD = 8,
2678 IWL5000_PHY_CALIBRATE_LO_CMD = 9,
2679 IWL5000_PHY_CALIBRATE_RX_BB_CMD = 10,
2680 IWL5000_PHY_CALIBRATE_TX_IQ_CMD = 11,
2681 IWL5000_PHY_CALIBRATE_RX_IQ_CMD = 12,
2682 IWL5000_PHY_CALIBRATION_NOISE_CMD = 13,
2683 IWL5000_PHY_CALIBRATE_AGC_TABLE_CMD = 14,
2684 IWL5000_PHY_CALIBRATE_CRYSTAL_FRQ_CMD = 15,
2685 IWL5000_PHY_CALIBRATE_BASE_BAND_CMD = 16,
2686 IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD = 18,
2687 IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD = 19,
2688};
2689
2690struct iwl5000_calibration_chain_noise_reset_cmd {
2691 u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */
2692 u8 flags; /* not used */
2693 __le16 reserved;
2694} __attribute__ ((packed));
2695
2696struct iwl5000_calibration_chain_noise_gain_cmd {
2697 u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD */
2698 u8 flags; /* not used */
2699 __le16 reserved;
2700 u8 delta_gain_1;
2701 u8 delta_gain_2;
2702 __le16 reserved1;
2703} __attribute__ ((packed));
2704
2674/****************************************************************************** 2705/******************************************************************************
2675 * (12) 2706 * (12)
2676 * Miscellaneous Commands: 2707 * Miscellaneous Commands: