diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 51 |
1 files changed, 46 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 9904406ae368..5cc6c5e1865c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "iwl-eeprom.h" | 40 | #include "iwl-eeprom.h" |
41 | #include "iwl-4965-hw.h" | 41 | #include "iwl-4965-hw.h" |
42 | #include "iwl-3945-hw.h" | 42 | #include "iwl-3945-hw.h" |
43 | #include "iwl-3945-led.h" | ||
43 | #include "iwl-csr.h" | 44 | #include "iwl-csr.h" |
44 | #include "iwl-prph.h" | 45 | #include "iwl-prph.h" |
45 | #include "iwl-debug.h" | 46 | #include "iwl-debug.h" |
@@ -835,7 +836,7 @@ struct iwl_priv { | |||
835 | 836 | ||
836 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; | 837 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; |
837 | 838 | ||
838 | #ifdef CONFIG_IWLAGN_SPECTRUM_MEASUREMENT | 839 | #if defined(CONFIG_IWLAGN_SPECTRUM_MEASUREMENT) || defined(CONFIG_IWL3945_SPECTRUM_MEASUREMENT) |
839 | /* spectrum measurement report caching */ | 840 | /* spectrum measurement report caching */ |
840 | struct iwl_spectrum_notification measure_report; | 841 | struct iwl_spectrum_notification measure_report; |
841 | u8 measurement_status; | 842 | u8 measurement_status; |
@@ -916,18 +917,25 @@ struct iwl_priv { | |||
916 | * 4965's initialize alive response contains some calibration data. */ | 917 | * 4965's initialize alive response contains some calibration data. */ |
917 | struct iwl_init_alive_resp card_alive_init; | 918 | struct iwl_init_alive_resp card_alive_init; |
918 | struct iwl_alive_resp card_alive; | 919 | struct iwl_alive_resp card_alive; |
919 | #ifdef CONFIG_IWLWIFI_RFKILL | 920 | #if defined(CONFIG_IWLWIFI_RFKILL) || defined(CONFIG_IWL3945_RFKILL) |
920 | struct rfkill *rfkill; | 921 | struct rfkill *rfkill; |
921 | #endif | 922 | #endif |
922 | 923 | ||
923 | #ifdef CONFIG_IWLWIFI_LEDS | 924 | #if defined(CONFIG_IWLWIFI_LEDS) || defined(CONFIG_IWL3945_LEDS) |
924 | struct iwl_led led[IWL_LED_TRG_MAX]; | ||
925 | unsigned long last_blink_time; | 925 | unsigned long last_blink_time; |
926 | u8 last_blink_rate; | 926 | u8 last_blink_rate; |
927 | u8 allow_blinking; | 927 | u8 allow_blinking; |
928 | u64 led_tpt; | 928 | u64 led_tpt; |
929 | #endif | 929 | #endif |
930 | 930 | ||
931 | #ifdef CONFIG_IWLWIFI_LEDS | ||
932 | struct iwl_led led[IWL_LED_TRG_MAX]; | ||
933 | #endif | ||
934 | |||
935 | #ifdef CONFIG_IWL3945_LEDS | ||
936 | struct iwl3945_led led39[IWL_LED_TRG_MAX]; | ||
937 | unsigned int rxtxpackets; | ||
938 | #endif | ||
931 | u16 active_rate; | 939 | u16 active_rate; |
932 | u16 active_rate_basic; | 940 | u16 active_rate_basic; |
933 | 941 | ||
@@ -1048,12 +1056,16 @@ struct iwl_priv { | |||
1048 | struct delayed_work init_alive_start; | 1056 | struct delayed_work init_alive_start; |
1049 | struct delayed_work alive_start; | 1057 | struct delayed_work alive_start; |
1050 | struct delayed_work scan_check; | 1058 | struct delayed_work scan_check; |
1059 | |||
1060 | /*For 3945 only*/ | ||
1061 | struct delayed_work thermal_periodic; | ||
1062 | |||
1051 | /* TX Power */ | 1063 | /* TX Power */ |
1052 | s8 tx_power_user_lmt; | 1064 | s8 tx_power_user_lmt; |
1053 | s8 tx_power_channel_lmt; | 1065 | s8 tx_power_channel_lmt; |
1054 | 1066 | ||
1055 | 1067 | ||
1056 | #ifdef CONFIG_IWLWIFI_DEBUG | 1068 | #if defined(CONFIG_IWLWIFI_DEBUG) || defined(CONFIG_IWL3945_DEBUG) |
1057 | /* debugging info */ | 1069 | /* debugging info */ |
1058 | u32 debug_level; | 1070 | u32 debug_level; |
1059 | u32 framecnt_to_us; | 1071 | u32 framecnt_to_us; |
@@ -1070,6 +1082,35 @@ struct iwl_priv { | |||
1070 | u32 disable_tx_power_cal; | 1082 | u32 disable_tx_power_cal; |
1071 | struct work_struct run_time_calib_work; | 1083 | struct work_struct run_time_calib_work; |
1072 | struct timer_list statistics_periodic; | 1084 | struct timer_list statistics_periodic; |
1085 | |||
1086 | /*For 3945*/ | ||
1087 | #define IWL_DEFAULT_TX_POWER 0x0F | ||
1088 | s8 user_txpower_limit; | ||
1089 | s8 max_channel_txpower_limit; | ||
1090 | |||
1091 | struct iwl3945_scan_cmd *scan39; | ||
1092 | |||
1093 | /* We declare this const so it can only be | ||
1094 | * changed via explicit cast within the | ||
1095 | * routines that actually update the physical | ||
1096 | * hardware */ | ||
1097 | const struct iwl3945_rxon_cmd active39_rxon; | ||
1098 | struct iwl3945_rxon_cmd staging39_rxon; | ||
1099 | struct iwl3945_rxon_cmd recovery39_rxon; | ||
1100 | |||
1101 | struct iwl3945_tx_queue txq39[IWL39_MAX_NUM_QUEUES]; | ||
1102 | |||
1103 | struct iwl3945_power_mgr power_data_39; | ||
1104 | struct iwl3945_notif_statistics statistics_39; | ||
1105 | |||
1106 | struct iwl3945_station_entry stations_39[IWL_STATION_COUNT]; | ||
1107 | |||
1108 | /* eeprom */ | ||
1109 | struct iwl3945_eeprom eeprom39; | ||
1110 | |||
1111 | u32 sta_supp_rates; | ||
1112 | u8 call_post_assoc_from_beacon; | ||
1113 | |||
1073 | }; /*iwl_priv */ | 1114 | }; /*iwl_priv */ |
1074 | 1115 | ||
1075 | static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id) | 1116 | static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id) |