diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2009-01-19 18:30:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:00 -0500 |
commit | 3dae0c42ba1d51ae49bf149d1dcc38ffbb357409 (patch) | |
tree | 817d2d25c8fd3671e6c1cab023ceed7c63729995 /drivers/net/wireless/iwlwifi/iwl-power.h | |
parent | 62ea9c5b9e531dbf6b2601e6c9e2705a56983b6e (diff) |
iwlwifi: eliminate power_data_39.
This patch eliminates 3945 power_data structure and make use of
of iwl_power_data.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Mohamed Abbas <mohamed.abbas@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-power.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.h b/drivers/net/wireless/iwlwifi/iwl-power.h index 476c2aa2bf75..859b60b5335c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.h +++ b/drivers/net/wireless/iwlwifi/iwl-power.h | |||
@@ -66,6 +66,14 @@ enum { | |||
66 | 66 | ||
67 | /* Power management (not Tx power) structures */ | 67 | /* Power management (not Tx power) structures */ |
68 | 68 | ||
69 | #define NOSLP __constant_cpu_to_le16(0), 0, 0 | ||
70 | #define SLP IWL_POWER_DRIVER_ALLOW_SLEEP_MSK, 0, 0 | ||
71 | #define SLP_TOUT(T) __constant_cpu_to_le32((T) * MSEC_TO_USEC) | ||
72 | #define SLP_VEC(X0, X1, X2, X3, X4) {__constant_cpu_to_le32(X0), \ | ||
73 | __constant_cpu_to_le32(X1), \ | ||
74 | __constant_cpu_to_le32(X2), \ | ||
75 | __constant_cpu_to_le32(X3), \ | ||
76 | __constant_cpu_to_le32(X4)} | ||
69 | struct iwl_power_vec_entry { | 77 | struct iwl_power_vec_entry { |
70 | struct iwl_powertable_cmd cmd; | 78 | struct iwl_powertable_cmd cmd; |
71 | u8 no_dtim; | 79 | u8 no_dtim; |
@@ -86,14 +94,6 @@ struct iwl_power_mgr { | |||
86 | u8 power_disabled; /* flag to disable using power saving level */ | 94 | u8 power_disabled; /* flag to disable using power saving level */ |
87 | }; | 95 | }; |
88 | 96 | ||
89 | struct iwl3945_power_mgr { | ||
90 | spinlock_t lock; | ||
91 | struct iwl_power_vec_entry pwr_range_0[IWL_POWER_AC]; | ||
92 | struct iwl_power_vec_entry pwr_range_1[IWL_POWER_AC]; | ||
93 | u8 active_index; | ||
94 | u32 dtim_val; | ||
95 | }; | ||
96 | |||
97 | void iwl_setup_power_deferred_work(struct iwl_priv *priv); | 97 | void iwl_setup_power_deferred_work(struct iwl_priv *priv); |
98 | void iwl_power_cancel_timeout(struct iwl_priv *priv); | 98 | void iwl_power_cancel_timeout(struct iwl_priv *priv); |
99 | int iwl_power_update_mode(struct iwl_priv *priv, bool force); | 99 | int iwl_power_update_mode(struct iwl_priv *priv, bool force); |