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