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