diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index a637abe6efef..6f62beb1e4bb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -2778,10 +2778,59 @@ enum { | |||
2778 | IWL5000_PHY_CALIBRATE_AGC_TABLE_CMD = 14, | 2778 | IWL5000_PHY_CALIBRATE_AGC_TABLE_CMD = 14, |
2779 | IWL5000_PHY_CALIBRATE_CRYSTAL_FRQ_CMD = 15, | 2779 | IWL5000_PHY_CALIBRATE_CRYSTAL_FRQ_CMD = 15, |
2780 | IWL5000_PHY_CALIBRATE_BASE_BAND_CMD = 16, | 2780 | IWL5000_PHY_CALIBRATE_BASE_BAND_CMD = 16, |
2781 | IWL5000_PHY_CALIBRATE_TX_IQ_PERD_CMD = 17, | ||
2781 | IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD = 18, | 2782 | IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD = 18, |
2782 | IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD = 19, | 2783 | IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD = 19, |
2783 | }; | 2784 | }; |
2784 | 2785 | ||
2786 | enum { | ||
2787 | CALIBRATION_CFG_CMD = 0x65, | ||
2788 | CALIBRATION_RES_NOTIFICATION = 0x66, | ||
2789 | CALIBRATION_COMPLETE_NOTIFICATION = 0x67 | ||
2790 | }; | ||
2791 | |||
2792 | struct iwl_cal_crystal_freq_cmd { | ||
2793 | u8 cap_pin1; | ||
2794 | u8 cap_pin2; | ||
2795 | } __attribute__ ((packed)); | ||
2796 | |||
2797 | struct iwl5000_calibration { | ||
2798 | u8 op_code; | ||
2799 | u8 first_group; | ||
2800 | u8 num_groups; | ||
2801 | u8 all_data_valid; | ||
2802 | struct iwl_cal_crystal_freq_cmd data; | ||
2803 | } __attribute__ ((packed)); | ||
2804 | |||
2805 | #define IWL_CALIB_INIT_CFG_ALL __constant_cpu_to_le32(0xffffffff) | ||
2806 | |||
2807 | struct iwl_calib_cfg_elmnt_s { | ||
2808 | __le32 is_enable; | ||
2809 | __le32 start; | ||
2810 | __le32 send_res; | ||
2811 | __le32 apply_res; | ||
2812 | __le32 reserved; | ||
2813 | } __attribute__ ((packed)); | ||
2814 | |||
2815 | struct iwl_calib_cfg_status_s { | ||
2816 | struct iwl_calib_cfg_elmnt_s once; | ||
2817 | struct iwl_calib_cfg_elmnt_s perd; | ||
2818 | __le32 flags; | ||
2819 | } __attribute__ ((packed)); | ||
2820 | |||
2821 | struct iwl5000_calib_cfg_cmd { | ||
2822 | struct iwl_calib_cfg_status_s ucd_calib_cfg; | ||
2823 | struct iwl_calib_cfg_status_s drv_calib_cfg; | ||
2824 | __le32 reserved1; | ||
2825 | } __attribute__ ((packed)); | ||
2826 | |||
2827 | struct iwl5000_calib_hdr { | ||
2828 | u8 op_code; | ||
2829 | u8 first_group; | ||
2830 | u8 groups_num; | ||
2831 | u8 data_valid; | ||
2832 | } __attribute__ ((packed)); | ||
2833 | |||
2785 | struct iwl5000_calibration_chain_noise_reset_cmd { | 2834 | struct iwl5000_calibration_chain_noise_reset_cmd { |
2786 | u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */ | 2835 | u8 op_code; /* IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */ |
2787 | u8 flags; /* not used */ | 2836 | u8 flags; /* not used */ |
@@ -2894,6 +2943,7 @@ struct iwl_rx_packet { | |||
2894 | struct iwl4965_notif_statistics stats; | 2943 | struct iwl4965_notif_statistics stats; |
2895 | struct iwl4965_compressed_ba_resp compressed_ba; | 2944 | struct iwl4965_compressed_ba_resp compressed_ba; |
2896 | struct iwl4965_missed_beacon_notif missed_beacon; | 2945 | struct iwl4965_missed_beacon_notif missed_beacon; |
2946 | struct iwl5000_calibration calib; | ||
2897 | __le32 status; | 2947 | __le32 status; |
2898 | u8 raw[0]; | 2948 | u8 raw[0]; |
2899 | } u; | 2949 | } u; |