162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/******************************************************************************
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Portions of this file are derived from the ipw3945 project, as well
762306a36Sopenharmony_ci * as portions of the ieee80211 subsystem header files.
862306a36Sopenharmony_ci *****************************************************************************/
962306a36Sopenharmony_ci#ifndef __iwl_power_setting_h__
1062306a36Sopenharmony_ci#define __iwl_power_setting_h__
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#include "commands.h"
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cistruct iwl_power_mgr {
1562306a36Sopenharmony_ci	struct iwl_powertable_cmd sleep_cmd;
1662306a36Sopenharmony_ci	struct iwl_powertable_cmd sleep_cmd_next;
1762306a36Sopenharmony_ci	int debug_sleep_level_override;
1862306a36Sopenharmony_ci	bool bus_pm;
1962306a36Sopenharmony_ci};
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciint iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd,
2262306a36Sopenharmony_ci		       bool force);
2362306a36Sopenharmony_ciint iwl_power_update_mode(struct iwl_priv *priv, bool force);
2462306a36Sopenharmony_civoid iwl_power_initialize(struct iwl_priv *priv);
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciextern bool no_sleep_autoadjust;
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif  /* __iwl_power_setting_h__ */
29