1 /******************************************************************************
2  *
3  * This file is provided under a dual BSD/GPLv2 license.  When using or
4  * redistributing this file, you may do so under either license.
5  *
6  * GPL LICENSE SUMMARY
7  *
8  * Copyright (C) 2018 - 2019 Intel Corporation
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of version 2 of the GNU General Public License as
12  * published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * The full GNU General Public License is included in this distribution
20  * in the file called COPYING.
21  *
22  * Contact Information:
23  *  Intel Linux Wireless <linuxwifi@intel.com>
24  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25  *
26  * BSD LICENSE
27  *
28  * Copyright (C) 2018 - 2019 Intel Corporation
29  * All rights reserved.
30  *
31  * Redistribution and use in source and binary forms, with or without
32  * modification, are permitted provided that the following conditions
33  * are met:
34  *
35  *  * Redistributions of source code must retain the above copyright
36  *    notice, this list of conditions and the following disclaimer.
37  *  * Redistributions in binary form must reproduce the above copyright
38  *    notice, this list of conditions and the following disclaimer in
39  *    the documentation and/or other materials provided with the
40  *    distribution.
41  *  * Neither the name Intel Corporation nor the names of its
42  *    contributors may be used to endorse or promote products derived
43  *    from this software without specific prior written permission.
44  *
45  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
46  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
47  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
48  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
49  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
50  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
51  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
52  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
53  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
55  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56  *
57  *****************************************************************************/
58 #ifndef __iwl_fw_dbg_tlv_h__
59 #define __iwl_fw_dbg_tlv_h__
60 
61 #include <linux/bitops.h>
62 
63 /*
64  * struct iwl_fw_ini_header: Common Header for all debug group TLV's structures
65  * @tlv_version: version info
66  * @apply_point: &enum iwl_fw_ini_apply_point
67  * @data: TLV data followed
68  **/
69 struct iwl_fw_ini_header {
70 	__le32 tlv_version;
71 	__le32 apply_point;
72 	u8 data[];
73 } __packed; /* FW_DEBUG_TLV_HEADER_S */
74 
75 /**
76  * struct iwl_fw_ini_allocation_tlv - (IWL_FW_INI_TLV_TYPE_BUFFER_ALLOCATION)
77  * buffer allocation TLV - for debug
78  *
79  * @iwl_fw_ini_header: header
80  * @allocation_id: &enum iwl_fw_ini_allocation_id - to bind allocation and hcmd
81  *	if needed (DBGC1/DBGC2/SDFX/...)
82  * @buffer_location: type of iwl_fw_ini_buffer_location
83  * @size: size in bytes
84  * @max_fragments: the maximum allowed fragmentation in the desired memory
85  *	allocation above
86  * @min_frag_size: the minimum allowed fragmentation size in bytes
87 */
88 struct iwl_fw_ini_allocation_tlv {
89 	struct iwl_fw_ini_header header;
90 	__le32 allocation_id;
91 	__le32 buffer_location;
92 	__le32 size;
93 	__le32 max_fragments;
94 	__le32 min_frag_size;
95 } __packed; /* FW_DEBUG_TLV_BUFFER_ALLOCATION_TLV_S_VER_1 */
96 
97 /**
98  * struct iwl_fw_ini_hcmd (IWL_FW_INI_TLV_TYPE_HCMD)
99  * Generic Host command pass through TLV
100  *
101  * @id: the debug configuration command type for instance: 0xf6 / 0xf5 / DHC
102  * @group: the desired cmd group
103  * @padding: all zeros for dword alignment
104  * @data: all of the relevant command (0xf6/0xf5) to be sent
105 */
106 struct iwl_fw_ini_hcmd {
107 	u8 id;
108 	u8 group;
109 	__le16 padding;
110 	u8 data[0];
111 } __packed; /* FW_DEBUG_TLV_HCMD_DATA_S */
112 
113 /**
114  * struct iwl_fw_ini_hcmd_tlv
115  * @header: header
116  * @hcmd: a variable length host-command to be sent to apply the configuration.
117  */
118 struct iwl_fw_ini_hcmd_tlv {
119 	struct iwl_fw_ini_header header;
120 	struct iwl_fw_ini_hcmd hcmd;
121 } __packed; /* FW_DEBUG_TLV_HCMD_S_VER_1 */
122 
123 /*
124  * struct iwl_fw_ini_debug_flow_tlv (IWL_FW_INI_TLV_TYPE_DEBUG_FLOW)
125  *
126  * @header: header
127  * @debug_flow_cfg: &enum iwl_fw_ini_debug_flow
128  */
129 struct iwl_fw_ini_debug_flow_tlv {
130 	struct iwl_fw_ini_header header;
131 	__le32 debug_flow_cfg;
132 } __packed; /* FW_DEBUG_TLV_FLOW_TLV_S_VER_1 */
133 
134 #define IWL_FW_INI_MAX_REGION_ID	64
135 #define IWL_FW_INI_MAX_NAME		32
136 
137 /**
138  * struct iwl_fw_ini_region_cfg_internal - meta data of internal memory region
139  * @num_of_range: the amount of ranges in the region
140  * @range_data_size: size of the data to read per range, in bytes.
141  */
142 struct iwl_fw_ini_region_cfg_internal {
143 	__le32 num_of_ranges;
144 	__le32 range_data_size;
145 } __packed; /* FW_DEBUG_TLV_REGION_NIC_INTERNAL_RANGES_S */
146 
147 /**
148  * struct iwl_fw_ini_region_cfg_fifos - meta data of fifos region
149  * @fid1: fifo id 1 - bitmap of lmac tx/rx fifos to include in the region
150  * @fid2: fifo id 2 - bitmap of umac rx fifos to include in the region.
151  *	It is unused for tx.
152  * @num_of_registers: number of prph registers in the region, each register is
153  *	4 bytes size.
154  * @header_only: none zero value indicates that this region does not include
155  *	fifo data and includes only the given registers.
156  */
157 struct iwl_fw_ini_region_cfg_fifos {
158 	__le32 fid1;
159 	__le32 fid2;
160 	__le32 num_of_registers;
161 	__le32 header_only;
162 } __packed; /* FW_DEBUG_TLV_REGION_FIFOS_S */
163 
164 /**
165  * struct iwl_fw_ini_region_cfg
166  * @region_id: ID of this dump configuration
167  * @region_type: &enum iwl_fw_ini_region_type
168  * @num_regions: amount of regions in the address array.
169  * @name_len: name length
170  * @name: file name to use for this region
171  * @internal: used in case the region uses internal memory.
172  * @allocation_id: For DRAM type field substitutes for allocation_id
173  * @fifos: used in case of fifos region.
174  * @offset: offset to use for each memory base address
175  * @start_addr: array of addresses.
176  */
177 struct iwl_fw_ini_region_cfg {
178 	__le32 region_id;
179 	__le32 region_type;
180 	__le32 name_len;
181 	u8 name[IWL_FW_INI_MAX_NAME];
182 	union {
183 		struct iwl_fw_ini_region_cfg_internal internal;
184 		__le32 allocation_id;
185 		struct iwl_fw_ini_region_cfg_fifos fifos;
186 	};
187 	__le32 offset;
188 	__le32 start_addr[];
189 } __packed; /* FW_DEBUG_TLV_REGION_CONFIG_S */
190 
191 /**
192  * struct iwl_fw_ini_region_tlv - (IWL_FW_INI_TLV_TYPE_REGION_CFG)
193  * DUMP sections define IDs and triggers that use those IDs TLV
194  * @header: header
195  * @num_regions: how many different region section and IDs are coming next
196  * @region_config: list of dump configurations
197  */
198 struct iwl_fw_ini_region_tlv {
199 	struct iwl_fw_ini_header header;
200 	__le32 num_regions;
201 	struct iwl_fw_ini_region_cfg region_config[];
202 } __packed; /* FW_DEBUG_TLV_REGIONS_S_VER_1 */
203 
204 /**
205  * struct iwl_fw_ini_trigger - (IWL_FW_INI_TLV_TYPE_DUMP_CFG)
206  * Region sections define IDs and triggers that use those IDs TLV
207  *
208  * @trigger_id: enum &iwl_fw_ini_tigger_id
209  * @override_trig: determines how apply trigger in case a trigger with the
210  *	same id is already in use. Using the first 2 bytes:
211  *	Byte 0: if 0, override trigger configuration, otherwise use the
212  *	existing configuration.
213  *	Byte 1: if 0, override trigger regions, otherwise append regions to
214  *	existing trigger.
215  * @dump_delay: delay from trigger fire to dump, in usec
216  * @occurrences: max amount of times to be fired
217  * @ignore_consec: ignore consecutive triggers, in usec
218  * @force_restart: force FW restart
219  * @multi_dut: initiate debug dump data on several DUTs
220  * @trigger_data: generic data to be utilized per trigger
221  * @num_regions: number of dump regions defined for this trigger
222  * @data: region IDs
223  */
224 struct iwl_fw_ini_trigger {
225 	__le32 trigger_id;
226 	__le32 override_trig;
227 	__le32 dump_delay;
228 	__le32 occurrences;
229 	__le32 ignore_consec;
230 	__le32 force_restart;
231 	__le32 multi_dut;
232 	__le32 trigger_data;
233 	__le32 num_regions;
234 	__le32 data[];
235 } __packed; /* FW_TLV_DEBUG_TRIGGER_CONFIG_S */
236 
237 /**
238  * struct iwl_fw_ini_trigger_tlv - (IWL_FW_INI_TLV_TYPE_TRIGGERS_CFG)
239  * DUMP sections define IDs and triggers that use those IDs TLV
240  *
241  * @header: header
242  * @num_triggers: how many different triggers section and IDs are coming next
243  * @trigger_config: list of trigger configurations
244  */
245 struct iwl_fw_ini_trigger_tlv {
246 	struct iwl_fw_ini_header header;
247 	__le32 num_triggers;
248 	struct iwl_fw_ini_trigger trigger_config[];
249 } __packed; /* FW_TLV_DEBUG_TRIGGERS_S_VER_1 */
250 
251 /**
252  * enum iwl_fw_ini_trigger_id
253  * @IWL_FW_TRIGGER_ID_FW_ASSERT: FW assert
254  * @IWL_FW_TRIGGER_ID_FW_HW_ERROR: HW assert
255  * @IWL_FW_TRIGGER_ID_FW_TFD_Q_HANG: TFD queue hang
256  * @IWL_FW_TRIGGER_ID_FW_DEBUG_HOST_TRIGGER: FW debug notification
257  * @IWL_FW_TRIGGER_ID_FW_GENERIC_NOTIFOCATION: FW generic notification
258  * @IWL_FW_TRIGGER_ID_USER_TRIGGER: User trigger
259  * @IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_INACTIVITY: peer inactivity
260  * @IWL_FW_TRIGGER_ID_HOST_TX_LATENCY_THRESHOLD_CROSSED: TX latency
261  *	threshold was crossed
262  * @IWL_FW_TRIGGER_ID_HOST_TX_RESPONSE_STATUS_FAILED: TX failed
263  * @IWL_FW_TRIGGER_ID_HOST_OS_REQ_DEAUTH_PEER: Deauth initiated by host
264  * @IWL_FW_TRIGGER_ID_HOST_STOP_GO_REQUEST: stop GO request
265  * @IWL_FW_TRIGGER_ID_HOST_START_GO_REQUEST: start GO request
266  * @IWL_FW_TRIGGER_ID_HOST_JOIN_GROUP_REQUEST: join P2P group request
267  * @IWL_FW_TRIGGER_ID_HOST_SCAN_START: scan started event
268  * @IWL_FW_TRIGGER_ID_HOST_SCAN_SUBMITTED: undefined
269  * @IWL_FW_TRIGGER_ID_HOST_SCAN_PARAMS: undefined
270  * @IWL_FW_TRIGGER_ID_HOST_CHECK_FOR_HANG: undefined
271  * @IWL_FW_TRIGGER_ID_HOST_BAR_RECEIVED: BAR frame was received
272  * @IWL_FW_TRIGGER_ID_HOST_AGG_TX_RESPONSE_STATUS_FAILED: agg TX failed
273  * @IWL_FW_TRIGGER_ID_HOST_EAPOL_TX_RESPONSE_FAILED: EAPOL TX failed
274  * @IWL_FW_TRIGGER_ID_HOST_FAKE_TX_RESPONSE_SUSPECTED: suspicious TX response
275  * @IWL_FW_TRIGGER_ID_HOST_AUTH_REQ_FROM_ASSOC_CLIENT: received suspicious auth
276  * @IWL_FW_TRIGGER_ID_HOST_ROAM_COMPLETE: roaming was completed
277  * @IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAST_FAILED: fast assoc failed
278  * @IWL_FW_TRIGGER_ID_HOST_D3_START: D3 start
279  * @IWL_FW_TRIGGER_ID_HOST_D3_END: D3 end
280  * @IWL_FW_TRIGGER_ID_HOST_BSS_MISSED_BEACONS: missed beacon events
281  * @IWL_FW_TRIGGER_ID_HOST_P2P_CLIENT_MISSED_BEACONS: P2P missed beacon events
282  * @IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_TX_FAILURES:  undefined
283  * @IWL_FW_TRIGGER_ID_HOST_TX_WFD_ACTION_FRAME_FAILED: undefined
284  * @IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAILED: authentication / association
285  *	failed
286  * @IWL_FW_TRIGGER_ID_HOST_SCAN_COMPLETE: scan complete event
287  * @IWL_FW_TRIGGER_ID_HOST_SCAN_ABORT: scan abort complete
288  * @IWL_FW_TRIGGER_ID_HOST_NIC_ALIVE: nic alive message was received
289  * @IWL_FW_TRIGGER_ID_HOST_CHANNEL_SWITCH_COMPLETE: CSA was completed
290  * @IWL_FW_TRIGGER_ID_NUM: number of trigger IDs
291  */
292 enum iwl_fw_ini_trigger_id {
293 	IWL_FW_TRIGGER_ID_INVALID				= 0,
294 
295 	/* Errors triggers */
296 	IWL_FW_TRIGGER_ID_FW_ASSERT				= 1,
297 	IWL_FW_TRIGGER_ID_FW_HW_ERROR				= 2,
298 	IWL_FW_TRIGGER_ID_FW_TFD_Q_HANG				= 3,
299 
300 	/* FW triggers */
301 	IWL_FW_TRIGGER_ID_FW_DEBUG_HOST_TRIGGER			= 4,
302 	IWL_FW_TRIGGER_ID_FW_GENERIC_NOTIFOCATION		= 5,
303 
304 	/* User trigger */
305 	IWL_FW_TRIGGER_ID_USER_TRIGGER				= 6,
306 
307 	/* Host triggers */
308 	IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_INACTIVITY		= 7,
309 	IWL_FW_TRIGGER_ID_HOST_TX_LATENCY_THRESHOLD_CROSSED	= 8,
310 	IWL_FW_TRIGGER_ID_HOST_TX_RESPONSE_STATUS_FAILED	= 9,
311 	IWL_FW_TRIGGER_ID_HOST_OS_REQ_DEAUTH_PEER		= 10,
312 	IWL_FW_TRIGGER_ID_HOST_STOP_GO_REQUEST			= 11,
313 	IWL_FW_TRIGGER_ID_HOST_START_GO_REQUEST			= 12,
314 	IWL_FW_TRIGGER_ID_HOST_JOIN_GROUP_REQUEST		= 13,
315 	IWL_FW_TRIGGER_ID_HOST_SCAN_START			= 14,
316 	IWL_FW_TRIGGER_ID_HOST_SCAN_SUBMITTED			= 15,
317 	IWL_FW_TRIGGER_ID_HOST_SCAN_PARAMS			= 16,
318 	IWL_FW_TRIGGER_ID_HOST_CHECK_FOR_HANG			= 17,
319 	IWL_FW_TRIGGER_ID_HOST_BAR_RECEIVED			= 18,
320 	IWL_FW_TRIGGER_ID_HOST_AGG_TX_RESPONSE_STATUS_FAILED	= 19,
321 	IWL_FW_TRIGGER_ID_HOST_EAPOL_TX_RESPONSE_FAILED		= 20,
322 	IWL_FW_TRIGGER_ID_HOST_FAKE_TX_RESPONSE_SUSPECTED	= 21,
323 	IWL_FW_TRIGGER_ID_HOST_AUTH_REQ_FROM_ASSOC_CLIENT	= 22,
324 	IWL_FW_TRIGGER_ID_HOST_ROAM_COMPLETE			= 23,
325 	IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAST_FAILED		= 24,
326 	IWL_FW_TRIGGER_ID_HOST_D3_START				= 25,
327 	IWL_FW_TRIGGER_ID_HOST_D3_END				= 26,
328 	IWL_FW_TRIGGER_ID_HOST_BSS_MISSED_BEACONS		= 27,
329 	IWL_FW_TRIGGER_ID_HOST_P2P_CLIENT_MISSED_BEACONS	= 28,
330 	IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_TX_FAILURES		= 29,
331 	IWL_FW_TRIGGER_ID_HOST_TX_WFD_ACTION_FRAME_FAILED	= 30,
332 	IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAILED		= 31,
333 	IWL_FW_TRIGGER_ID_HOST_SCAN_COMPLETE			= 32,
334 	IWL_FW_TRIGGER_ID_HOST_SCAN_ABORT			= 33,
335 	IWL_FW_TRIGGER_ID_HOST_NIC_ALIVE			= 34,
336 	IWL_FW_TRIGGER_ID_HOST_CHANNEL_SWITCH_COMPLETE		= 35,
337 
338 	IWL_FW_TRIGGER_ID_NUM,
339 }; /* FW_DEBUG_TLV_TRIGGER_ID_E_VER_1 */
340 
341 /**
342  * enum iwl_fw_ini_apply_point
343  * @IWL_FW_INI_APPLY_INVALID: invalid
344  * @IWL_FW_INI_APPLY_EARLY: pre loading FW
345  * @IWL_FW_INI_APPLY_AFTER_ALIVE: first cmd from host after alive
346  * @IWL_FW_INI_APPLY_POST_INIT: last cmd in initialization sequence
347  * @IWL_FW_INI_APPLY_MISSED_BEACONS: missed beacons notification
348  * @IWL_FW_INI_APPLY_SCAN_COMPLETE: scan completed
349  * @IWL_FW_INI_APPLY_NUM: number of apply points
350 */
351 enum iwl_fw_ini_apply_point {
352 	IWL_FW_INI_APPLY_INVALID,
353 	IWL_FW_INI_APPLY_EARLY,
354 	IWL_FW_INI_APPLY_AFTER_ALIVE,
355 	IWL_FW_INI_APPLY_POST_INIT,
356 	IWL_FW_INI_APPLY_MISSED_BEACONS,
357 	IWL_FW_INI_APPLY_SCAN_COMPLETE,
358 	IWL_FW_INI_APPLY_NUM,
359 }; /* FW_DEBUG_TLV_APPLY_POINT_E_VER_1 */
360 
361 /**
362  * enum iwl_fw_ini_allocation_id
363  * @IWL_FW_INI_ALLOCATION_INVALID: invalid
364  * @IWL_FW_INI_ALLOCATION_ID_DBGC1: allocation meant for DBGC1 configuration
365  * @IWL_FW_INI_ALLOCATION_ID_DBGC2: allocation meant for DBGC2 configuration
366  * @IWL_FW_INI_ALLOCATION_ID_DBGC3: allocation meant for DBGC3 configuration
367  * @IWL_FW_INI_ALLOCATION_ID_SDFX: for SDFX module
368  * @IWL_FW_INI_ALLOCATION_ID_FW_DUMP: used for crash and runtime dumps
369  * @IWL_FW_INI_ALLOCATION_ID_USER_DEFINED: for future user scenarios
370 */
371 enum iwl_fw_ini_allocation_id {
372 	IWL_FW_INI_ALLOCATION_INVALID,
373 	IWL_FW_INI_ALLOCATION_ID_DBGC1,
374 	IWL_FW_INI_ALLOCATION_ID_DBGC2,
375 	IWL_FW_INI_ALLOCATION_ID_DBGC3,
376 	IWL_FW_INI_ALLOCATION_ID_SDFX,
377 	IWL_FW_INI_ALLOCATION_ID_FW_DUMP,
378 	IWL_FW_INI_ALLOCATION_ID_USER_DEFINED,
379 }; /* FW_DEBUG_TLV_ALLOCATION_ID_E_VER_1 */
380 
381 /**
382  * enum iwl_fw_ini_buffer_location
383  * @IWL_FW_INI_LOCATION_INVALID: invalid
384  * @IWL_FW_INI_LOCATION_SRAM_PATH: SRAM location
385  * @IWL_FW_INI_LOCATION_DRAM_PATH: DRAM location
386  */
387 enum iwl_fw_ini_buffer_location {
388 	IWL_FW_INI_LOCATION_INVALID,
389 	IWL_FW_INI_LOCATION_SRAM_PATH,
390 	IWL_FW_INI_LOCATION_DRAM_PATH,
391 }; /* FW_DEBUG_TLV_BUFFER_LOCATION_E_VER_1 */
392 
393 /**
394  * enum iwl_fw_ini_debug_flow
395  * @IWL_FW_INI_DEBUG_INVALID: invalid
396  * @IWL_FW_INI_DEBUG_DBTR_FLOW: undefined
397  * @IWL_FW_INI_DEBUG_TB2DTF_FLOW: undefined
398  */
399 enum iwl_fw_ini_debug_flow {
400 	IWL_FW_INI_DEBUG_INVALID,
401 	IWL_FW_INI_DEBUG_DBTR_FLOW,
402 	IWL_FW_INI_DEBUG_TB2DTF_FLOW,
403 }; /* FW_DEBUG_TLV_FLOW_E_VER_1 */
404 
405 /**
406  * enum iwl_fw_ini_region_type
407  * @IWL_FW_INI_REGION_INVALID: invalid
408  * @IWL_FW_INI_REGION_DEVICE_MEMORY: device internal memory
409  * @IWL_FW_INI_REGION_PERIPHERY_MAC: periphery registers of MAC
410  * @IWL_FW_INI_REGION_PERIPHERY_PHY: periphery registers of PHY
411  * @IWL_FW_INI_REGION_PERIPHERY_AUX: periphery registers of AUX
412  * @IWL_FW_INI_REGION_DRAM_BUFFER: DRAM buffer
413  * @IWL_FW_INI_REGION_DRAM_IMR: IMR memory
414  * @IWL_FW_INI_REGION_INTERNAL_BUFFER: undefined
415  * @IWL_FW_INI_REGION_TXF: TX fifos
416  * @IWL_FW_INI_REGION_RXF: RX fifo
417  * @IWL_FW_INI_REGION_PAGING: paging memory
418  * @IWL_FW_INI_REGION_CSR: CSR registers
419  * @IWL_FW_INI_REGION_NUM: number of region types
420  */
421 enum iwl_fw_ini_region_type {
422 	IWL_FW_INI_REGION_INVALID,
423 	IWL_FW_INI_REGION_DEVICE_MEMORY,
424 	IWL_FW_INI_REGION_PERIPHERY_MAC,
425 	IWL_FW_INI_REGION_PERIPHERY_PHY,
426 	IWL_FW_INI_REGION_PERIPHERY_AUX,
427 	IWL_FW_INI_REGION_DRAM_BUFFER,
428 	IWL_FW_INI_REGION_DRAM_IMR,
429 	IWL_FW_INI_REGION_INTERNAL_BUFFER,
430 	IWL_FW_INI_REGION_TXF,
431 	IWL_FW_INI_REGION_RXF,
432 	IWL_FW_INI_REGION_PAGING,
433 	IWL_FW_INI_REGION_CSR,
434 	IWL_FW_INI_REGION_NUM
435 }; /* FW_DEBUG_TLV_REGION_TYPE_E_VER_1 */
436 
437 #endif
438