Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2/******************************************************************************
3 *
4 * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
5 *
6 * Portions of this file are derived from the ipw3945 project, as well
7 * as portions of the ieee80211 subsystem header files.
8 *****************************************************************************/
9#ifndef __iwl_power_setting_h__
10#define __iwl_power_setting_h__
11
12#include "commands.h"
13
14struct iwl_power_mgr {
15 struct iwl_powertable_cmd sleep_cmd;
16 struct iwl_powertable_cmd sleep_cmd_next;
17 int debug_sleep_level_override;
18 bool bus_pm;
19};
20
21int iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd,
22 bool force);
23int iwl_power_update_mode(struct iwl_priv *priv, bool force);
24void iwl_power_initialize(struct iwl_priv *priv);
25
26extern bool no_sleep_autoadjust;
27
28#endif /* __iwl_power_setting_h__ */
1/* SPDX-License-Identifier: GPL-2.0-only */
2/******************************************************************************
3 *
4 * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
5 *
6 * Portions of this file are derived from the ipw3945 project, as well
7 * as portions of the ieee80211 subsystem header files.
8 *
9 * Contact Information:
10 * Intel Linux Wireless <linuxwifi@intel.com>
11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
12 *****************************************************************************/
13#ifndef __iwl_power_setting_h__
14#define __iwl_power_setting_h__
15
16#include "commands.h"
17
18struct iwl_power_mgr {
19 struct iwl_powertable_cmd sleep_cmd;
20 struct iwl_powertable_cmd sleep_cmd_next;
21 int debug_sleep_level_override;
22 bool bus_pm;
23};
24
25int iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd,
26 bool force);
27int iwl_power_update_mode(struct iwl_priv *priv, bool force);
28void iwl_power_initialize(struct iwl_priv *priv);
29
30extern bool no_sleep_autoadjust;
31
32#endif /* __iwl_power_setting_h__ */