Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
0002 /*
0003  * Copyright (C) 2012-2014, 2019-2021 Intel Corporation
0004  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
0005  * Copyright (C) 2016-2017 Intel Deutschland GmbH
0006  */
0007 #ifndef __iwl_fw_api_system_h__
0008 #define __iwl_fw_api_system_h__
0009 
0010 #define SOC_CONFIG_CMD_FLAGS_DISCRETE       BIT(0)
0011 #define SOC_CONFIG_CMD_FLAGS_LOW_LATENCY    BIT(1)
0012 
0013 #define SOC_FLAGS_LTR_APPLY_DELAY_MASK      0xc
0014 #define SOC_FLAGS_LTR_APPLY_DELAY_NONE      0
0015 #define SOC_FLAGS_LTR_APPLY_DELAY_200       1
0016 #define SOC_FLAGS_LTR_APPLY_DELAY_2500      2
0017 #define SOC_FLAGS_LTR_APPLY_DELAY_1820      3
0018 
0019 /**
0020  * struct iwl_soc_configuration_cmd - Set device stabilization latency
0021  *
0022  * @flags: soc settings flags.  In VER_1, we can only set the DISCRETE
0023  *  flag, because the FW treats the whole value as an integer. In
0024  *  VER_2, we can set the bits independently.
0025  * @latency: time for SOC to ensure stable power & XTAL
0026  */
0027 struct iwl_soc_configuration_cmd {
0028     __le32 flags;
0029     __le32 latency;
0030 } __packed; /*
0031          * SOC_CONFIGURATION_CMD_S_VER_1 (see description above)
0032          * SOC_CONFIGURATION_CMD_S_VER_2
0033          */
0034 
0035 /**
0036  * struct iwl_system_features_control_cmd - system features control command
0037  * @features: bitmap of features to disable
0038  */
0039 struct iwl_system_features_control_cmd {
0040     __le32 features[4];
0041 } __packed; /* SYSTEM_FEATURES_CONTROL_CMD_API_S_VER_1 */
0042 
0043 #endif /* __iwl_fw_api_system_h__ */