diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2008-12-18 21:37:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:59 -0500 |
commit | 1125eff3ae26b2e39c6bf940b5e0b8774ebd2896 (patch) | |
tree | 52fdfab290f3c3a7e287a635850abfddbdcff297 /drivers/net/wireless/iwlwifi/iwl-3945.h | |
parent | b5b83239e7a3540ff31db24249b90f9f6d7f5be8 (diff) |
iwl3945: Remove power related definitions from 3945 code
Most of the power (not TX power, but power management) structures and
definitions are duplicated accross iwl-power.h and iwl-3945.h. We should try
to only use the iwl header.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Acked-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h index 6d0ec0a65b14..dd15b3203a6f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945.h | |||
@@ -47,6 +47,7 @@ extern struct pci_device_id iwl3945_hw_card_ids[]; | |||
47 | #include "iwl-prph.h" | 47 | #include "iwl-prph.h" |
48 | #include "iwl-3945-hw.h" | 48 | #include "iwl-3945-hw.h" |
49 | #include "iwl-debug.h" | 49 | #include "iwl-debug.h" |
50 | #include "iwl-power.h" | ||
50 | #include "iwl-3945-led.h" | 51 | #include "iwl-3945-led.h" |
51 | 52 | ||
52 | /* Highest firmware API version supported */ | 53 | /* Highest firmware API version supported */ |
@@ -246,33 +247,6 @@ struct iwl3945_clip_group { | |||
246 | /* Minimum number of queues. MAX_NUM is defined in hw specific files */ | 247 | /* Minimum number of queues. MAX_NUM is defined in hw specific files */ |
247 | #define IWL_MIN_NUM_QUEUES 4 | 248 | #define IWL_MIN_NUM_QUEUES 4 |
248 | 249 | ||
249 | /* Power management (not Tx power) structures */ | ||
250 | |||
251 | struct iwl3945_power_vec_entry { | ||
252 | struct iwl_powertable_cmd cmd; | ||
253 | u8 no_dtim; | ||
254 | }; | ||
255 | #define IWL_POWER_RANGE_0 (0) | ||
256 | #define IWL_POWER_RANGE_1 (1) | ||
257 | |||
258 | #define IWL_POWER_MODE_CAM 0x00 /* Continuously Aware Mode, always on */ | ||
259 | #define IWL_POWER_INDEX_3 0x03 | ||
260 | #define IWL_POWER_INDEX_5 0x05 | ||
261 | #define IWL_POWER_AC 0x06 | ||
262 | #define IWL_POWER_BATTERY 0x07 | ||
263 | #define IWL_POWER_LIMIT 0x07 | ||
264 | #define IWL_POWER_MASK 0x0F | ||
265 | #define IWL_POWER_ENABLED 0x10 | ||
266 | #define IWL_POWER_LEVEL(x) ((x) & IWL_POWER_MASK) | ||
267 | |||
268 | struct iwl3945_power_mgr { | ||
269 | spinlock_t lock; | ||
270 | struct iwl3945_power_vec_entry pwr_range_0[IWL_POWER_AC]; | ||
271 | struct iwl3945_power_vec_entry pwr_range_1[IWL_POWER_AC]; | ||
272 | u8 active_index; | ||
273 | u32 dtim_val; | ||
274 | }; | ||
275 | |||
276 | #define IEEE80211_DATA_LEN 2304 | 250 | #define IEEE80211_DATA_LEN 2304 |
277 | #define IEEE80211_4ADDR_LEN 30 | 251 | #define IEEE80211_4ADDR_LEN 30 |
278 | #define IEEE80211_HLEN (IEEE80211_4ADDR_LEN) | 252 | #define IEEE80211_HLEN (IEEE80211_4ADDR_LEN) |