iwl-power.h 1.9 KB
Newer Older
M
Mohamed Abbas 已提交
1 2
/******************************************************************************
 *
W
Wey-Yi Guy 已提交
3
 * Copyright(c) 2007 - 2012 Intel Corporation. All rights reserved.
M
Mohamed Abbas 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 *
 * Portions of this file are derived from the ipw3945 project, as well
 * as portions of the ieee80211 subsystem header files.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
 *
 * The full GNU General Public License is included in this distribution in the
 * file called LICENSE.
 *
 * Contact Information:
25
 *  Intel Linux Wireless <ilw@linux.intel.com>
M
Mohamed Abbas 已提交
26 27 28 29 30
 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
 *****************************************************************************/
#ifndef __iwl_power_setting_h__
#define __iwl_power_setting_h__

31
#include "iwl-commands.h"
M
Mohamed Abbas 已提交
32

33
enum iwl_power_level {
34 35 36 37 38
	IWL_POWER_INDEX_1,
	IWL_POWER_INDEX_2,
	IWL_POWER_INDEX_3,
	IWL_POWER_INDEX_4,
	IWL_POWER_INDEX_5,
J
Johannes Berg 已提交
39
	IWL_POWER_NUM
40 41
};

M
Mohamed Abbas 已提交
42
struct iwl_power_mgr {
43
	struct iwl_powertable_cmd sleep_cmd;
44
	struct iwl_powertable_cmd sleep_cmd_next;
45
	int debug_sleep_level_override;
46
	bool bus_pm;
M
Mohamed Abbas 已提交
47 48
};

49 50
int iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd,
		       bool force);
51
int iwl_power_update_mode(struct iwl_priv *priv, bool force);
M
Mohamed Abbas 已提交
52 53
void iwl_power_initialize(struct iwl_priv *priv);

54 55
extern bool no_sleep_autoadjust;

M
Mohamed Abbas 已提交
56
#endif  /* __iwl_power_setting_h__ */