xref: /openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h (revision 4f727ecefefbd180de10e25b3e74c03dce3f1e75)
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  *
66  * @tlv_version: version info
67  * @apply_point: &enum iwl_fw_ini_apply_point
68  * @data: TLV data followed
69  */
70 struct iwl_fw_ini_header {
71 	__le32 tlv_version;
72 	__le32 apply_point;
73 	u8 data[];
74 } __packed; /* FW_DEBUG_TLV_HEADER_S */
75 
76 /**
77  * struct iwl_fw_ini_allocation_tlv - (IWL_UCODE_TLV_TYPE_BUFFER_ALLOCATION)
78  * buffer allocation TLV - for debug
79  *
80  * @iwl_fw_ini_header: header
81  * @allocation_id: &enum iwl_fw_ini_allocation_id - to bind allocation and hcmd
82  *	if needed (DBGC1/DBGC2/SDFX/...)
83  * @buffer_location: type of iwl_fw_ini_buffer_location
84  * @size: size in bytes
85  * @max_fragments: the maximum allowed fragmentation in the desired memory
86  *	allocation above
87  * @min_frag_size: the minimum allowed fragmentation size in bytes
88  */
89 struct iwl_fw_ini_allocation_tlv {
90 	struct iwl_fw_ini_header header;
91 	__le32 allocation_id;
92 	__le32 buffer_location;
93 	__le32 size;
94 	__le32 max_fragments;
95 	__le32 min_frag_size;
96 } __packed; /* FW_DEBUG_TLV_BUFFER_ALLOCATION_TLV_S_VER_1 */
97 
98 /**
99  * enum iwl_fw_ini_dbg_domain - debug domains
100  * allows to send host cmd or collect memory region if a given domain is enabled
101  *
102  * @IWL_FW_INI_DBG_DOMAIN_ALWAYS_ON: the default domain, always on
103  * @IWL_FW_INI_DBG_DOMAIN_REPORT_PS: power save domain
104  */
105 enum iwl_fw_ini_dbg_domain {
106 	IWL_FW_INI_DBG_DOMAIN_ALWAYS_ON = 0,
107 	IWL_FW_INI_DBG_DOMAIN_REPORT_PS,
108 }; /* FW_DEBUG_TLV_DOMAIN_API_E_VER_1 */
109 
110 /**
111  * struct iwl_fw_ini_hcmd
112  *
113  * @id: the debug configuration command type for instance: 0xf6 / 0xf5 / DHC
114  * @group: the desired cmd group
115  * @reserved: to align to FW struct
116  * @data: all of the relevant command data to be sent
117  */
118 struct iwl_fw_ini_hcmd {
119 	u8 id;
120 	u8 group;
121 	__le16 reserved;
122 	u8 data[0];
123 } __packed; /* FW_DEBUG_TLV_HCMD_DATA_API_S_VER_1 */
124 
125 /**
126  * struct iwl_fw_ini_hcmd_tlv - (IWL_UCODE_TLV_TYPE_HCMD)
127  * Generic Host command pass through TLV
128  *
129  * @header: header
130  * @domain: send command only if the specific domain is enabled
131  *	&enum iwl_fw_ini_dbg_domain
132  * @period_msec: period in which the hcmd will be sent to FW. Measured in msec
133  *	(0 = one time command).
134  * @hcmd: a variable length host-command to be sent to apply the configuration.
135  */
136 struct iwl_fw_ini_hcmd_tlv {
137 	struct iwl_fw_ini_header header;
138 	__le32 domain;
139 	__le32 period_msec;
140 	struct iwl_fw_ini_hcmd hcmd;
141 } __packed; /* FW_DEBUG_TLV_HCMD_API_S_VER_1 */
142 
143 /**
144  * struct iwl_fw_ini_debug_flow_tlv - (IWL_UCODE_TLV_TYPE_DEBUG_FLOW)
145  *
146  * @header: header
147  * @debug_flow_cfg: &enum iwl_fw_ini_debug_flow
148  */
149 struct iwl_fw_ini_debug_flow_tlv {
150 	struct iwl_fw_ini_header header;
151 	__le32 debug_flow_cfg;
152 } __packed; /* FW_DEBUG_TLV_FLOW_TLV_S_VER_1 */
153 
154 #define IWL_FW_INI_MAX_REGION_ID	64
155 #define IWL_FW_INI_MAX_NAME		32
156 
157 /**
158  * struct iwl_fw_ini_region_cfg_dhc - defines dhc response to dump.
159  *
160  * @id_and_grp: id and group of dhc response.
161  * @desc: dhc response descriptor.
162  */
163 struct iwl_fw_ini_region_cfg_dhc {
164 	__le32 id_and_grp;
165 	__le32 desc;
166 } __packed; /* FW_DEBUG_TLV_REGION_DHC_API_S_VER_1 */
167 
168 /**
169  * struct iwl_fw_ini_region_cfg_internal - meta data of internal memory region
170  *
171  * @num_of_range: the amount of ranges in the region
172  * @range_data_size: size of the data to read per range, in bytes.
173  */
174 struct iwl_fw_ini_region_cfg_internal {
175 	__le32 num_of_ranges;
176 	__le32 range_data_size;
177 } __packed; /* FW_DEBUG_TLV_REGION_NIC_INTERNAL_RANGES_S */
178 
179 /**
180  * struct iwl_fw_ini_region_cfg_fifos - meta data of fifos region
181  *
182  * @fid1: fifo id 1 - bitmap of lmac tx/rx fifos to include in the region
183  * @fid2: fifo id 2 - bitmap of umac rx fifos to include in the region.
184  *	It is unused for tx.
185  * @num_of_registers: number of prph registers in the region, each register is
186  *	4 bytes size.
187  * @header_only: none zero value indicates that this region does not include
188  *	fifo data and includes only the given registers.
189  */
190 struct iwl_fw_ini_region_cfg_fifos {
191 	__le32 fid1;
192 	__le32 fid2;
193 	__le32 num_of_registers;
194 	__le32 header_only;
195 } __packed; /* FW_DEBUG_TLV_REGION_FIFOS_S */
196 
197 /**
198  * struct iwl_fw_ini_region_cfg
199  *
200  * @region_id: ID of this dump configuration
201  * @region_type: &enum iwl_fw_ini_region_type
202  * @domain: dump this region only if the specific domain is enabled
203  *	&enum iwl_fw_ini_dbg_domain
204  * @name_len: name length
205  * @name: file name to use for this region
206  * @internal: used in case the region uses internal memory.
207  * @allocation_id: For DRAM type field substitutes for allocation_id
208  * @fifos: used in case of fifos region.
209  * @dhc_desc: dhc response descriptor.
210  * @notif_id_and_grp: dump this region only if the specific notification
211  *	occurred.
212  * @offset: offset to use for each memory base address
213  * @start_addr: array of addresses.
214  */
215 struct iwl_fw_ini_region_cfg {
216 	__le32 region_id;
217 	__le32 region_type;
218 	__le32 domain;
219 	__le32 name_len;
220 	u8 name[IWL_FW_INI_MAX_NAME];
221 	union {
222 		struct iwl_fw_ini_region_cfg_internal internal;
223 		__le32 allocation_id;
224 		struct iwl_fw_ini_region_cfg_fifos fifos;
225 		struct iwl_fw_ini_region_cfg_dhc dhc_desc;
226 		__le32 notif_id_and_grp;
227 	}; /* FW_DEBUG_TLV_REGION_EXT_INT_PARAMS_API_U_VER_1 */
228 	__le32 offset;
229 	__le32 start_addr[];
230 } __packed; /* FW_DEBUG_TLV_REGION_CONFIG_API_S_VER_1 */
231 
232 /**
233  * struct iwl_fw_ini_region_tlv - (IWL_UCODE_TLV_TYPE_REGIONS)
234  * defines memory regions to dump
235  *
236  * @header: header
237  * @num_regions: how many different region section and IDs are coming next
238  * @region_config: list of dump configurations
239  */
240 struct iwl_fw_ini_region_tlv {
241 	struct iwl_fw_ini_header header;
242 	__le32 num_regions;
243 	struct iwl_fw_ini_region_cfg region_config[];
244 } __packed; /* FW_DEBUG_TLV_REGIONS_API_S_VER_1 */
245 
246 /**
247  * struct iwl_fw_ini_trigger
248  *
249  * @trigger_id: &enum iwl_fw_ini_trigger_id
250  * @override_trig: determines how apply trigger in case a trigger with the
251  *	same id is already in use. Using the first 2 bytes:
252  *	Byte 0: if 0, override trigger configuration, otherwise use the
253  *	existing configuration.
254  *	Byte 1: if 0, override trigger regions, otherwise append regions to
255  *	existing trigger.
256  * @dump_delay: delay from trigger fire to dump, in usec
257  * @occurrences: max amount of times to be fired
258  * @reserved: to align to FW struct
259  * @ignore_consec: ignore consecutive triggers, in usec
260  * @force_restart: force FW restart
261  * @multi_dut: initiate debug dump data on several DUTs
262  * @trigger_data: generic data to be utilized per trigger
263  * @num_regions: number of dump regions defined for this trigger
264  * @data: region IDs
265  */
266 struct iwl_fw_ini_trigger {
267 	__le32 trigger_id;
268 	__le32 override_trig;
269 	__le32 dump_delay;
270 	__le32 occurrences;
271 	__le32 reserved;
272 	__le32 ignore_consec;
273 	__le32 force_restart;
274 	__le32 multi_dut;
275 	__le32 trigger_data;
276 	__le32 num_regions;
277 	__le32 data[];
278 } __packed; /* FW_TLV_DEBUG_TRIGGER_CONFIG_API_S_VER_1 */
279 
280 /**
281  * struct iwl_fw_ini_trigger_tlv - (IWL_UCODE_TLV_TYPE_TRIGGERS)
282  * Triggers that hold memory regions to dump in case a trigger fires
283  *
284  * @header: header
285  * @num_triggers: how many different triggers section and IDs are coming next
286  * @trigger_config: list of trigger configurations
287  */
288 struct iwl_fw_ini_trigger_tlv {
289 	struct iwl_fw_ini_header header;
290 	__le32 num_triggers;
291 	struct iwl_fw_ini_trigger trigger_config[];
292 } __packed; /* FW_TLV_DEBUG_TRIGGERS_API_S_VER_1 */
293 
294 /**
295  * enum iwl_fw_ini_trigger_id
296  *
297  * @IWL_FW_TRIGGER_ID_FW_ASSERT: FW assert
298  * @IWL_FW_TRIGGER_ID_FW_HW_ERROR: HW assert
299  * @IWL_FW_TRIGGER_ID_FW_TFD_Q_HANG: TFD queue hang
300  * @IWL_FW_TRIGGER_ID_FW_DEBUG_HOST_TRIGGER: FW debug notification
301  * @IWL_FW_TRIGGER_ID_FW_GENERIC_NOTIFICATION: FW generic notification
302  * @IWL_FW_TRIGGER_ID_USER_TRIGGER: User trigger
303  * @IWL_FW_TRIGGER_ID_PERIODIC_TRIGGER: triggers periodically
304  * @IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_INACTIVITY: peer inactivity
305  * @IWL_FW_TRIGGER_ID_HOST_TX_LATENCY_THRESHOLD_CROSSED: TX latency
306  *	threshold was crossed
307  * @IWL_FW_TRIGGER_ID_HOST_TX_RESPONSE_STATUS_FAILED: TX failed
308  * @IWL_FW_TRIGGER_ID_HOST_OS_REQ_DEAUTH_PEER: Deauth initiated by host
309  * @IWL_FW_TRIGGER_ID_HOST_STOP_GO_REQUEST: stop GO request
310  * @IWL_FW_TRIGGER_ID_HOST_START_GO_REQUEST: start GO request
311  * @IWL_FW_TRIGGER_ID_HOST_JOIN_GROUP_REQUEST: join P2P group request
312  * @IWL_FW_TRIGGER_ID_HOST_SCAN_START: scan started event
313  * @IWL_FW_TRIGGER_ID_HOST_SCAN_SUBMITTED: undefined
314  * @IWL_FW_TRIGGER_ID_HOST_SCAN_PARAMS: undefined
315  * @IWL_FW_TRIGGER_ID_HOST_CHECK_FOR_HANG: undefined
316  * @IWL_FW_TRIGGER_ID_HOST_BAR_RECEIVED: BAR frame was received
317  * @IWL_FW_TRIGGER_ID_HOST_AGG_TX_RESPONSE_STATUS_FAILED: agg TX failed
318  * @IWL_FW_TRIGGER_ID_HOST_EAPOL_TX_RESPONSE_FAILED: EAPOL TX failed
319  * @IWL_FW_TRIGGER_ID_HOST_FAKE_TX_RESPONSE_SUSPECTED: suspicious TX response
320  * @IWL_FW_TRIGGER_ID_HOST_AUTH_REQ_FROM_ASSOC_CLIENT: received suspicious auth
321  * @IWL_FW_TRIGGER_ID_HOST_ROAM_COMPLETE: roaming was completed
322  * @IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAST_FAILED: fast assoc failed
323  * @IWL_FW_TRIGGER_ID_HOST_D3_START: D3 start
324  * @IWL_FW_TRIGGER_ID_HOST_D3_END: D3 end
325  * @IWL_FW_TRIGGER_ID_HOST_BSS_MISSED_BEACONS: missed beacon events
326  * @IWL_FW_TRIGGER_ID_HOST_P2P_CLIENT_MISSED_BEACONS: P2P missed beacon events
327  * @IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_TX_FAILURES:  undefined
328  * @IWL_FW_TRIGGER_ID_HOST_TX_WFD_ACTION_FRAME_FAILED: undefined
329  * @IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAILED: authentication / association
330  *	failed
331  * @IWL_FW_TRIGGER_ID_HOST_SCAN_COMPLETE: scan complete event
332  * @IWL_FW_TRIGGER_ID_HOST_SCAN_ABORT: scan abort complete
333  * @IWL_FW_TRIGGER_ID_HOST_NIC_ALIVE: nic alive message was received
334  * @IWL_FW_TRIGGER_ID_HOST_CHANNEL_SWITCH_COMPLETE: CSA was completed
335  * @IWL_FW_TRIGGER_ID_NUM: number of trigger IDs
336  */
337 enum iwl_fw_ini_trigger_id {
338 	IWL_FW_TRIGGER_ID_INVALID				= 0,
339 
340 	/* Errors triggers */
341 	IWL_FW_TRIGGER_ID_FW_ASSERT				= 1,
342 	IWL_FW_TRIGGER_ID_FW_HW_ERROR				= 2,
343 	IWL_FW_TRIGGER_ID_FW_TFD_Q_HANG				= 3,
344 
345 	/* FW triggers */
346 	IWL_FW_TRIGGER_ID_FW_DEBUG_HOST_TRIGGER			= 4,
347 	IWL_FW_TRIGGER_ID_FW_GENERIC_NOTIFICATION		= 5,
348 
349 	/* User trigger */
350 	IWL_FW_TRIGGER_ID_USER_TRIGGER				= 6,
351 
352 	/* periodic uses the data field for the interval time */
353 	IWL_FW_TRIGGER_ID_PERIODIC_TRIGGER			= 7,
354 
355 	/* Host triggers */
356 	IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_INACTIVITY		= 8,
357 	IWL_FW_TRIGGER_ID_HOST_TX_LATENCY_THRESHOLD_CROSSED	= 9,
358 	IWL_FW_TRIGGER_ID_HOST_TX_RESPONSE_STATUS_FAILED	= 10,
359 	IWL_FW_TRIGGER_ID_HOST_OS_REQ_DEAUTH_PEER		= 11,
360 	IWL_FW_TRIGGER_ID_HOST_STOP_GO_REQUEST			= 12,
361 	IWL_FW_TRIGGER_ID_HOST_START_GO_REQUEST			= 13,
362 	IWL_FW_TRIGGER_ID_HOST_JOIN_GROUP_REQUEST		= 14,
363 	IWL_FW_TRIGGER_ID_HOST_SCAN_START			= 15,
364 	IWL_FW_TRIGGER_ID_HOST_SCAN_SUBMITTED			= 16,
365 	IWL_FW_TRIGGER_ID_HOST_SCAN_PARAMS			= 17,
366 	IWL_FW_TRIGGER_ID_HOST_CHECK_FOR_HANG			= 18,
367 	IWL_FW_TRIGGER_ID_HOST_BAR_RECEIVED			= 19,
368 	IWL_FW_TRIGGER_ID_HOST_AGG_TX_RESPONSE_STATUS_FAILED	= 20,
369 	IWL_FW_TRIGGER_ID_HOST_EAPOL_TX_RESPONSE_FAILED		= 21,
370 	IWL_FW_TRIGGER_ID_HOST_FAKE_TX_RESPONSE_SUSPECTED	= 22,
371 	IWL_FW_TRIGGER_ID_HOST_AUTH_REQ_FROM_ASSOC_CLIENT	= 23,
372 	IWL_FW_TRIGGER_ID_HOST_ROAM_COMPLETE			= 24,
373 	IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAST_FAILED		= 25,
374 	IWL_FW_TRIGGER_ID_HOST_D3_START				= 26,
375 	IWL_FW_TRIGGER_ID_HOST_D3_END				= 27,
376 	IWL_FW_TRIGGER_ID_HOST_BSS_MISSED_BEACONS		= 28,
377 	IWL_FW_TRIGGER_ID_HOST_P2P_CLIENT_MISSED_BEACONS	= 29,
378 	IWL_FW_TRIGGER_ID_HOST_PEER_CLIENT_TX_FAILURES		= 30,
379 	IWL_FW_TRIGGER_ID_HOST_TX_WFD_ACTION_FRAME_FAILED	= 31,
380 	IWL_FW_TRIGGER_ID_HOST_AUTH_ASSOC_FAILED		= 32,
381 	IWL_FW_TRIGGER_ID_HOST_SCAN_COMPLETE			= 33,
382 	IWL_FW_TRIGGER_ID_HOST_SCAN_ABORT			= 34,
383 	IWL_FW_TRIGGER_ID_HOST_NIC_ALIVE			= 35,
384 	IWL_FW_TRIGGER_ID_HOST_CHANNEL_SWITCH_COMPLETE		= 36,
385 
386 	IWL_FW_TRIGGER_ID_NUM,
387 }; /* FW_DEBUG_TLV_TRIGGER_ID_E_VER_1 */
388 
389 /**
390  * enum iwl_fw_ini_apply_point
391  *
392  * @IWL_FW_INI_APPLY_INVALID: invalid
393  * @IWL_FW_INI_APPLY_EARLY: pre loading FW
394  * @IWL_FW_INI_APPLY_AFTER_ALIVE: first cmd from host after alive
395  * @IWL_FW_INI_APPLY_POST_INIT: last cmd in initialization sequence
396  * @IWL_FW_INI_APPLY_MISSED_BEACONS: missed beacons notification
397  * @IWL_FW_INI_APPLY_SCAN_COMPLETE: scan completed
398  * @IWL_FW_INI_APPLY_NUM: number of apply points
399 */
400 enum iwl_fw_ini_apply_point {
401 	IWL_FW_INI_APPLY_INVALID,
402 	IWL_FW_INI_APPLY_EARLY,
403 	IWL_FW_INI_APPLY_AFTER_ALIVE,
404 	IWL_FW_INI_APPLY_POST_INIT,
405 	IWL_FW_INI_APPLY_MISSED_BEACONS,
406 	IWL_FW_INI_APPLY_SCAN_COMPLETE,
407 	IWL_FW_INI_APPLY_NUM,
408 }; /* FW_DEBUG_TLV_APPLY_POINT_E_VER_1 */
409 
410 /**
411  * enum iwl_fw_ini_allocation_id
412  *
413  * @IWL_FW_INI_ALLOCATION_INVALID: invalid
414  * @IWL_FW_INI_ALLOCATION_ID_DBGC1: allocation meant for DBGC1 configuration
415  * @IWL_FW_INI_ALLOCATION_ID_DBGC2: allocation meant for DBGC2 configuration
416  * @IWL_FW_INI_ALLOCATION_ID_DBGC3: allocation meant for DBGC3 configuration
417  * @IWL_FW_INI_ALLOCATION_ID_SDFX: for SDFX module
418  * @IWL_FW_INI_ALLOCATION_ID_FW_DUMP: used for crash and runtime dumps
419  * @IWL_FW_INI_ALLOCATION_ID_USER_DEFINED: for future user scenarios
420 */
421 enum iwl_fw_ini_allocation_id {
422 	IWL_FW_INI_ALLOCATION_INVALID,
423 	IWL_FW_INI_ALLOCATION_ID_DBGC1,
424 	IWL_FW_INI_ALLOCATION_ID_DBGC2,
425 	IWL_FW_INI_ALLOCATION_ID_DBGC3,
426 	IWL_FW_INI_ALLOCATION_ID_SDFX,
427 	IWL_FW_INI_ALLOCATION_ID_FW_DUMP,
428 	IWL_FW_INI_ALLOCATION_ID_USER_DEFINED,
429 }; /* FW_DEBUG_TLV_ALLOCATION_ID_E_VER_1 */
430 
431 /**
432  * enum iwl_fw_ini_buffer_location
433  *
434  * @IWL_FW_INI_LOCATION_INVALID: invalid
435  * @IWL_FW_INI_LOCATION_SRAM_PATH: SRAM location
436  * @IWL_FW_INI_LOCATION_DRAM_PATH: DRAM location
437  * @IWL_FW_INI_LOCATION_NPK_PATH: NPK location
438  */
439 enum iwl_fw_ini_buffer_location {
440 	IWL_FW_INI_LOCATION_INVALID,
441 	IWL_FW_INI_LOCATION_SRAM_PATH,
442 	IWL_FW_INI_LOCATION_DRAM_PATH,
443 	IWL_FW_INI_LOCATION_NPK_PATH,
444 }; /* FW_DEBUG_TLV_BUFFER_LOCATION_E_VER_1 */
445 
446 /**
447  * enum iwl_fw_ini_debug_flow
448  *
449  * @IWL_FW_INI_DEBUG_INVALID: invalid
450  * @IWL_FW_INI_DEBUG_DBTR_FLOW: undefined
451  * @IWL_FW_INI_DEBUG_TB2DTF_FLOW: undefined
452  */
453 enum iwl_fw_ini_debug_flow {
454 	IWL_FW_INI_DEBUG_INVALID,
455 	IWL_FW_INI_DEBUG_DBTR_FLOW,
456 	IWL_FW_INI_DEBUG_TB2DTF_FLOW,
457 }; /* FW_DEBUG_TLV_FLOW_E_VER_1 */
458 
459 /**
460  * enum iwl_fw_ini_region_type
461  *
462  * @IWL_FW_INI_REGION_INVALID: invalid
463  * @IWL_FW_INI_REGION_DEVICE_MEMORY: device internal memory
464  * @IWL_FW_INI_REGION_PERIPHERY_MAC: periphery registers of MAC
465  * @IWL_FW_INI_REGION_PERIPHERY_PHY: periphery registers of PHY
466  * @IWL_FW_INI_REGION_PERIPHERY_AUX: periphery registers of AUX
467  * @IWL_FW_INI_REGION_DRAM_BUFFER: DRAM buffer
468  * @IWL_FW_INI_REGION_DRAM_IMR: IMR memory
469  * @IWL_FW_INI_REGION_INTERNAL_BUFFER: undefined
470  * @IWL_FW_INI_REGION_TXF: TX fifos
471  * @IWL_FW_INI_REGION_RXF: RX fifo
472  * @IWL_FW_INI_REGION_PAGING: paging memory
473  * @IWL_FW_INI_REGION_CSR: CSR registers
474  * @IWL_FW_INI_REGION_NOTIFICATION: FW notification data
475  * @IWL_FW_INI_REGION_DHC: dhc response to dump
476  * @IWL_FW_INI_REGION_LMAC_ERROR_TABLE: lmac error table
477  * @IWL_FW_INI_REGION_UMAC_ERROR_TABLE: umac error table
478  * @IWL_FW_INI_REGION_NUM: number of region types
479  */
480 enum iwl_fw_ini_region_type {
481 	IWL_FW_INI_REGION_INVALID,
482 	IWL_FW_INI_REGION_DEVICE_MEMORY,
483 	IWL_FW_INI_REGION_PERIPHERY_MAC,
484 	IWL_FW_INI_REGION_PERIPHERY_PHY,
485 	IWL_FW_INI_REGION_PERIPHERY_AUX,
486 	IWL_FW_INI_REGION_DRAM_BUFFER,
487 	IWL_FW_INI_REGION_DRAM_IMR,
488 	IWL_FW_INI_REGION_INTERNAL_BUFFER,
489 	IWL_FW_INI_REGION_TXF,
490 	IWL_FW_INI_REGION_RXF,
491 	IWL_FW_INI_REGION_PAGING,
492 	IWL_FW_INI_REGION_CSR,
493 	IWL_FW_INI_REGION_NOTIFICATION,
494 	IWL_FW_INI_REGION_DHC,
495 	IWL_FW_INI_REGION_LMAC_ERROR_TABLE,
496 	IWL_FW_INI_REGION_UMAC_ERROR_TABLE,
497 	IWL_FW_INI_REGION_NUM
498 }; /* FW_DEBUG_TLV_REGION_TYPE_E_VER_1 */
499 
500 #endif
501