aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h69
1 files changed, 35 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 8f8734fc4f3..56964eeb523 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -2875,36 +2875,25 @@ struct iwl_sensitivity_cmd {
2875 * 1-0: amount of gain, units of 1.5 dB 2875 * 1-0: amount of gain, units of 1.5 dB
2876 */ 2876 */
2877 2877
2878/* "Differential Gain" opcode used in REPLY_PHY_CALIBRATION_CMD. */ 2878/* Phy calibration command for series */
2879#define PHY_CALIBRATE_DIFF_GAIN_CMD (7)
2880
2881struct iwl4965_calibration_cmd {
2882 u8 opCode; /* PHY_CALIBRATE_DIFF_GAIN_CMD (7) */
2883 u8 flags; /* not used */
2884 __le16 reserved;
2885 s8 diff_gain_a; /* see above */
2886 s8 diff_gain_b;
2887 s8 diff_gain_c;
2888 u8 reserved1;
2889} __attribute__ ((packed));
2890
2891/* Phy calibration command for 5000 series */
2892 2879
2893enum { 2880enum {
2894 IWL5000_PHY_CALIBRATE_DC_CMD = 8, 2881 IWL_PHY_CALIBRATE_DIFF_GAIN_CMD = 7,
2895 IWL5000_PHY_CALIBRATE_LO_CMD = 9, 2882 IWL_PHY_CALIBRATE_DC_CMD = 8,
2896 IWL5000_PHY_CALIBRATE_RX_BB_CMD = 10, 2883 IWL_PHY_CALIBRATE_LO_CMD = 9,
2897 IWL5000_PHY_CALIBRATE_TX_IQ_CMD = 11, 2884 IWL_PHY_CALIBRATE_RX_BB_CMD = 10,
2898 IWL5000_PHY_CALIBRATE_RX_IQ_CMD = 12, 2885 IWL_PHY_CALIBRATE_TX_IQ_CMD = 11,
2899 IWL5000_PHY_CALIBRATION_NOISE_CMD = 13, 2886 IWL_PHY_CALIBRATE_RX_IQ_CMD = 12,
2900 IWL5000_PHY_CALIBRATE_AGC_TABLE_CMD = 14, 2887 IWL_PHY_CALIBRATION_NOISE_CMD = 13,
2901 IWL5000_PHY_CALIBRATE_CRYSTAL_FRQ_CMD = 15, 2888 IWL_PHY_CALIBRATE_AGC_TABLE_CMD = 14,
2902 IWL5000_PHY_CALIBRATE_BASE_BAND_CMD = 16, 2889 IWL_PHY_CALIBRATE_CRYSTAL_FRQ_CMD = 15,
2903 IWL5000_PHY_CALIBRATE_TX_IQ_PERD_CMD = 17, 2890 IWL_PHY_CALIBRATE_BASE_BAND_CMD = 16,
2904 IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD = 18, 2891 IWL_PHY_CALIBRATE_TX_IQ_PERD_CMD = 17,
2905 IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD = 19, 2892 IWL_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD = 18,
2893 IWL_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD = 19,
2906}; 2894};
2907 2895
2896
2908struct iwl_cal_xtal_freq { 2897struct iwl_cal_xtal_freq {
2909 u8 cap_pin1; 2898 u8 cap_pin1;
2910 u8 cap_pin2; 2899 u8 cap_pin2;
@@ -2926,32 +2915,44 @@ struct iwl_calib_cfg_status_s {
2926 __le32 flags; 2915 __le32 flags;
2927} __attribute__ ((packed)); 2916} __attribute__ ((packed));
2928 2917
2929struct iwl5000_calib_cfg_cmd { 2918struct iwl_calib_cfg_cmd {
2930 struct iwl_calib_cfg_status_s ucd_calib_cfg; 2919 struct iwl_calib_cfg_status_s ucd_calib_cfg;
2931 struct iwl_calib_cfg_status_s drv_calib_cfg; 2920 struct iwl_calib_cfg_status_s drv_calib_cfg;
2932 __le32 reserved1; 2921 __le32 reserved1;
2933} __attribute__ ((packed)); 2922} __attribute__ ((packed));
2934 2923
2935struct iwl5000_calib_hdr { 2924struct iwl_calib_hdr {
2936 u8 op_code; 2925 u8 op_code;
2937 u8 first_group; 2926 u8 first_group;
2938 u8 groups_num; 2927 u8 groups_num;
2939 u8 data_valid; 2928 u8 data_valid;
2940} __attribute__ ((packed)); 2929} __attribute__ ((packed));
2941 2930
2942struct iwl5000_calib_cmd { 2931struct iwl_calib_cmd {
2943 struct iwl5000_calib_hdr hdr; 2932 struct iwl_calib_hdr hdr;
2944 u8 data[0]; 2933 u8 data[0];
2945} __attribute__ ((packed)); 2934} __attribute__ ((packed));
2946 2935
2947struct iwl5000_calibration_chain_noise_reset_cmd { 2936/* "Differential Gain" opcode used in REPLY_PHY_CALIBRATION_CMD. */
2948 u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */ 2937
2938struct iwl_calib_diff_gain_cmd {
2939 u8 opCode; /* IWL_PHY_CALIBRATE_DIFF_GAIN_CMD (7) */
2940 u8 flags; /* not used */
2941 __le16 reserved;
2942 s8 diff_gain_a; /* see above */
2943 s8 diff_gain_b;
2944 s8 diff_gain_c;
2945 u8 reserved1;
2946} __attribute__ ((packed));
2947
2948struct iwl_calib_chain_noise_reset_cmd {
2949 u8 op_code; /* IWL_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */
2949 u8 flags; /* not used */ 2950 u8 flags; /* not used */
2950 __le16 reserved; 2951 __le16 reserved;
2951} __attribute__ ((packed)); 2952} __attribute__ ((packed));
2952 2953
2953struct iwl5000_calibration_chain_noise_gain_cmd { 2954struct iwl_calib_chain_noise_gain_cmd {
2954 u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD */ 2955 u8 op_code; /* IWL_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD */
2955 u8 flags; /* not used */ 2956 u8 flags; /* not used */
2956 __le16 reserved; 2957 __le16 reserved;
2957 u8 delta_gain_1; 2958 u8 delta_gain_1;