aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-08-31 07:53:04 -0400
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 08:20:19 -0500
commit99412002a07b63781adfc3d1272d3677841d4170 (patch)
tree7766bb7b86cf69cce9a909a04ef36580f7fd97b5 /drivers
parent3fbbf9a8083049718c44e43dc88c8e79cb0b7793 (diff)
iwlegacy: merge iwl-power.h into common.h
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlegacy/3945.h1
-rw-r--r--drivers/net/wireless/iwlegacy/commands.h2
-rw-r--r--drivers/net/wireless/iwlegacy/common.c1
-rw-r--r--drivers/net/wireless/iwlegacy/common.h11
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-power.h55
5 files changed, 12 insertions, 58 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.h b/drivers/net/wireless/iwlegacy/3945.h
index 726ca2c5cd6a..22166bdbeeec 100644
--- a/drivers/net/wireless/iwlegacy/3945.h
+++ b/drivers/net/wireless/iwlegacy/3945.h
@@ -37,7 +37,6 @@ extern const struct pci_device_id il3945_hw_card_ids[];
37#include "common.h" 37#include "common.h"
38#include "iwl-prph.h" 38#include "iwl-prph.h"
39#include "iwl-debug.h" 39#include "iwl-debug.h"
40#include "iwl-power.h"
41#include "iwl-led.h" 40#include "iwl-led.h"
42#include "iwl-eeprom.h" 41#include "iwl-eeprom.h"
43 42
diff --git a/drivers/net/wireless/iwlegacy/commands.h b/drivers/net/wireless/iwlegacy/commands.h
index 2f64ed391681..9eb7a83bbf1b 100644
--- a/drivers/net/wireless/iwlegacy/commands.h
+++ b/drivers/net/wireless/iwlegacy/commands.h
@@ -64,6 +64,8 @@
64#ifndef __il_commands_h__ 64#ifndef __il_commands_h__
65#define __il_commands_h__ 65#define __il_commands_h__
66 66
67#include <linux/ieee80211.h>
68
67struct il_priv; 69struct il_priv;
68 70
69/* uCode version contains 4 values: Major/Minor/API/Serial */ 71/* uCode version contains 4 values: Major/Minor/API/Serial */
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c
index 4258bf6d5150..3b8d47c0d6b5 100644
--- a/drivers/net/wireless/iwlegacy/common.c
+++ b/drivers/net/wireless/iwlegacy/common.c
@@ -43,7 +43,6 @@
43#include "iwl-eeprom.h" 43#include "iwl-eeprom.h"
44#include "iwl-debug.h" 44#include "iwl-debug.h"
45#include "common.h" 45#include "common.h"
46#include "iwl-power.h"
47 46
48const char *il_get_cmd_string(u8 cmd) 47const char *il_get_cmd_string(u8 cmd)
49{ 48{
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h
index 2e66929c34ef..65c593d34bf0 100644
--- a/drivers/net/wireless/iwlegacy/common.h
+++ b/drivers/net/wireless/iwlegacy/common.h
@@ -33,12 +33,12 @@
33#include <linux/wait.h> 33#include <linux/wait.h>
34#include <net/ieee80211_radiotap.h> 34#include <net/ieee80211_radiotap.h>
35 35
36#include "commands.h"
36#include "iwl-eeprom.h" 37#include "iwl-eeprom.h"
37#include "csr.h" 38#include "csr.h"
38#include "iwl-prph.h" 39#include "iwl-prph.h"
39#include "iwl-debug.h" 40#include "iwl-debug.h"
40#include "iwl-led.h" 41#include "iwl-led.h"
41#include "iwl-power.h"
42 42
43struct il_host_cmd; 43struct il_host_cmd;
44struct il_cmd; 44struct il_cmd;
@@ -938,6 +938,13 @@ struct il_rxon_context {
938 } ht; 938 } ht;
939}; 939};
940 940
941struct il_power_mgr {
942 struct il_powertable_cmd sleep_cmd;
943 struct il_powertable_cmd sleep_cmd_next;
944 int debug_sleep_level_override;
945 bool pci_pm;
946};
947
941struct il_priv { 948struct il_priv {
942 949
943 /* ieee device used by generic ieee processing code */ 950 /* ieee device used by generic ieee processing code */
@@ -2996,4 +3003,6 @@ extern int il3945_rate_control_register(void);
2996extern void il4965_rate_control_unregister(void); 3003extern void il4965_rate_control_unregister(void);
2997extern void il3945_rate_control_unregister(void); 3004extern void il3945_rate_control_unregister(void);
2998 3005
3006extern int il_power_update_mode(struct il_priv *il, bool force);
3007extern void il_power_initialize(struct il_priv *il);
2999#endif /* __il_core_h__ */ 3008#endif /* __il_core_h__ */
diff --git a/drivers/net/wireless/iwlegacy/iwl-power.h b/drivers/net/wireless/iwlegacy/iwl-power.h
deleted file mode 100644
index c0ae3fa6d774..000000000000
--- a/drivers/net/wireless/iwlegacy/iwl-power.h
+++ /dev/null
@@ -1,55 +0,0 @@
1/******************************************************************************
2 *
3 * Copyright(c) 2007 - 2011 Intel Corporation. All rights reserved.
4 *
5 * Portions of this file are derived from the ipw3945 project, as well
6 * as portions of the ieee80211 subsystem header files.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of version 2 of the GNU General Public License as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
20 *
21 * The full GNU General Public License is included in this distribution in the
22 * file called LICENSE.
23 *
24 * Contact Information:
25 * Intel Linux Wireless <ilw@linux.intel.com>
26 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
27 *****************************************************************************/
28#ifndef __il_power_setting_h__
29#define __il_power_setting_h__
30
31#include "commands.h"
32
33enum il_power_level {
34 IL_POWER_IDX_1,
35 IL_POWER_IDX_2,
36 IL_POWER_IDX_3,
37 IL_POWER_IDX_4,
38 IL_POWER_IDX_5,
39 IL_POWER_NUM
40};
41
42struct il_power_mgr {
43 struct il_powertable_cmd sleep_cmd;
44 struct il_powertable_cmd sleep_cmd_next;
45 int debug_sleep_level_override;
46 bool pci_pm;
47};
48
49int
50il_power_set_mode(struct il_priv *il, struct il_powertable_cmd *cmd,
51 bool force);
52int il_power_update_mode(struct il_priv *il, bool force);
53void il_power_initialize(struct il_priv *il);
54
55#endif /* __il_power_setting_h__ */