xref: /freebsd/sys/contrib/dev/iwlwifi/fw/api/nvm-reg.h (revision c8e7f78a3d28ff6e6223ed136ada8e1e2f34965e)
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_v4 - 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_v4 {
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_update_resp_v8 - response to MCC_UPDATE_CMD.
355  * Contains the new channel control profile map, if changed, and the new MCC
356  * (mobile country code).
357  * The new MCC may be different than what was requested in MCC_UPDATE_CMD.
358  * @status: see &enum iwl_mcc_update_status
359  * @mcc: the new applied MCC
360  * @padding: padding for 2 bytes.
361  * @cap: capabilities for all channels which matches the MCC
362  * @time: time elapsed from the MCC test start (in units of 30 seconds)
363  * @geo_info: geographic specific profile information
364  *     see &enum iwl_geo_information.
365  * @source_id: the MCC source, see iwl_mcc_source
366  * @reserved: for four bytes alignment.
367  * @n_channels: number of channels in @channels_data.
368  * @channels: channel control data map, DWORD for each channel. Only the first
369  *     16bits are used.
370  */
371 struct iwl_mcc_update_resp_v8 {
372 	__le32 status;
373 	__le16 mcc;
374 	u8 padding[2];
375 	__le32 cap;
376 	__le16 time;
377 	__le16 geo_info;
378 	u8 source_id;
379 	u8 reserved[3];
380 	__le32 n_channels;
381 	__le32 channels[];
382 } __packed; /* LAR_UPDATE_MCC_CMD_RESP_S_VER_8 */
383 
384 /**
385  * struct iwl_mcc_chub_notif - chub notifies of mcc change
386  * (MCC_CHUB_UPDATE_CMD = 0xc9)
387  * The Chub (Communication Hub, CommsHUB) is a HW component that connects to
388  * the cellular and connectivity cores that gets updates of the mcc, and
389  * notifies the ucode directly of any mcc change.
390  * The ucode requests the driver to request the device to update geographic
391  * regulatory  profile according to the given MCC (Mobile Country Code).
392  * The MCC is two letter-code, ascii upper case[A-Z] or '00' for world domain.
393  * 'ZZ' MCC will be used to switch to NVM default profile; in this case, the
394  * MCC in the cmd response will be the relevant MCC in the NVM.
395  * @mcc: given mobile country code
396  * @source_id: identity of the change originator, see iwl_mcc_source
397  * @reserved1: reserved for alignment
398  */
399 struct iwl_mcc_chub_notif {
400 	__le16 mcc;
401 	u8 source_id;
402 	u8 reserved1;
403 } __packed; /* LAR_MCC_NOTIFY_S */
404 
405 enum iwl_mcc_update_status {
406 	MCC_RESP_NEW_CHAN_PROFILE,
407 	MCC_RESP_SAME_CHAN_PROFILE,
408 	MCC_RESP_INVALID,
409 	MCC_RESP_NVM_DISABLED,
410 	MCC_RESP_ILLEGAL,
411 	MCC_RESP_LOW_PRIORITY,
412 	MCC_RESP_TEST_MODE_ACTIVE,
413 	MCC_RESP_TEST_MODE_NOT_ACTIVE,
414 	MCC_RESP_TEST_MODE_DENIAL_OF_SERVICE,
415 };
416 
417 enum iwl_mcc_source {
418 	MCC_SOURCE_OLD_FW = 0,
419 	MCC_SOURCE_ME = 1,
420 	MCC_SOURCE_BIOS = 2,
421 	MCC_SOURCE_3G_LTE_HOST = 3,
422 	MCC_SOURCE_3G_LTE_DEVICE = 4,
423 	MCC_SOURCE_WIFI = 5,
424 	MCC_SOURCE_RESERVED = 6,
425 	MCC_SOURCE_DEFAULT = 7,
426 	MCC_SOURCE_UNINITIALIZED = 8,
427 	MCC_SOURCE_MCC_API = 9,
428 	MCC_SOURCE_GET_CURRENT = 0x10,
429 	MCC_SOURCE_GETTING_MCC_TEST_MODE = 0x11,
430 };
431 
432 #define IWL_TAS_BLOCK_LIST_MAX 16
433 /**
434  * struct iwl_tas_config_cmd_v2 - configures the TAS
435  * @block_list_size: size of relevant field in block_list_array
436  * @block_list_array: list of countries where TAS must be disabled
437  */
438 struct iwl_tas_config_cmd_v2 {
439 	__le32 block_list_size;
440 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
441 } __packed; /* TAS_CONFIG_CMD_API_S_VER_2 */
442 
443 /**
444  * struct iwl_tas_config_cmd_v3 - configures the TAS
445  * @block_list_size: size of relevant field in block_list_array
446  * @block_list_array: list of countries where TAS must be disabled
447  * @override_tas_iec: indicates whether to override default value of IEC regulatory
448  * @enable_tas_iec: in case override_tas_iec is set -
449  *	indicates whether IEC regulatory is enabled or disabled
450  */
451 struct iwl_tas_config_cmd_v3 {
452 	__le32 block_list_size;
453 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
454 	__le16 override_tas_iec;
455 	__le16 enable_tas_iec;
456 } __packed; /* TAS_CONFIG_CMD_API_S_VER_3 */
457 
458 /**
459  * struct iwl_tas_config_cmd_v3 - configures the TAS
460  * @block_list_size: size of relevant field in block_list_array
461  * @block_list_array: list of countries where TAS must be disabled
462  * @override_tas_iec: indicates whether to override default value of IEC regulatory
463  * @enable_tas_iec: in case override_tas_iec is set -
464  *	indicates whether IEC regulatory is enabled or disabled
465  * @usa_tas_uhb_allowed: if set, allow TAS UHB in the USA
466  * @reserved: reserved
467 */
468 struct iwl_tas_config_cmd_v4 {
469 	__le32 block_list_size;
470 	__le32 block_list_array[IWL_TAS_BLOCK_LIST_MAX];
471 	u8 override_tas_iec;
472 	u8 enable_tas_iec;
473 	u8 usa_tas_uhb_allowed;
474 	u8 reserved;
475 } __packed; /* TAS_CONFIG_CMD_API_S_VER_4 */
476 
477 union iwl_tas_config_cmd {
478 	struct iwl_tas_config_cmd_v2 v2;
479 	struct iwl_tas_config_cmd_v3 v3;
480 	struct iwl_tas_config_cmd_v4 v4;
481 };
482 /**
483  * enum iwl_lari_configs - bit masks for the various LARI config operations
484  * @LARI_CONFIG_DISABLE_11AC_UKRAINE_MSK: disable 11ac in ukraine
485  * @LARI_CONFIG_CHANGE_ETSI_TO_PASSIVE_MSK: ETSI 5.8GHz SRD passive scan
486  * @LARI_CONFIG_CHANGE_ETSI_TO_DISABLED_MSK: ETSI 5.8GHz SRD disabled
487  * @LARI_CONFIG_ENABLE_5G2_IN_INDONESIA_MSK: enable 5.15/5.35GHz bands in
488  * 	Indonesia
489  */
490 enum iwl_lari_config_masks {
491 	LARI_CONFIG_DISABLE_11AC_UKRAINE_MSK		= BIT(0),
492 	LARI_CONFIG_CHANGE_ETSI_TO_PASSIVE_MSK		= BIT(1),
493 	LARI_CONFIG_CHANGE_ETSI_TO_DISABLED_MSK		= BIT(2),
494 	LARI_CONFIG_ENABLE_5G2_IN_INDONESIA_MSK		= BIT(3),
495 };
496 
497 #define IWL_11AX_UKRAINE_MASK 3
498 #define IWL_11AX_UKRAINE_SHIFT 8
499 
500 /**
501  * struct iwl_lari_config_change_cmd_v1 - change LARI configuration
502  * @config_bitmap: bit map of the config commands. each bit will trigger a
503  * different predefined FW config operation
504  */
505 struct iwl_lari_config_change_cmd_v1 {
506 	__le32 config_bitmap;
507 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_1 */
508 
509 /**
510  * struct iwl_lari_config_change_cmd_v2 - change LARI configuration
511  * @config_bitmap: bit map of the config commands. each bit will trigger a
512  * different predefined FW config operation
513  * @oem_uhb_allow_bitmap: bitmap of UHB enabled MCC sets
514  */
515 struct iwl_lari_config_change_cmd_v2 {
516 	__le32 config_bitmap;
517 	__le32 oem_uhb_allow_bitmap;
518 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_2 */
519 
520 /**
521  * struct iwl_lari_config_change_cmd_v3 - change LARI configuration
522  * @config_bitmap: bit map of the config commands. each bit will trigger a
523  * different predefined FW config operation
524  * @oem_uhb_allow_bitmap: bitmap of UHB enabled MCC sets
525  * @oem_11ax_allow_bitmap: bitmap of 11ax allowed MCCs.
526  * For each supported country, a pair of regulatory override bit and 11ax mode exist
527  * in the bit field.
528  */
529 struct iwl_lari_config_change_cmd_v3 {
530 	__le32 config_bitmap;
531 	__le32 oem_uhb_allow_bitmap;
532 	__le32 oem_11ax_allow_bitmap;
533 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_3 */
534 
535 /**
536  * struct iwl_lari_config_change_cmd_v4 - change LARI configuration
537  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
538  *     different predefined FW config operation.
539  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
540  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
541  *     per country, one to indicate whether to override and the other to
542  *     indicate the value to use.
543  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
544  *     per country, one to indicate whether to override and the other to
545  *     indicate allow/disallow unii4 channels.
546  */
547 struct iwl_lari_config_change_cmd_v4 {
548 	__le32 config_bitmap;
549 	__le32 oem_uhb_allow_bitmap;
550 	__le32 oem_11ax_allow_bitmap;
551 	__le32 oem_unii4_allow_bitmap;
552 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_4 */
553 
554 /**
555  * struct iwl_lari_config_change_cmd_v5 - change LARI configuration
556  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
557  *     different predefined FW config operation.
558  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
559  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
560  *     per country, one to indicate whether to override and the other to
561  *     indicate the value to use.
562  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
563  *     per country, one to indicate whether to override and the other to
564  *     indicate allow/disallow unii4 channels.
565  * @chan_state_active_bitmap: Bitmap for overriding channel state to active.
566  *     Each bit represents a country or region to activate, according to the BIOS
567  *     definitions.
568  */
569 struct iwl_lari_config_change_cmd_v5 {
570 	__le32 config_bitmap;
571 	__le32 oem_uhb_allow_bitmap;
572 	__le32 oem_11ax_allow_bitmap;
573 	__le32 oem_unii4_allow_bitmap;
574 	__le32 chan_state_active_bitmap;
575 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_5 */
576 
577 /**
578  * struct iwl_lari_config_change_cmd_v6 - change LARI configuration
579  * @config_bitmap: Bitmap of the config commands. Each bit will trigger a
580  *     different predefined FW config operation.
581  * @oem_uhb_allow_bitmap: Bitmap of UHB enabled MCC sets.
582  * @oem_11ax_allow_bitmap: Bitmap of 11ax allowed MCCs. There are two bits
583  *     per country, one to indicate whether to override and the other to
584  *     indicate the value to use.
585  * @oem_unii4_allow_bitmap: Bitmap of unii4 allowed MCCs.There are two bits
586  *     per country, one to indicate whether to override and the other to
587  *     indicate allow/disallow unii4 channels.
588  * @chan_state_active_bitmap: Bitmap for overriding channel state to active.
589  *     Each bit represents a country or region to activate, according to the BIOS
590  *     definitions.
591  * @force_disable_channels_bitmap: Bitmap of disabled bands/channels.
592  *     Each bit represents a set of channels in a specific band that should be disabled
593  */
594 struct iwl_lari_config_change_cmd_v6 {
595 	__le32 config_bitmap;
596 	__le32 oem_uhb_allow_bitmap;
597 	__le32 oem_11ax_allow_bitmap;
598 	__le32 oem_unii4_allow_bitmap;
599 	__le32 chan_state_active_bitmap;
600 	__le32 force_disable_channels_bitmap;
601 } __packed; /* LARI_CHANGE_CONF_CMD_S_VER_6 */
602 
603 /**
604  * struct iwl_pnvm_init_complete_ntfy - PNVM initialization complete
605  * @status: PNVM image loading status
606  */
607 struct iwl_pnvm_init_complete_ntfy {
608 	__le32 status;
609 } __packed; /* PNVM_INIT_COMPLETE_NTFY_S_VER_1 */
610 
611 #endif /* __iwl_fw_api_nvm_reg_h__ */
612