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