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