xref: /freebsd/sys/contrib/dev/iwlwifi/fw/api/nvm-reg.h (revision 9af1bba44e1ce9b0296ae56760b564d67ab7a1cf)
1bfcc09ddSBjoern A. Zeeb /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2bfcc09ddSBjoern A. Zeeb /*
3d9836fb4SBjoern A. Zeeb  * Copyright (C) 2012-2014, 2018-2022 Intel Corporation
4bfcc09ddSBjoern A. Zeeb  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5bfcc09ddSBjoern A. Zeeb  * Copyright (C) 2016-2017 Intel Deutschland GmbH
6bfcc09ddSBjoern A. Zeeb  */
7bfcc09ddSBjoern A. Zeeb #ifndef __iwl_fw_api_nvm_reg_h__
8bfcc09ddSBjoern A. Zeeb #define __iwl_fw_api_nvm_reg_h__
9bfcc09ddSBjoern A. Zeeb 
10bfcc09ddSBjoern A. Zeeb /**
11bfcc09ddSBjoern A. Zeeb  * enum iwl_regulatory_and_nvm_subcmd_ids - regulatory/NVM commands
12bfcc09ddSBjoern A. Zeeb  */
13bfcc09ddSBjoern A. Zeeb enum iwl_regulatory_and_nvm_subcmd_ids {
14bfcc09ddSBjoern A. Zeeb 	/**
15bfcc09ddSBjoern A. Zeeb 	 * @NVM_ACCESS_COMPLETE: &struct iwl_nvm_access_complete_cmd
16bfcc09ddSBjoern A. Zeeb 	 */
17bfcc09ddSBjoern A. Zeeb 	NVM_ACCESS_COMPLETE = 0x0,
18bfcc09ddSBjoern A. Zeeb 
19bfcc09ddSBjoern A. Zeeb 	/**
20*9af1bba4SBjoern A. Zeeb 	 * @LARI_CONFIG_CHANGE: &struct iwl_lari_config_change_cmd_v1,
21*9af1bba4SBjoern A. Zeeb 	 *	&struct iwl_lari_config_change_cmd_v2,
22*9af1bba4SBjoern A. Zeeb 	 *	&struct iwl_lari_config_change_cmd_v3,
23*9af1bba4SBjoern A. Zeeb 	 *	&struct iwl_lari_config_change_cmd_v4,
24*9af1bba4SBjoern A. Zeeb 	 *	&struct iwl_lari_config_change_cmd_v5 or
25*9af1bba4SBjoern A. Zeeb 	 *	&struct iwl_lari_config_change_cmd_v6
26bfcc09ddSBjoern A. Zeeb 	 */
27bfcc09ddSBjoern A. Zeeb 	LARI_CONFIG_CHANGE = 0x1,
28bfcc09ddSBjoern A. Zeeb 
29bfcc09ddSBjoern A. Zeeb 	/**
30bfcc09ddSBjoern A. Zeeb 	 * @NVM_GET_INFO:
31bfcc09ddSBjoern A. Zeeb 	 * Command is &struct iwl_nvm_get_info,
32bfcc09ddSBjoern A. Zeeb 	 * response is &struct iwl_nvm_get_info_rsp
33bfcc09ddSBjoern A. Zeeb 	 */
34bfcc09ddSBjoern A. Zeeb 	NVM_GET_INFO = 0x2,
35bfcc09ddSBjoern A. Zeeb 
36bfcc09ddSBjoern A. Zeeb 	/**
37*9af1bba4SBjoern A. Zeeb 	 * @TAS_CONFIG: &union iwl_tas_config_cmd
38bfcc09ddSBjoern A. Zeeb 	 */
39bfcc09ddSBjoern A. Zeeb 	TAS_CONFIG = 0x3,
40bfcc09ddSBjoern A. Zeeb 
41bfcc09ddSBjoern A. Zeeb 	/**
42*9af1bba4SBjoern A. Zeeb 	 * @SAR_OFFSET_MAPPING_TABLE_CMD: &struct iwl_sar_offset_mapping_cmd
43d9836fb4SBjoern A. Zeeb 	 */
44d9836fb4SBjoern A. Zeeb 	SAR_OFFSET_MAPPING_TABLE_CMD = 0x4,
45d9836fb4SBjoern A. Zeeb 
46d9836fb4SBjoern A. Zeeb 	/**
47bfcc09ddSBjoern A. Zeeb 	 * @PNVM_INIT_COMPLETE_NTFY: &struct iwl_pnvm_init_complete_ntfy
48bfcc09ddSBjoern A. Zeeb 	 */
49bfcc09ddSBjoern A. Zeeb 	PNVM_INIT_COMPLETE_NTFY = 0xFE,
50bfcc09ddSBjoern A. Zeeb };
51bfcc09ddSBjoern A. Zeeb 
52bfcc09ddSBjoern A. Zeeb /**
53bfcc09ddSBjoern A. Zeeb  * enum iwl_nvm_access_op - NVM access opcode
54bfcc09ddSBjoern A. Zeeb  * @IWL_NVM_READ: read NVM
55bfcc09ddSBjoern A. Zeeb  * @IWL_NVM_WRITE: write NVM
56bfcc09ddSBjoern A. Zeeb  */
57bfcc09ddSBjoern A. Zeeb enum iwl_nvm_access_op {
58bfcc09ddSBjoern A. Zeeb 	IWL_NVM_READ	= 0,
59bfcc09ddSBjoern A. Zeeb 	IWL_NVM_WRITE	= 1,
60bfcc09ddSBjoern A. Zeeb };
61bfcc09ddSBjoern A. Zeeb 
62bfcc09ddSBjoern A. Zeeb /**
63bfcc09ddSBjoern A. Zeeb  * enum iwl_nvm_access_target - target of the NVM_ACCESS_CMD
64bfcc09ddSBjoern A. Zeeb  * @NVM_ACCESS_TARGET_CACHE: access the cache
65bfcc09ddSBjoern A. Zeeb  * @NVM_ACCESS_TARGET_OTP: access the OTP
66bfcc09ddSBjoern A. Zeeb  * @NVM_ACCESS_TARGET_EEPROM: access the EEPROM
67bfcc09ddSBjoern A. Zeeb  */
68bfcc09ddSBjoern A. Zeeb enum iwl_nvm_access_target {
69bfcc09ddSBjoern A. Zeeb 	NVM_ACCESS_TARGET_CACHE = 0,
70bfcc09ddSBjoern A. Zeeb 	NVM_ACCESS_TARGET_OTP = 1,
71bfcc09ddSBjoern A. Zeeb 	NVM_ACCESS_TARGET_EEPROM = 2,
72bfcc09ddSBjoern A. Zeeb };
73bfcc09ddSBjoern A. Zeeb 
74bfcc09ddSBjoern A. Zeeb /**
75bfcc09ddSBjoern A. Zeeb  * enum iwl_nvm_section_type - section types for NVM_ACCESS_CMD
76bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_SW: software section
77bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_REGULATORY: regulatory section
78bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_CALIBRATION: calibration section
79bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_PRODUCTION: production section
80bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_REGULATORY_SDP: regulatory section used by 3168 series
81bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_MAC_OVERRIDE: MAC override section
82bfcc09ddSBjoern A. Zeeb  * @NVM_SECTION_TYPE_PHY_SKU: PHY SKU section
83bfcc09ddSBjoern A. Zeeb  * @NVM_MAX_NUM_SECTIONS: number of sections
84bfcc09ddSBjoern A. Zeeb  */
85bfcc09ddSBjoern A. Zeeb enum iwl_nvm_section_type {
86bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_SW = 1,
87bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_REGULATORY = 3,
88bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_CALIBRATION = 4,
89bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_PRODUCTION = 5,
90bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_REGULATORY_SDP = 8,
91bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_MAC_OVERRIDE = 11,
92bfcc09ddSBjoern A. Zeeb 	NVM_SECTION_TYPE_PHY_SKU = 12,
93bfcc09ddSBjoern A. Zeeb 	NVM_MAX_NUM_SECTIONS = 13,
94bfcc09ddSBjoern A. Zeeb };
95bfcc09ddSBjoern A. Zeeb 
96bfcc09ddSBjoern A. Zeeb /**
97bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_access_cmd - Request the device to send an NVM section
98bfcc09ddSBjoern A. Zeeb  * @op_code: &enum iwl_nvm_access_op
99bfcc09ddSBjoern A. Zeeb  * @target: &enum iwl_nvm_access_target
100bfcc09ddSBjoern A. Zeeb  * @type: &enum iwl_nvm_section_type
101bfcc09ddSBjoern A. Zeeb  * @offset: offset in bytes into the section
102bfcc09ddSBjoern A. Zeeb  * @length: in bytes, to read/write
103bfcc09ddSBjoern A. Zeeb  * @data: if write operation, the data to write. On read its empty
104bfcc09ddSBjoern A. Zeeb  */
105bfcc09ddSBjoern A. Zeeb struct iwl_nvm_access_cmd {
106bfcc09ddSBjoern A. Zeeb 	u8 op_code;
107bfcc09ddSBjoern A. Zeeb 	u8 target;
108bfcc09ddSBjoern A. Zeeb 	__le16 type;
109bfcc09ddSBjoern A. Zeeb 	__le16 offset;
110bfcc09ddSBjoern A. Zeeb 	__le16 length;
111bfcc09ddSBjoern A. Zeeb 	u8 data[];
112bfcc09ddSBjoern A. Zeeb } __packed; /* NVM_ACCESS_CMD_API_S_VER_2 */
113bfcc09ddSBjoern A. Zeeb 
114bfcc09ddSBjoern A. Zeeb /**
115bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_access_resp_ver2 - response to NVM_ACCESS_CMD
116bfcc09ddSBjoern A. Zeeb  * @offset: offset in bytes into the section
117bfcc09ddSBjoern A. Zeeb  * @length: in bytes, either how much was written or read
118bfcc09ddSBjoern A. Zeeb  * @type: NVM_SECTION_TYPE_*
119bfcc09ddSBjoern A. Zeeb  * @status: 0 for success, fail otherwise
120bfcc09ddSBjoern A. Zeeb  * @data: if read operation, the data returned. Empty on write.
121bfcc09ddSBjoern A. Zeeb  */
122bfcc09ddSBjoern A. Zeeb struct iwl_nvm_access_resp {
123bfcc09ddSBjoern A. Zeeb 	__le16 offset;
124bfcc09ddSBjoern A. Zeeb 	__le16 length;
125bfcc09ddSBjoern A. Zeeb 	__le16 type;
126bfcc09ddSBjoern A. Zeeb 	__le16 status;
127bfcc09ddSBjoern A. Zeeb 	u8 data[];
128bfcc09ddSBjoern A. Zeeb } __packed; /* NVM_ACCESS_CMD_RESP_API_S_VER_2 */
129bfcc09ddSBjoern A. Zeeb 
130bfcc09ddSBjoern A. Zeeb /*
131bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info - request to get NVM data
132bfcc09ddSBjoern A. Zeeb  */
133bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info {
134bfcc09ddSBjoern A. Zeeb 	__le32 reserved;
135bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_CMD_API_S_VER_1 */
136bfcc09ddSBjoern A. Zeeb 
137bfcc09ddSBjoern A. Zeeb /**
138bfcc09ddSBjoern A. Zeeb  * enum iwl_nvm_info_general_flags - flags in NVM_GET_INFO resp
139bfcc09ddSBjoern A. Zeeb  * @NVM_GENERAL_FLAGS_EMPTY_OTP: 1 if OTP is empty
140bfcc09ddSBjoern A. Zeeb  */
141bfcc09ddSBjoern A. Zeeb enum iwl_nvm_info_general_flags {
142bfcc09ddSBjoern A. Zeeb 	NVM_GENERAL_FLAGS_EMPTY_OTP	= BIT(0),
143bfcc09ddSBjoern A. Zeeb };
144bfcc09ddSBjoern A. Zeeb 
145bfcc09ddSBjoern A. Zeeb /**
146bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_general - general NVM data
147bfcc09ddSBjoern A. Zeeb  * @flags: bit 0: 1 - empty, 0 - non-empty
148bfcc09ddSBjoern A. Zeeb  * @nvm_version: nvm version
149bfcc09ddSBjoern A. Zeeb  * @board_type: board type
150bfcc09ddSBjoern A. Zeeb  * @n_hw_addrs: number of reserved MAC addresses
151bfcc09ddSBjoern A. Zeeb  */
152bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_general {
153bfcc09ddSBjoern A. Zeeb 	__le32 flags;
154bfcc09ddSBjoern A. Zeeb 	__le16 nvm_version;
155bfcc09ddSBjoern A. Zeeb 	u8 board_type;
156bfcc09ddSBjoern A. Zeeb 	u8 n_hw_addrs;
157bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_GENERAL_S_VER_2 */
158bfcc09ddSBjoern A. Zeeb 
159bfcc09ddSBjoern A. Zeeb /**
160bfcc09ddSBjoern A. Zeeb  * enum iwl_nvm_mac_sku_flags - flags in &iwl_nvm_get_info_sku
161bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_BAND_2_4_ENABLED: true if 2.4 band enabled
162bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_BAND_5_2_ENABLED: true if 5.2 band enabled
163bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_802_11N_ENABLED: true if 11n enabled
164bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_802_11AC_ENABLED: true if 11ac enabled
165bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_MIMO_DISABLED: true if MIMO disabled
166bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_WAPI_ENABLED: true if WAPI enabled
167bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_REG_CHECK_ENABLED: true if regulatory checker enabled
168bfcc09ddSBjoern A. Zeeb  * @NVM_MAC_SKU_FLAGS_API_LOCK_ENABLED: true if API lock enabled
169bfcc09ddSBjoern A. Zeeb  */
170bfcc09ddSBjoern A. Zeeb enum iwl_nvm_mac_sku_flags {
171bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_BAND_2_4_ENABLED	= BIT(0),
172bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_BAND_5_2_ENABLED	= BIT(1),
173bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_802_11N_ENABLED	= BIT(2),
174bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_802_11AC_ENABLED	= BIT(3),
175bfcc09ddSBjoern A. Zeeb 	/**
176bfcc09ddSBjoern A. Zeeb 	 * @NVM_MAC_SKU_FLAGS_802_11AX_ENABLED: true if 11ax enabled
177bfcc09ddSBjoern A. Zeeb 	 */
178bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_802_11AX_ENABLED	= BIT(4),
179bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_MIMO_DISABLED		= BIT(5),
180bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_WAPI_ENABLED		= BIT(8),
181bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_REG_CHECK_ENABLED	= BIT(14),
182bfcc09ddSBjoern A. Zeeb 	NVM_MAC_SKU_FLAGS_API_LOCK_ENABLED	= BIT(15),
183bfcc09ddSBjoern A. Zeeb };
184bfcc09ddSBjoern A. Zeeb 
185bfcc09ddSBjoern A. Zeeb /**
186bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_sku - mac information
187bfcc09ddSBjoern A. Zeeb  * @mac_sku_flags: flags for SKU, see &enum iwl_nvm_mac_sku_flags
188bfcc09ddSBjoern A. Zeeb  */
189bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_sku {
190bfcc09ddSBjoern A. Zeeb 	__le32 mac_sku_flags;
191bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_MAC_SKU_SECTION_S_VER_2 */
192bfcc09ddSBjoern A. Zeeb 
193bfcc09ddSBjoern A. Zeeb /**
194bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_phy - phy information
195bfcc09ddSBjoern A. Zeeb  * @tx_chains: BIT 0 chain A, BIT 1 chain B
196bfcc09ddSBjoern A. Zeeb  * @rx_chains: BIT 0 chain A, BIT 1 chain B
197bfcc09ddSBjoern A. Zeeb  */
198bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_phy {
199bfcc09ddSBjoern A. Zeeb 	__le32 tx_chains;
200bfcc09ddSBjoern A. Zeeb 	__le32 rx_chains;
201bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_PHY_SKU_SECTION_S_VER_1 */
202bfcc09ddSBjoern A. Zeeb 
203bfcc09ddSBjoern A. Zeeb #define IWL_NUM_CHANNELS_V1	51
204bfcc09ddSBjoern A. Zeeb #define IWL_NUM_CHANNELS	110
205bfcc09ddSBjoern A. Zeeb 
206bfcc09ddSBjoern A. Zeeb /**
207bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_regulatory - regulatory information
208bfcc09ddSBjoern A. Zeeb  * @lar_enabled: is LAR enabled
209bfcc09ddSBjoern A. Zeeb  * @channel_profile: regulatory data of this channel
210bfcc09ddSBjoern A. Zeeb  * @reserved: reserved
211bfcc09ddSBjoern A. Zeeb  */
212bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_regulatory_v1 {
213bfcc09ddSBjoern A. Zeeb 	__le32 lar_enabled;
214bfcc09ddSBjoern A. Zeeb 	__le16 channel_profile[IWL_NUM_CHANNELS_V1];
215bfcc09ddSBjoern A. Zeeb 	__le16 reserved;
216bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_REGULATORY_S_VER_1 */
217bfcc09ddSBjoern A. Zeeb 
218bfcc09ddSBjoern A. Zeeb /**
219bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_regulatory - regulatory information
220bfcc09ddSBjoern A. Zeeb  * @lar_enabled: is LAR enabled
221bfcc09ddSBjoern A. Zeeb  * @n_channels: number of valid channels in the array
222bfcc09ddSBjoern A. Zeeb  * @channel_profile: regulatory data of this channel
223bfcc09ddSBjoern A. Zeeb  */
224bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_regulatory {
225bfcc09ddSBjoern A. Zeeb 	__le32 lar_enabled;
226bfcc09ddSBjoern A. Zeeb 	__le32 n_channels;
227bfcc09ddSBjoern A. Zeeb 	__le32 channel_profile[IWL_NUM_CHANNELS];
228bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_REGULATORY_S_VER_2 */
229bfcc09ddSBjoern A. Zeeb 
230bfcc09ddSBjoern A. Zeeb /**
231bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_rsp_v3 - response to get NVM data
232bfcc09ddSBjoern A. Zeeb  * @general: general NVM data
233bfcc09ddSBjoern A. Zeeb  * @mac_sku: data relating to MAC sku
234bfcc09ddSBjoern A. Zeeb  * @phy_sku: data relating to PHY sku
235bfcc09ddSBjoern A. Zeeb  * @regulatory: regulatory data
236bfcc09ddSBjoern A. Zeeb  */
237bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_rsp_v3 {
238bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_general general;
239bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_sku mac_sku;
240bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_phy phy_sku;
241bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_regulatory_v1 regulatory;
242bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_RSP_API_S_VER_3 */
243bfcc09ddSBjoern A. Zeeb 
244bfcc09ddSBjoern A. Zeeb /**
245bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_get_info_rsp - response to get NVM data
246bfcc09ddSBjoern A. Zeeb  * @general: general NVM data
247bfcc09ddSBjoern A. Zeeb  * @mac_sku: data relating to MAC sku
248bfcc09ddSBjoern A. Zeeb  * @phy_sku: data relating to PHY sku
249bfcc09ddSBjoern A. Zeeb  * @regulatory: regulatory data
250bfcc09ddSBjoern A. Zeeb  */
251bfcc09ddSBjoern A. Zeeb struct iwl_nvm_get_info_rsp {
252bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_general general;
253bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_sku mac_sku;
254bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_phy phy_sku;
255bfcc09ddSBjoern A. Zeeb 	struct iwl_nvm_get_info_regulatory regulatory;
256bfcc09ddSBjoern A. Zeeb } __packed; /* REGULATORY_NVM_GET_INFO_RSP_API_S_VER_4 */
257bfcc09ddSBjoern A. Zeeb 
258bfcc09ddSBjoern A. Zeeb /**
259bfcc09ddSBjoern A. Zeeb  * struct iwl_nvm_access_complete_cmd - NVM_ACCESS commands are completed
260bfcc09ddSBjoern A. Zeeb  * @reserved: reserved
261bfcc09ddSBjoern A. Zeeb  */
262bfcc09ddSBjoern A. Zeeb struct iwl_nvm_access_complete_cmd {
263bfcc09ddSBjoern A. Zeeb 	__le32 reserved;
264bfcc09ddSBjoern A. Zeeb } __packed; /* NVM_ACCESS_COMPLETE_CMD_API_S_VER_1 */
265bfcc09ddSBjoern A. Zeeb 
266bfcc09ddSBjoern A. Zeeb /**
267bfcc09ddSBjoern A. Zeeb  * struct iwl_mcc_update_cmd - Request the device to update geographic
268bfcc09ddSBjoern A. Zeeb  * regulatory profile according to the given MCC (Mobile Country Code).
269bfcc09ddSBjoern A. Zeeb  * The MCC is two letter-code, ascii upper case[A-Z] or '00' for world domain.
270bfcc09ddSBjoern A. Zeeb  * 'ZZ' MCC will be used to switch to NVM default profile; in this case, the
271bfcc09ddSBjoern A. Zeeb  * MCC in the cmd response will be the relevant MCC in the NVM.
272bfcc09ddSBjoern A. Zeeb  * @mcc: given mobile country code
273bfcc09ddSBjoern A. Zeeb  * @source_id: the source from where we got the MCC, see iwl_mcc_source
274bfcc09ddSBjoern A. Zeeb  * @reserved: reserved for alignment
275bfcc09ddSBjoern A. Zeeb  * @key: integrity key for MCC API OEM testing
276bfcc09ddSBjoern A. Zeeb  * @reserved2: reserved
277bfcc09ddSBjoern A. Zeeb  */
278bfcc09ddSBjoern A. Zeeb struct iwl_mcc_update_cmd {
279bfcc09ddSBjoern A. Zeeb 	__le16 mcc;
280bfcc09ddSBjoern A. Zeeb 	u8 source_id;
281bfcc09ddSBjoern A. Zeeb 	u8 reserved;
282bfcc09ddSBjoern A. Zeeb 	__le32 key;
283bfcc09ddSBjoern A. Zeeb 	u8 reserved2[20];
284bfcc09ddSBjoern A. Zeeb } __packed; /* LAR_UPDATE_MCC_CMD_API_S_VER_2 */
285bfcc09ddSBjoern A. Zeeb 
286bfcc09ddSBjoern A. Zeeb /**
287bfcc09ddSBjoern A. Zeeb  * enum iwl_geo_information - geographic information.
288bfcc09ddSBjoern A. Zeeb  * @GEO_NO_INFO: no special info for this geo profile.
289bfcc09ddSBjoern A. Zeeb  * @GEO_WMM_ETSI_5GHZ_INFO: this geo profile limits the WMM params
290bfcc09ddSBjoern A. Zeeb  *	for the 5 GHz band.
291bfcc09ddSBjoern A. Zeeb  */
292bfcc09ddSBjoern A. Zeeb enum iwl_geo_information {
293bfcc09ddSBjoern A. Zeeb 	GEO_NO_INFO =			0,
294bfcc09ddSBjoern A. Zeeb 	GEO_WMM_ETSI_5GHZ_INFO =	BIT(0),
295bfcc09ddSBjoern A. Zeeb };
296bfcc09ddSBjoern A. Zeeb 
297bfcc09ddSBjoern A. Zeeb /**
298bfcc09ddSBjoern A. Zeeb  * struct iwl_mcc_update_resp_v3 - response to MCC_UPDATE_CMD.
299bfcc09ddSBjoern A. Zeeb  * Contains the new channel control profile map, if changed, and the new MCC
300bfcc09ddSBjoern A. Zeeb  * (mobile country code).
301bfcc09ddSBjoern A. Zeeb  * The new MCC may be different than what was requested in MCC_UPDATE_CMD.
302bfcc09ddSBjoern A. Zeeb  * @status: see &enum iwl_mcc_update_status
303bfcc09ddSBjoern A. Zeeb  * @mcc: the new applied MCC
304bfcc09ddSBjoern A. Zeeb  * @cap: capabilities for all channels which matches the MCC
305bfcc09ddSBjoern A. Zeeb  * @source_id: the MCC source, see iwl_mcc_source
306bfcc09ddSBjoern A. Zeeb  * @time: time elapsed from the MCC test start (in units of 30 seconds)
307bfcc09ddSBjoern A. Zeeb  * @geo_info: geographic specific profile information
308bfcc09ddSBjoern A. Zeeb  *	see &enum iwl_geo_information.
309bfcc09ddSBjoern A. Zeeb  * @n_channels: number of channels in @channels_data.
310bfcc09ddSBjoern A. Zeeb  * @channels: channel control data map, DWORD for each channel. Only the first
311bfcc09ddSBjoern A. Zeeb  *	16bits are used.
312bfcc09ddSBjoern A. Zeeb  */
313bfcc09ddSBjoern A. Zeeb struct iwl_mcc_update_resp_v3 {
314bfcc09ddSBjoern A. Zeeb 	__le32 status;
315bfcc09ddSBjoern A. Zeeb 	__le16 mcc;
316bfcc09ddSBjoern A. Zeeb 	u8 cap;
317bfcc09ddSBjoern A. Zeeb 	u8 source_id;
318bfcc09ddSBjoern A. Zeeb 	__le16 time;
319bfcc09ddSBjoern A. Zeeb 	__le16 geo_info;
320bfcc09ddSBjoern A. Zeeb 	__le32 n_channels;
321bfcc09ddSBjoern A. Zeeb 	__le32 channels[];
322bfcc09ddSBjoern A. Zeeb } __packed; /* LAR_UPDATE_MCC_CMD_RESP_S_VER_3 */
323bfcc09ddSBjoern A. Zeeb 
324bfcc09ddSBjoern A. Zeeb /**
325*9af1bba4SBjoern A. Zeeb  * struct iwl_mcc_update_resp_v4 - response to MCC_UPDATE_CMD.
326bfcc09ddSBjoern A. Zeeb  * Contains the new channel control profile map, if changed, and the new MCC
327bfcc09ddSBjoern A. Zeeb  * (mobile country code).
328bfcc09ddSBjoern A. Zeeb  * The new MCC may be different than what was requested in MCC_UPDATE_CMD.
329bfcc09ddSBjoern A. Zeeb  * @status: see &enum iwl_mcc_update_status
330bfcc09ddSBjoern A. Zeeb  * @mcc: the new applied MCC
331bfcc09ddSBjoern A. Zeeb  * @cap: capabilities for all channels which matches the MCC
332bfcc09ddSBjoern A. Zeeb  * @time: time elapsed from the MCC test start (in units of 30 seconds)
333bfcc09ddSBjoern A. Zeeb  * @geo_info: geographic specific profile information
334bfcc09ddSBjoern A. Zeeb  *	see &enum iwl_geo_information.
335bfcc09ddSBjoern A. Zeeb  * @source_id: the MCC source, see iwl_mcc_source
336bfcc09ddSBjoern A. Zeeb  * @reserved: for four bytes alignment.
337bfcc09ddSBjoern A. Zeeb  * @n_channels: number of channels in @channels_data.
338bfcc09ddSBjoern A. Zeeb  * @channels: channel control data map, DWORD for each channel. Only the first
339bfcc09ddSBjoern A. Zeeb  *	16bits are used.
340bfcc09ddSBjoern A. Zeeb  */
341*9af1bba4SBjoern A. Zeeb struct iwl_mcc_update_resp_v4 {
342bfcc09ddSBjoern A. Zeeb 	__le32 status;
343bfcc09ddSBjoern A. Zeeb 	__le16 mcc;
344bfcc09ddSBjoern A. Zeeb 	__le16 cap;
345bfcc09ddSBjoern A. Zeeb 	__le16 time;
346bfcc09ddSBjoern A. Zeeb 	__le16 geo_info;
347bfcc09ddSBjoern A. Zeeb 	u8 source_id;
348bfcc09ddSBjoern A. Zeeb 	u8 reserved[3];
349bfcc09ddSBjoern A. Zeeb 	__le32 n_channels;
350bfcc09ddSBjoern A. Zeeb 	__le32 channels[];
351bfcc09ddSBjoern A. Zeeb } __packed; /* LAR_UPDATE_MCC_CMD_RESP_S_VER_4 */
352bfcc09ddSBjoern A. Zeeb 
353bfcc09ddSBjoern A. Zeeb /**
354*9af1bba4SBjoern A. Zeeb  * struct iwl_mcc_update_resp_v8 - response to MCC_UPDATE_CMD.
355*9af1bba4SBjoern A. Zeeb  * Contains the new channel control profile map, if changed, and the new MCC
356*9af1bba4SBjoern A. Zeeb  * (mobile country code).
357*9af1bba4SBjoern A. Zeeb  * The new MCC may be different than what was requested in MCC_UPDATE_CMD.
358*9af1bba4SBjoern A. Zeeb  * @status: see &enum iwl_mcc_update_status
359*9af1bba4SBjoern A. Zeeb  * @mcc: the new applied MCC
360*9af1bba4SBjoern A. Zeeb  * @padding: padding for 2 bytes.
361*9af1bba4SBjoern A. Zeeb  * @cap: capabilities for all channels which matches the MCC
362*9af1bba4SBjoern A. Zeeb  * @time: time elapsed from the MCC test start (in units of 30 seconds)
363*9af1bba4SBjoern A. Zeeb  * @geo_info: geographic specific profile information
364*9af1bba4SBjoern A. Zeeb  *     see &enum iwl_geo_information.
365*9af1bba4SBjoern A. Zeeb  * @source_id: the MCC source, see iwl_mcc_source
366*9af1bba4SBjoern A. Zeeb  * @reserved: for four bytes alignment.
367*9af1bba4SBjoern A. Zeeb  * @n_channels: number of channels in @channels_data.
368*9af1bba4SBjoern A. Zeeb  * @channels: channel control data map, DWORD for each channel. Only the first
369*9af1bba4SBjoern A. Zeeb  *     16bits are used.
370*9af1bba4SBjoern A. Zeeb  */
371*9af1bba4SBjoern A. Zeeb struct iwl_mcc_update_resp_v8 {
372*9af1bba4SBjoern A. Zeeb 	__le32 status;
373*9af1bba4SBjoern A. Zeeb 	__le16 mcc;
374*9af1bba4SBjoern A. Zeeb 	u8 padding[2];
375*9af1bba4SBjoern A. Zeeb 	__le32 cap;
376*9af1bba4SBjoern A. Zeeb 	__le16 time;
377*9af1bba4SBjoern A. Zeeb 	__le16 geo_info;
378*9af1bba4SBjoern A. Zeeb 	u8 source_id;
379*9af1bba4SBjoern A. Zeeb 	u8 reserved[3];
380*9af1bba4SBjoern A. Zeeb 	__le32 n_channels;
381*9af1bba4SBjoern A. Zeeb 	__le32 channels[];
382*9af1bba4SBjoern A. Zeeb } __packed; /* LAR_UPDATE_MCC_CMD_RESP_S_VER_8 */
383*9af1bba4SBjoern A. Zeeb 
384*9af1bba4SBjoern A. Zeeb /**
385bfcc09ddSBjoern A. Zeeb  * struct iwl_mcc_chub_notif - chub notifies of mcc change
386bfcc09ddSBjoern A. Zeeb  * (MCC_CHUB_UPDATE_CMD = 0xc9)
387bfcc09ddSBjoern A. Zeeb  * The Chub (Communication Hub, CommsHUB) is a HW component that connects to
388bfcc09ddSBjoern A. Zeeb  * the cellular and connectivity cores that gets updates of the mcc, and
389bfcc09ddSBjoern A. Zeeb  * notifies the ucode directly of any mcc change.
390bfcc09ddSBjoern A. Zeeb  * The ucode requests the driver to request the device to update geographic
391bfcc09ddSBjoern A. Zeeb  * regulatory  profile according to the given MCC (Mobile Country Code).
392bfcc09ddSBjoern A. Zeeb  * The MCC is two letter-code, ascii upper case[A-Z] or '00' for world domain.
393bfcc09ddSBjoern A. Zeeb  * 'ZZ' MCC will be used to switch to NVM default profile; in this case, the
394bfcc09ddSBjoern A. Zeeb  * MCC in the cmd response will be the relevant MCC in the NVM.
395bfcc09ddSBjoern A. Zeeb  * @mcc: given mobile country code
396bfcc09ddSBjoern A. Zeeb  * @source_id: identity of the change originator, see iwl_mcc_source
397bfcc09ddSBjoern A. Zeeb  * @reserved1: reserved for alignment
398bfcc09ddSBjoern A. Zeeb  */
399bfcc09ddSBjoern A. Zeeb struct iwl_mcc_chub_notif {
400bfcc09ddSBjoern A. Zeeb 	__le16 mcc;
401bfcc09ddSBjoern A. Zeeb 	u8 source_id;
402bfcc09ddSBjoern A. Zeeb 	u8 reserved1;
403bfcc09ddSBjoern A. Zeeb } __packed; /* LAR_MCC_NOTIFY_S */
404bfcc09ddSBjoern A. Zeeb 
405bfcc09ddSBjoern A. Zeeb enum iwl_mcc_update_status {
406bfcc09ddSBjoern A. Zeeb 	MCC_RESP_NEW_CHAN_PROFILE,
407bfcc09ddSBjoern A. Zeeb 	MCC_RESP_SAME_CHAN_PROFILE,
408bfcc09ddSBjoern A. Zeeb 	MCC_RESP_INVALID,
409bfcc09ddSBjoern A. Zeeb 	MCC_RESP_NVM_DISABLED,
410bfcc09ddSBjoern A. Zeeb 	MCC_RESP_ILLEGAL,
411bfcc09ddSBjoern A. Zeeb 	MCC_RESP_LOW_PRIORITY,
412bfcc09ddSBjoern A. Zeeb 	MCC_RESP_TEST_MODE_ACTIVE,
413bfcc09ddSBjoern A. Zeeb 	MCC_RESP_TEST_MODE_NOT_ACTIVE,
414bfcc09ddSBjoern A. Zeeb 	MCC_RESP_TEST_MODE_DENIAL_OF_SERVICE,
415bfcc09ddSBjoern A. Zeeb };
416bfcc09ddSBjoern A. Zeeb 
417bfcc09ddSBjoern A. Zeeb enum iwl_mcc_source {
418bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_OLD_FW = 0,
419bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_ME = 1,
420bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_BIOS = 2,
421bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_3G_LTE_HOST = 3,
422bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_3G_LTE_DEVICE = 4,
423bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_WIFI = 5,
424bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_RESERVED = 6,
425bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_DEFAULT = 7,
426bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_UNINITIALIZED = 8,
427bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_MCC_API = 9,
428bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_GET_CURRENT = 0x10,
429bfcc09ddSBjoern A. Zeeb 	MCC_SOURCE_GETTING_MCC_TEST_MODE = 0x11,
430bfcc09ddSBjoern A. Zeeb };
431bfcc09ddSBjoern A. Zeeb 
432d9836fb4SBjoern A. Zeeb #define IWL_TAS_BLOCK_LIST_MAX 16
433bfcc09ddSBjoern A. Zeeb /**
434d9836fb4SBjoern A. Zeeb  * struct iwl_tas_config_cmd_v2 - configures the TAS
435bfcc09ddSBjoern A. Zeeb  * @block_list_size: size of relevant field in block_list_array
436d9836fb4SBjoern A. Zeeb  * @block_list_array: list of countries where TAS must be disabled
437bfcc09ddSBjoern A. Zeeb  */
438d9836fb4SBjoern A. Zeeb struct iwl_tas_config_cmd_v2 {
439bfcc09ddSBjoern A. Zeeb 	__le32 block_list_size;
440d9836fb4SBjoern A. Zeeb 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
441bfcc09ddSBjoern A. Zeeb } __packed; /* TAS_CONFIG_CMD_API_S_VER_2 */
442bfcc09ddSBjoern A. Zeeb 
443bfcc09ddSBjoern A. Zeeb /**
444d9836fb4SBjoern A. Zeeb  * struct iwl_tas_config_cmd_v3 - configures the TAS
445d9836fb4SBjoern A. Zeeb  * @block_list_size: size of relevant field in block_list_array
446d9836fb4SBjoern A. Zeeb  * @block_list_array: list of countries where TAS must be disabled
447d9836fb4SBjoern A. Zeeb  * @override_tas_iec: indicates whether to override default value of IEC regulatory
448d9836fb4SBjoern A. Zeeb  * @enable_tas_iec: in case override_tas_iec is set -
449d9836fb4SBjoern A. Zeeb  *	indicates whether IEC regulatory is enabled or disabled
450d9836fb4SBjoern A. Zeeb  */
451d9836fb4SBjoern A. Zeeb struct iwl_tas_config_cmd_v3 {
452d9836fb4SBjoern A. Zeeb 	__le32 block_list_size;
453d9836fb4SBjoern A. Zeeb 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
454d9836fb4SBjoern A. Zeeb 	__le16 override_tas_iec;
455d9836fb4SBjoern A. Zeeb 	__le16 enable_tas_iec;
456d9836fb4SBjoern A. Zeeb } __packed; /* TAS_CONFIG_CMD_API_S_VER_3 */
457d9836fb4SBjoern A. Zeeb 
458d9836fb4SBjoern A. Zeeb /**
459d9836fb4SBjoern A. Zeeb  * struct iwl_tas_config_cmd_v3 - configures the TAS
460d9836fb4SBjoern A. Zeeb  * @block_list_size: size of relevant field in block_list_array
461d9836fb4SBjoern A. Zeeb  * @block_list_array: list of countries where TAS must be disabled
462d9836fb4SBjoern A. Zeeb  * @override_tas_iec: indicates whether to override default value of IEC regulatory
463d9836fb4SBjoern A. Zeeb  * @enable_tas_iec: in case override_tas_iec is set -
464d9836fb4SBjoern A. Zeeb  *	indicates whether IEC regulatory is enabled or disabled
465d9836fb4SBjoern A. Zeeb  * @usa_tas_uhb_allowed: if set, allow TAS UHB in the USA
466d9836fb4SBjoern A. Zeeb  * @reserved: reserved
467d9836fb4SBjoern A. Zeeb */
468d9836fb4SBjoern A. Zeeb struct iwl_tas_config_cmd_v4 {
469d9836fb4SBjoern A. Zeeb 	__le32 block_list_size;
470d9836fb4SBjoern A. Zeeb 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
471d9836fb4SBjoern A. Zeeb 	u8 override_tas_iec;
472d9836fb4SBjoern A. Zeeb 	u8 enable_tas_iec;
473d9836fb4SBjoern A. Zeeb 	u8 usa_tas_uhb_allowed;
474d9836fb4SBjoern A. Zeeb 	u8 reserved;
475d9836fb4SBjoern A. Zeeb } __packed; /* TAS_CONFIG_CMD_API_S_VER_4 */
476d9836fb4SBjoern A. Zeeb 
477d9836fb4SBjoern A. Zeeb union iwl_tas_config_cmd {
478d9836fb4SBjoern A. Zeeb 	struct iwl_tas_config_cmd_v2 v2;
479d9836fb4SBjoern A. Zeeb 	struct iwl_tas_config_cmd_v3 v3;
480d9836fb4SBjoern A. Zeeb 	struct iwl_tas_config_cmd_v4 v4;
481d9836fb4SBjoern A. Zeeb };
482d9836fb4SBjoern A. Zeeb /**
483bfcc09ddSBjoern A. Zeeb  * enum iwl_lari_configs - bit masks for the various LARI config operations
484bfcc09ddSBjoern A. Zeeb  * @LARI_CONFIG_DISABLE_11AC_UKRAINE_MSK: disable 11ac in ukraine
485bfcc09ddSBjoern A. Zeeb  * @LARI_CONFIG_CHANGE_ETSI_TO_PASSIVE_MSK: ETSI 5.8GHz SRD passive scan
486bfcc09ddSBjoern A. Zeeb  * @LARI_CONFIG_CHANGE_ETSI_TO_DISABLED_MSK: ETSI 5.8GHz SRD disabled
487bfcc09ddSBjoern A. Zeeb  * @LARI_CONFIG_ENABLE_5G2_IN_INDONESIA_MSK: enable 5.15/5.35GHz bands in
488bfcc09ddSBjoern A. Zeeb  * 	Indonesia
489bfcc09ddSBjoern A. Zeeb  */
490bfcc09ddSBjoern A. Zeeb enum iwl_lari_config_masks {
491bfcc09ddSBjoern A. Zeeb 	LARI_CONFIG_DISABLE_11AC_UKRAINE_MSK		= BIT(0),
492bfcc09ddSBjoern A. Zeeb 	LARI_CONFIG_CHANGE_ETSI_TO_PASSIVE_MSK		= BIT(1),
493bfcc09ddSBjoern A. Zeeb 	LARI_CONFIG_CHANGE_ETSI_TO_DISABLED_MSK		= BIT(2),
494bfcc09ddSBjoern A. Zeeb 	LARI_CONFIG_ENABLE_5G2_IN_INDONESIA_MSK		= BIT(3),
495bfcc09ddSBjoern A. Zeeb };
496bfcc09ddSBjoern A. Zeeb 
497bfcc09ddSBjoern A. Zeeb #define IWL_11AX_UKRAINE_MASK 3
498bfcc09ddSBjoern A. Zeeb #define IWL_11AX_UKRAINE_SHIFT 8
499bfcc09ddSBjoern A. Zeeb 
500bfcc09ddSBjoern A. Zeeb /**
501bfcc09ddSBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v1 - change LARI configuration
502bfcc09ddSBjoern A. Zeeb  * @config_bitmap: bit map of the config commands. each bit will trigger a
503bfcc09ddSBjoern A. Zeeb  * different predefined FW config operation
504bfcc09ddSBjoern A. Zeeb  */
505bfcc09ddSBjoern A. Zeeb struct iwl_lari_config_change_cmd_v1 {
506bfcc09ddSBjoern A. Zeeb 	__le32 config_bitmap;
507bfcc09ddSBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_1 */
508bfcc09ddSBjoern A. Zeeb 
509bfcc09ddSBjoern A. Zeeb /**
510bfcc09ddSBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v2 - change LARI configuration
511bfcc09ddSBjoern A. Zeeb  * @config_bitmap: bit map of the config commands. each bit will trigger a
512bfcc09ddSBjoern A. Zeeb  * different predefined FW config operation
513bfcc09ddSBjoern A. Zeeb  * @oem_uhb_allow_bitmap: bitmap of UHB enabled MCC sets
514bfcc09ddSBjoern A. Zeeb  */
515bfcc09ddSBjoern A. Zeeb struct iwl_lari_config_change_cmd_v2 {
516bfcc09ddSBjoern A. Zeeb 	__le32 config_bitmap;
517bfcc09ddSBjoern A. Zeeb 	__le32 oem_uhb_allow_bitmap;
518bfcc09ddSBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_2 */
519bfcc09ddSBjoern A. Zeeb 
520bfcc09ddSBjoern A. Zeeb /**
521bfcc09ddSBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v3 - change LARI configuration
522bfcc09ddSBjoern A. Zeeb  * @config_bitmap: bit map of the config commands. each bit will trigger a
523bfcc09ddSBjoern A. Zeeb  * different predefined FW config operation
524bfcc09ddSBjoern A. Zeeb  * @oem_uhb_allow_bitmap: bitmap of UHB enabled MCC sets
525bfcc09ddSBjoern A. Zeeb  * @oem_11ax_allow_bitmap: bitmap of 11ax allowed MCCs.
526bfcc09ddSBjoern A. Zeeb  * For each supported country, a pair of regulatory override bit and 11ax mode exist
527bfcc09ddSBjoern A. Zeeb  * in the bit field.
528bfcc09ddSBjoern A. Zeeb  */
529bfcc09ddSBjoern A. Zeeb struct iwl_lari_config_change_cmd_v3 {
530bfcc09ddSBjoern A. Zeeb 	__le32 config_bitmap;
531bfcc09ddSBjoern A. Zeeb 	__le32 oem_uhb_allow_bitmap;
532bfcc09ddSBjoern A. Zeeb 	__le32 oem_11ax_allow_bitmap;
533bfcc09ddSBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_3 */
534bfcc09ddSBjoern A. Zeeb 
535bfcc09ddSBjoern A. Zeeb /**
536bfcc09ddSBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v4 - change LARI configuration
537bfcc09ddSBjoern A. Zeeb  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
538bfcc09ddSBjoern A. Zeeb  *     different predefined FW config operation.
539bfcc09ddSBjoern A. Zeeb  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
540bfcc09ddSBjoern A. Zeeb  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
541bfcc09ddSBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
542bfcc09ddSBjoern A. Zeeb  *     indicate the value to use.
543bfcc09ddSBjoern A. Zeeb  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
544bfcc09ddSBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
545bfcc09ddSBjoern A. Zeeb  *     indicate allow/disallow unii4 channels.
546bfcc09ddSBjoern A. Zeeb  */
547bfcc09ddSBjoern A. Zeeb struct iwl_lari_config_change_cmd_v4 {
548bfcc09ddSBjoern A. Zeeb 	__le32 config_bitmap;
549bfcc09ddSBjoern A. Zeeb 	__le32 oem_uhb_allow_bitmap;
550bfcc09ddSBjoern A. Zeeb 	__le32 oem_11ax_allow_bitmap;
551bfcc09ddSBjoern A. Zeeb 	__le32 oem_unii4_allow_bitmap;
552bfcc09ddSBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_4 */
553bfcc09ddSBjoern A. Zeeb 
554bfcc09ddSBjoern A. Zeeb /**
555bfcc09ddSBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v5 - change LARI configuration
556bfcc09ddSBjoern A. Zeeb  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
557bfcc09ddSBjoern A. Zeeb  *     different predefined FW config operation.
558bfcc09ddSBjoern A. Zeeb  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
559bfcc09ddSBjoern A. Zeeb  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
560bfcc09ddSBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
561bfcc09ddSBjoern A. Zeeb  *     indicate the value to use.
562bfcc09ddSBjoern A. Zeeb  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
563bfcc09ddSBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
564bfcc09ddSBjoern A. Zeeb  *     indicate allow/disallow unii4 channels.
565bfcc09ddSBjoern A. Zeeb  * @chan_state_active_bitmap: Bitmap for overriding channel state to active.
566bfcc09ddSBjoern A. Zeeb  *     Each bit represents a country or region to activate, according to the BIOS
567bfcc09ddSBjoern A. Zeeb  *     definitions.
568bfcc09ddSBjoern A. Zeeb  */
569bfcc09ddSBjoern A. Zeeb struct iwl_lari_config_change_cmd_v5 {
570bfcc09ddSBjoern A. Zeeb 	__le32 config_bitmap;
571bfcc09ddSBjoern A. Zeeb 	__le32 oem_uhb_allow_bitmap;
572bfcc09ddSBjoern A. Zeeb 	__le32 oem_11ax_allow_bitmap;
573bfcc09ddSBjoern A. Zeeb 	__le32 oem_unii4_allow_bitmap;
574bfcc09ddSBjoern A. Zeeb 	__le32 chan_state_active_bitmap;
575bfcc09ddSBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_5 */
576bfcc09ddSBjoern A. Zeeb 
577bfcc09ddSBjoern A. Zeeb /**
578d9836fb4SBjoern A. Zeeb  * struct iwl_lari_config_change_cmd_v6 - change LARI configuration
579d9836fb4SBjoern A. Zeeb  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
580d9836fb4SBjoern A. Zeeb  *     different predefined FW config operation.
581d9836fb4SBjoern A. Zeeb  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
582d9836fb4SBjoern A. Zeeb  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
583d9836fb4SBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
584d9836fb4SBjoern A. Zeeb  *     indicate the value to use.
585d9836fb4SBjoern A. Zeeb  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
586d9836fb4SBjoern A. Zeeb  *     per country, one to indicate whether to override and the other to
587d9836fb4SBjoern A. Zeeb  *     indicate allow/disallow unii4 channels.
588d9836fb4SBjoern A. Zeeb  * @chan_state_active_bitmap: Bitmap for overriding channel state to active.
589d9836fb4SBjoern A. Zeeb  *     Each bit represents a country or region to activate, according to the BIOS
590d9836fb4SBjoern A. Zeeb  *     definitions.
591d9836fb4SBjoern A. Zeeb  * @force_disable_channels_bitmap: Bitmap of disabled bands/channels.
592d9836fb4SBjoern A. Zeeb  *     Each bit represents a set of channels in a specific band that should be disabled
593d9836fb4SBjoern A. Zeeb  */
594d9836fb4SBjoern A. Zeeb struct iwl_lari_config_change_cmd_v6 {
595d9836fb4SBjoern A. Zeeb 	__le32 config_bitmap;
596d9836fb4SBjoern A. Zeeb 	__le32 oem_uhb_allow_bitmap;
597d9836fb4SBjoern A. Zeeb 	__le32 oem_11ax_allow_bitmap;
598d9836fb4SBjoern A. Zeeb 	__le32 oem_unii4_allow_bitmap;
599d9836fb4SBjoern A. Zeeb 	__le32 chan_state_active_bitmap;
600d9836fb4SBjoern A. Zeeb 	__le32 force_disable_channels_bitmap;
601d9836fb4SBjoern A. Zeeb } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_6 */
602d9836fb4SBjoern A. Zeeb 
603d9836fb4SBjoern A. Zeeb /**
604bfcc09ddSBjoern A. Zeeb  * struct iwl_pnvm_init_complete_ntfy - PNVM initialization complete
605bfcc09ddSBjoern A. Zeeb  * @status: PNVM image loading status
606bfcc09ddSBjoern A. Zeeb  */
607bfcc09ddSBjoern A. Zeeb struct iwl_pnvm_init_complete_ntfy {
608bfcc09ddSBjoern A. Zeeb 	__le32 status;
609bfcc09ddSBjoern A. Zeeb } __packed; /* PNVM_INIT_COMPLETE_NTFY_S_VER_1 */
610bfcc09ddSBjoern A. Zeeb 
611bfcc09ddSBjoern A. Zeeb #endif /* __iwl_fw_api_nvm_reg_h__ */
612