18e99ea8dSJohannes Berg /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 28e99ea8dSJohannes Berg /* 3ecf7e563SJohannes Berg * Copyright (C) 2018-2024 Intel Corporation 48e99ea8dSJohannes Berg */ 5bd294466SSara Sharon #ifndef __iwl_fw_dbg_tlv_h__ 6bd294466SSara Sharon #define __iwl_fw_dbg_tlv_h__ 7bd294466SSara Sharon 8bd294466SSara Sharon #include <linux/bitops.h> 9bd294466SSara Sharon 10b87384afSShahar S Matityahu #define IWL_FW_INI_MAX_REGION_ID 64 11b87384afSShahar S Matityahu #define IWL_FW_INI_MAX_NAME 32 12677d25b2SShahar S Matityahu #define IWL_FW_INI_MAX_CFG_NAME 64 13cf29c5b6SShahar S Matityahu #define IWL_FW_INI_DOMAIN_ALWAYS_ON 0 149d200eddSMukesh Sisodiya #define IWL_FW_INI_REGION_ID_MASK GENMASK(15, 0) 159d200eddSMukesh Sisodiya #define IWL_FW_INI_REGION_DUMP_POLICY_MASK GENMASK(31, 16) 16e0c1ca23SEmmanuel Grumbach #define IWL_FW_INI_PRESET_DISABLE 0xff 17fe63f21bSShahar S Matityahu 18fe63f21bSShahar S Matityahu /** 19fe63f21bSShahar S Matityahu * struct iwl_fw_ini_hcmd 20bd294466SSara Sharon * 21bd294466SSara Sharon * @id: the debug configuration command type for instance: 0xf6 / 0xf5 / DHC 22bd294466SSara Sharon * @group: the desired cmd group 23fe63f21bSShahar S Matityahu * @reserved: to align to FW struct 24fe63f21bSShahar S Matityahu * @data: all of the relevant command data to be sent 25bd294466SSara Sharon */ 26bd294466SSara Sharon struct iwl_fw_ini_hcmd { 27bd294466SSara Sharon u8 id; 28bd294466SSara Sharon u8 group; 29fe63f21bSShahar S Matityahu __le16 reserved; 3034e63cd5SGustavo A. R. Silva u8 data[]; 31fe63f21bSShahar S Matityahu } __packed; /* FW_DEBUG_TLV_HCMD_DATA_API_S_VER_1 */ 32bd294466SSara Sharon 33bd294466SSara Sharon /** 34a9248de4SShahar S Matityahu * struct iwl_fw_ini_header - Common Header for all ini debug TLV's structures 35fe63f21bSShahar S Matityahu * 36a9248de4SShahar S Matityahu * @version: TLV version 37a9248de4SShahar S Matityahu * @domain: domain of the TLV. One of &enum iwl_fw_ini_dbg_domain 38bd294466SSara Sharon */ 39a9248de4SShahar S Matityahu struct iwl_fw_ini_header { 40a9248de4SShahar S Matityahu __le32 version; 41fe63f21bSShahar S Matityahu __le32 domain; 42394f4192SJohannes Berg /* followed by the data */ 43a9248de4SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_HEADER_S_VER_1 */ 44bd294466SSara Sharon 45bd294466SSara Sharon /** 4666125c42SMiri Korenblit * struct iwl_fw_ini_addr_size - Base address and size that defines 4766125c42SMiri Korenblit * a chunk of memory 4866125c42SMiri Korenblit * 4966125c42SMiri Korenblit * @addr: the base address (fixed size - 4 bytes) 5066125c42SMiri Korenblit * @size: the size to read 5166125c42SMiri Korenblit */ 5266125c42SMiri Korenblit struct iwl_fw_ini_addr_size { 5366125c42SMiri Korenblit __le32 addr; 5466125c42SMiri Korenblit __le32 size; 5566125c42SMiri Korenblit } __packed; /* FW_TLV_DEBUG_ADDR_SIZE_VER_1 */ 5666125c42SMiri Korenblit 5766125c42SMiri Korenblit /** 5866125c42SMiri Korenblit * struct iwl_fw_ini_region_dev_addr_range - Configuration to read 5966125c42SMiri Korenblit * device address range 6066125c42SMiri Korenblit * 6166125c42SMiri Korenblit * @offset: offset to add to the base address of each chunk 6266125c42SMiri Korenblit * The addrs[] array will be treated as an array of &iwl_fw_ini_addr_size - 6366125c42SMiri Korenblit * an array of (addr, size) pairs. 6466125c42SMiri Korenblit */ 6566125c42SMiri Korenblit struct iwl_fw_ini_region_dev_addr_range { 6666125c42SMiri Korenblit __le32 offset; 6766125c42SMiri Korenblit } __packed; /* FW_TLV_DEBUG_DEVICE_ADDR_RANGE_API_S_VER_1 */ 6866125c42SMiri Korenblit 6966125c42SMiri Korenblit /** 70c9fe75e9SShahar S Matityahu * struct iwl_fw_ini_region_dev_addr - Configuration to read device addresses 71fe63f21bSShahar S Matityahu * 72c9fe75e9SShahar S Matityahu * @size: size of each memory chunk 73c9fe75e9SShahar S Matityahu * @offset: offset to add to the base address of each chunk 74c9fe75e9SShahar S Matityahu */ 75c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_dev_addr { 76c9fe75e9SShahar S Matityahu __le32 size; 77c9fe75e9SShahar S Matityahu __le32 offset; 78c9fe75e9SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_DEVICE_ADDR_API_S_VER_1 */ 79c9fe75e9SShahar S Matityahu 80c9fe75e9SShahar S Matityahu /** 81c9fe75e9SShahar S Matityahu * struct iwl_fw_ini_region_fifos - Configuration to read Tx/Rx fifos 82c9fe75e9SShahar S Matityahu * 83c9fe75e9SShahar S Matityahu * @fid: fifos ids array. Used to determine what fifos to collect 84c9fe75e9SShahar S Matityahu * @hdr_only: if non zero, collect only the registers 85c9fe75e9SShahar S Matityahu * @offset: offset to add to the registers addresses 86c9fe75e9SShahar S Matityahu */ 87c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_fifos { 88c9fe75e9SShahar S Matityahu __le32 fid[2]; 89c9fe75e9SShahar S Matityahu __le32 hdr_only; 90c9fe75e9SShahar S Matityahu __le32 offset; 91c9fe75e9SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_REGION_FIFOS_API_S_VER_1 */ 92c9fe75e9SShahar S Matityahu 93c9fe75e9SShahar S Matityahu /** 94c9fe75e9SShahar S Matityahu * struct iwl_fw_ini_region_err_table - error table region data 95c9fe75e9SShahar S Matityahu * 96c9fe75e9SShahar S Matityahu * Configuration to read Umac/Lmac error table 97c9fe75e9SShahar S Matityahu * 98c9fe75e9SShahar S Matityahu * @version: version of the error table 99c9fe75e9SShahar S Matityahu * @base_addr: base address of the error table 100c9fe75e9SShahar S Matityahu * @size: size of the error table 101c9fe75e9SShahar S Matityahu * @offset: offset to add to &base_addr 102c9fe75e9SShahar S Matityahu */ 103c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_err_table { 104c9fe75e9SShahar S Matityahu __le32 version; 105c9fe75e9SShahar S Matityahu __le32 base_addr; 106c9fe75e9SShahar S Matityahu __le32 size; 107c9fe75e9SShahar S Matityahu __le32 offset; 108c9fe75e9SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_REGION_ERROR_TABLE_API_S_VER_1 */ 109c9fe75e9SShahar S Matityahu 110c9fe75e9SShahar S Matityahu /** 111ba8f6f4aSMordechay Goodstein * struct iwl_fw_ini_region_special_device_memory - special device memory 112ba8f6f4aSMordechay Goodstein * 113ba8f6f4aSMordechay Goodstein * Configuration to read a special memory 114ba8f6f4aSMordechay Goodstein * 115ba8f6f4aSMordechay Goodstein * @type: type of the special memory 116ba8f6f4aSMordechay Goodstein * @version: version of the special memory 117ba8f6f4aSMordechay Goodstein * @base_addr: base address of the error table 118ba8f6f4aSMordechay Goodstein * @size: size of the error table 119ba8f6f4aSMordechay Goodstein * @offset: offset to add to &base_addr 120ba8f6f4aSMordechay Goodstein */ 121ba8f6f4aSMordechay Goodstein struct iwl_fw_ini_region_special_device_memory { 122ba8f6f4aSMordechay Goodstein __le16 type; 123ba8f6f4aSMordechay Goodstein __le16 version; 124ba8f6f4aSMordechay Goodstein __le32 base_addr; 125ba8f6f4aSMordechay Goodstein __le32 size; 126ba8f6f4aSMordechay Goodstein __le32 offset; 127ba8f6f4aSMordechay Goodstein } __packed; /* FW_TLV_DEBUG_REGION_SPECIAL_DEVICE_ADDR_API_S_VER_1 */ 128ba8f6f4aSMordechay Goodstein 129ba8f6f4aSMordechay Goodstein /** 130c9fe75e9SShahar S Matityahu * struct iwl_fw_ini_region_internal_buffer - internal buffer region data 131c9fe75e9SShahar S Matityahu * 132c9fe75e9SShahar S Matityahu * Configuration to read internal monitor buffer 133c9fe75e9SShahar S Matityahu * 134c9fe75e9SShahar S Matityahu * @alloc_id: allocation id one of &enum iwl_fw_ini_allocation_id 135c9fe75e9SShahar S Matityahu * @base_addr: internal buffer base address 136c9fe75e9SShahar S Matityahu * @size: size internal buffer size 137c9fe75e9SShahar S Matityahu */ 138c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_internal_buffer { 139c9fe75e9SShahar S Matityahu __le32 alloc_id; 140c9fe75e9SShahar S Matityahu __le32 base_addr; 141c9fe75e9SShahar S Matityahu __le32 size; 142c9fe75e9SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_REGION_INTERNAL_BUFFER_API_S_VER_1 */ 143c9fe75e9SShahar S Matityahu 144c9fe75e9SShahar S Matityahu /** 145c9fe75e9SShahar S Matityahu * struct iwl_fw_ini_region_tlv - region TLV 146c9fe75e9SShahar S Matityahu * 147c9fe75e9SShahar S Matityahu * Configures parameters for region data collection 148c9fe75e9SShahar S Matityahu * 149c9fe75e9SShahar S Matityahu * @hdr: debug header 1503a84161cSJohannes Berg * @id: region id. Max id is %IWL_FW_INI_MAX_REGION_ID 151c9fe75e9SShahar S Matityahu * @type: region type. One of &enum iwl_fw_ini_region_type 15262ed5d90SMordechay Goodstein * @sub_type: region sub type 153ddb6b76bSMukesh Sisodiya * @sub_type_ver: region sub type version 15462ed5d90SMordechay Goodstein * @reserved: not in use 155c9fe75e9SShahar S Matityahu * @name: region name 156c9fe75e9SShahar S Matityahu * @dev_addr: device address configuration. Used by 1573a84161cSJohannes Berg * %IWL_FW_INI_REGION_DEVICE_MEMORY, %IWL_FW_INI_REGION_PERIPHERY_MAC, 1583a84161cSJohannes Berg * %IWL_FW_INI_REGION_PERIPHERY_PHY, %IWL_FW_INI_REGION_PERIPHERY_AUX, 1593a84161cSJohannes Berg * %IWL_FW_INI_REGION_PAGING, %IWL_FW_INI_REGION_CSR, 1603a84161cSJohannes Berg * %IWL_FW_INI_REGION_DRAM_IMR and %IWL_FW_INI_REGION_PCI_IOSF_CONFIG 1613a84161cSJohannes Berg * %IWL_FW_INI_REGION_DBGI_SRAM, %FW_TLV_DEBUG_REGION_TYPE_DBGI_SRAM, 1623a84161cSJohannes Berg * %IWL_FW_INI_REGION_PERIPHERY_SNPS_DPHYIP, 16366125c42SMiri Korenblit * @dev_addr_range: device address range configuration. Used by 1643a84161cSJohannes Berg * %IWL_FW_INI_REGION_PERIPHERY_MAC_RANGE and 1653a84161cSJohannes Berg * %IWL_FW_INI_REGION_PERIPHERY_PHY_RANGE 1663a84161cSJohannes Berg * @fifos: fifos configuration. Used by %IWL_FW_INI_REGION_TXF and 1673a84161cSJohannes Berg * %IWL_FW_INI_REGION_RXF 168c9fe75e9SShahar S Matityahu * @err_table: error table configuration. Used by 1693a84161cSJohannes Berg * %IWL_FW_INI_REGION_LMAC_ERROR_TABLE and 1703a84161cSJohannes Berg * %IWL_FW_INI_REGION_UMAC_ERROR_TABLE 171c9fe75e9SShahar S Matityahu * @internal_buffer: internal monitor buffer configuration. Used by 1723a84161cSJohannes Berg * %IWL_FW_INI_REGION_INTERNAL_BUFFER 1733a84161cSJohannes Berg * @special_mem: special device memory region, used by 1743a84161cSJohannes Berg * %IWL_FW_INI_REGION_SPECIAL_DEVICE_MEMORY 175c9fe75e9SShahar S Matityahu * @dram_alloc_id: dram allocation id. One of &enum iwl_fw_ini_allocation_id. 1763a84161cSJohannes Berg * Used by %IWL_FW_INI_REGION_DRAM_BUFFER 1773a84161cSJohannes Berg * @tlv_mask: tlv collection mask. Used by %IWL_FW_INI_REGION_TLV 178c9fe75e9SShahar S Matityahu * @addrs: array of addresses attached to the end of the region tlv 179bd294466SSara Sharon */ 180bd294466SSara Sharon struct iwl_fw_ini_region_tlv { 181c9fe75e9SShahar S Matityahu struct iwl_fw_ini_header hdr; 182c9fe75e9SShahar S Matityahu __le32 id; 18362ed5d90SMordechay Goodstein u8 type; 18462ed5d90SMordechay Goodstein u8 sub_type; 18562ed5d90SMordechay Goodstein u8 sub_type_ver; 18662ed5d90SMordechay Goodstein u8 reserved; 187c9fe75e9SShahar S Matityahu u8 name[IWL_FW_INI_MAX_NAME]; 188c9fe75e9SShahar S Matityahu union { 189c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_dev_addr dev_addr; 19066125c42SMiri Korenblit struct iwl_fw_ini_region_dev_addr_range dev_addr_range; 191c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_fifos fifos; 192c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_err_table err_table; 193c9fe75e9SShahar S Matityahu struct iwl_fw_ini_region_internal_buffer internal_buffer; 194ba8f6f4aSMordechay Goodstein struct iwl_fw_ini_region_special_device_memory special_mem; 195c9fe75e9SShahar S Matityahu __le32 dram_alloc_id; 196c9fe75e9SShahar S Matityahu __le32 tlv_mask; 197c9fe75e9SShahar S Matityahu }; /* FW_TLV_DEBUG_REGION_CONF_PARAMS_API_U_VER_1 */ 198c9fe75e9SShahar S Matityahu __le32 addrs[]; 199c9fe75e9SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_REGION_API_S_VER_1 */ 200bd294466SSara Sharon 201bd294466SSara Sharon /** 202677d25b2SShahar S Matityahu * struct iwl_fw_ini_debug_info_tlv 203677d25b2SShahar S Matityahu * 204677d25b2SShahar S Matityahu * debug configuration name for a specific image 205677d25b2SShahar S Matityahu * 206677d25b2SShahar S Matityahu * @hdr: debug header 207677d25b2SShahar S Matityahu * @image_type: image type 208677d25b2SShahar S Matityahu * @debug_cfg_name: debug configuration name 209677d25b2SShahar S Matityahu */ 210677d25b2SShahar S Matityahu struct iwl_fw_ini_debug_info_tlv { 211677d25b2SShahar S Matityahu struct iwl_fw_ini_header hdr; 212677d25b2SShahar S Matityahu __le32 image_type; 213677d25b2SShahar S Matityahu u8 debug_cfg_name[IWL_FW_INI_MAX_CFG_NAME]; 214677d25b2SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_INFO_API_S_VER_1 */ 215677d25b2SShahar S Matityahu 216677d25b2SShahar S Matityahu /** 217593fae3eSShahar S Matityahu * struct iwl_fw_ini_allocation_tlv - Allocates DRAM buffers 218593fae3eSShahar S Matityahu * 219593fae3eSShahar S Matityahu * @hdr: debug header 220593fae3eSShahar S Matityahu * @alloc_id: allocation id. One of &enum iwl_fw_ini_allocation_id 221593fae3eSShahar S Matityahu * @buf_location: buffer location. One of &enum iwl_fw_ini_buffer_location 222593fae3eSShahar S Matityahu * @req_size: requested buffer size 223593fae3eSShahar S Matityahu * @max_frags_num: maximum number of fragments 224593fae3eSShahar S Matityahu * @min_size: minimum buffer size 225593fae3eSShahar S Matityahu */ 226593fae3eSShahar S Matityahu struct iwl_fw_ini_allocation_tlv { 227593fae3eSShahar S Matityahu struct iwl_fw_ini_header hdr; 228593fae3eSShahar S Matityahu __le32 alloc_id; 229593fae3eSShahar S Matityahu __le32 buf_location; 230593fae3eSShahar S Matityahu __le32 req_size; 231593fae3eSShahar S Matityahu __le32 max_frags_num; 232593fae3eSShahar S Matityahu __le32 min_size; 233593fae3eSShahar S Matityahu } __packed; /* FW_TLV_DEBUG_BUFFER_ALLOCATION_API_S_VER_1 */ 234593fae3eSShahar S Matityahu 235593fae3eSShahar S Matityahu /** 2363b589d56SShahar S Matityahu * struct iwl_fw_ini_trigger_tlv - trigger TLV 237bd294466SSara Sharon * 2383b589d56SShahar S Matityahu * Trigger that upon firing, determines what regions to collect 2393b589d56SShahar S Matityahu * 2403b589d56SShahar S Matityahu * @hdr: debug header 2413b589d56SShahar S Matityahu * @time_point: time point. One of &enum iwl_fw_ini_time_point 2423b589d56SShahar S Matityahu * @trigger_reason: trigger reason 2433b589d56SShahar S Matityahu * @apply_policy: uses &enum iwl_fw_ini_trigger_apply_policy 2443b589d56SShahar S Matityahu * @dump_delay: delay from trigger fire to dump, in usec 2453b589d56SShahar S Matityahu * @occurrences: max trigger fire occurrences allowed 2463b589d56SShahar S Matityahu * @reserved: unused 2473b589d56SShahar S Matityahu * @ignore_consec: ignore consecutive triggers, in usec 2483b589d56SShahar S Matityahu * @reset_fw: if non zero, will reset and reload the FW 2493b589d56SShahar S Matityahu * @multi_dut: initiate debug dump data on several DUTs 2503b589d56SShahar S Matityahu * @regions_mask: mask of regions to collect 2513b589d56SShahar S Matityahu * @data: trigger data 252bd294466SSara Sharon */ 253bd294466SSara Sharon struct iwl_fw_ini_trigger_tlv { 2543b589d56SShahar S Matityahu struct iwl_fw_ini_header hdr; 2553b589d56SShahar S Matityahu __le32 time_point; 2563b589d56SShahar S Matityahu __le32 trigger_reason; 2573b589d56SShahar S Matityahu __le32 apply_policy; 2583b589d56SShahar S Matityahu __le32 dump_delay; 2593b589d56SShahar S Matityahu __le32 occurrences; 2603b589d56SShahar S Matityahu __le32 reserved; 2613b589d56SShahar S Matityahu __le32 ignore_consec; 2623b589d56SShahar S Matityahu __le32 reset_fw; 2633b589d56SShahar S Matityahu __le32 multi_dut; 2643b589d56SShahar S Matityahu __le64 regions_mask; 2653b589d56SShahar S Matityahu __le32 data[]; 2663b589d56SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_TRIGGER_API_S_VER_1 */ 267bd294466SSara Sharon 268bd294466SSara Sharon /** 269a9248de4SShahar S Matityahu * struct iwl_fw_ini_hcmd_tlv - Generic Host command pass through TLV 270a9248de4SShahar S Matityahu * 271a9248de4SShahar S Matityahu * @hdr: debug header 272a9248de4SShahar S Matityahu * @time_point: time point. One of &enum iwl_fw_ini_time_point 273a9248de4SShahar S Matityahu * @period_msec: interval at which the hcmd will be sent to the FW. 274a9248de4SShahar S Matityahu * Measured in msec (0 = one time command) 275a9248de4SShahar S Matityahu * @hcmd: a variable length host-command to be sent to apply the configuration 276a9248de4SShahar S Matityahu */ 277a9248de4SShahar S Matityahu struct iwl_fw_ini_hcmd_tlv { 278a9248de4SShahar S Matityahu struct iwl_fw_ini_header hdr; 279a9248de4SShahar S Matityahu __le32 time_point; 280a9248de4SShahar S Matityahu __le32 period_msec; 281a9248de4SShahar S Matityahu struct iwl_fw_ini_hcmd hcmd; 282a9248de4SShahar S Matityahu } __packed; /* FW_TLV_DEBUG_HCMD_API_S_VER_1 */ 283a9248de4SShahar S Matityahu 284a9248de4SShahar S Matityahu /** 2853009c797SLuca Coelho * struct iwl_fw_ini_addr_val - Address and value to set it to 286f21baf24SMukesh Sisodiya * 287f21baf24SMukesh Sisodiya * @address: the base address 288f21baf24SMukesh Sisodiya * @value: value to set at address 289f21baf24SMukesh Sisodiya */ 290f21baf24SMukesh Sisodiya struct iwl_fw_ini_addr_val { 291f21baf24SMukesh Sisodiya __le32 address; 292f21baf24SMukesh Sisodiya __le32 value; 293f21baf24SMukesh Sisodiya } __packed; /* FW_TLV_DEBUG_ADDR_VALUE_VER_1 */ 294f21baf24SMukesh Sisodiya 295f21baf24SMukesh Sisodiya /** 296fa1a1eb2SJohannes Berg * struct iwl_fw_ini_conf_set_tlv - configuration TLV to set register/memory. 297f21baf24SMukesh Sisodiya * 298f21baf24SMukesh Sisodiya * @hdr: debug header 299f21baf24SMukesh Sisodiya * @time_point: time point to apply config. One of &enum iwl_fw_ini_time_point 300f21baf24SMukesh Sisodiya * @set_type: write access type preset token for time point. 301f21baf24SMukesh Sisodiya * one of &enum iwl_fw_ini_config_set_type 302f21baf24SMukesh Sisodiya * @addr_offset: the offset to add to any item in address[0] field 303f21baf24SMukesh Sisodiya * @addr_val: address value pair 304f21baf24SMukesh Sisodiya */ 305f21baf24SMukesh Sisodiya struct iwl_fw_ini_conf_set_tlv { 306f21baf24SMukesh Sisodiya struct iwl_fw_ini_header hdr; 307f21baf24SMukesh Sisodiya __le32 time_point; 308f21baf24SMukesh Sisodiya __le32 set_type; 309f21baf24SMukesh Sisodiya __le32 addr_offset; 31034e63cd5SGustavo A. R. Silva struct iwl_fw_ini_addr_val addr_val[]; 311f21baf24SMukesh Sisodiya } __packed; /* FW_TLV_DEBUG_CONFIG_SET_API_S_VER_1 */ 312f21baf24SMukesh Sisodiya 313f21baf24SMukesh Sisodiya /** 314f21baf24SMukesh Sisodiya * enum iwl_fw_ini_config_set_type 315f21baf24SMukesh Sisodiya * 316f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_INVALID: invalid config set 317f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_MAC: for PERIPHERY MAC configuration 318f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_PHY: for PERIPHERY PHY configuration 319f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_AUX: for PERIPHERY AUX configuration 320f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_MEMORY: for DEVICE MEMORY configuration 321f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_CSR: for CSR configuration 322f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_DBGC_DRAM_ADDR: for DBGC_DRAM_ADDR configuration 323f21baf24SMukesh Sisodiya * @IWL_FW_INI_CONFIG_SET_TYPE_PERIPH_SCRATCH_HWM: for PERIPH SCRATCH HWM configuration 324ecf7e563SJohannes Berg * @IWL_FW_INI_CONFIG_SET_TYPE_MAX_NUM: max number of configuration supported 325f21baf24SMukesh Sisodiya */ 326f21baf24SMukesh Sisodiya 327f21baf24SMukesh Sisodiya enum iwl_fw_ini_config_set_type { 328f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_INVALID = 0, 329f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_MAC, 330f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_PHY, 331f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_PERIPHERY_AUX, 332f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_DEVICE_MEMORY, 333f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_CSR, 334f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_DBGC_DRAM_ADDR, 335f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_PERIPH_SCRATCH_HWM, 336f21baf24SMukesh Sisodiya IWL_FW_INI_CONFIG_SET_TYPE_MAX_NUM, 337f21baf24SMukesh Sisodiya } __packed; 338f21baf24SMukesh Sisodiya 339f21baf24SMukesh Sisodiya /** 340bd294466SSara Sharon * enum iwl_fw_ini_allocation_id 341fe63f21bSShahar S Matityahu * 342bd294466SSara Sharon * @IWL_FW_INI_ALLOCATION_INVALID: invalid 343bd294466SSara Sharon * @IWL_FW_INI_ALLOCATION_ID_DBGC1: allocation meant for DBGC1 configuration 344bd294466SSara Sharon * @IWL_FW_INI_ALLOCATION_ID_DBGC2: allocation meant for DBGC2 configuration 345bd294466SSara Sharon * @IWL_FW_INI_ALLOCATION_ID_DBGC3: allocation meant for DBGC3 configuration 346020cde47SMukesh Sisodiya * @IWL_FW_INI_ALLOCATION_ID_DBGC4: allocation meant for DBGC4 configuration 347ccdc3d6dSShahar S Matityahu * @IWL_FW_INI_ALLOCATION_NUM: number of allocation ids 348bd294466SSara Sharon */ 349bd294466SSara Sharon enum iwl_fw_ini_allocation_id { 350bd294466SSara Sharon IWL_FW_INI_ALLOCATION_INVALID, 351bd294466SSara Sharon IWL_FW_INI_ALLOCATION_ID_DBGC1, 352bd294466SSara Sharon IWL_FW_INI_ALLOCATION_ID_DBGC2, 353bd294466SSara Sharon IWL_FW_INI_ALLOCATION_ID_DBGC3, 354020cde47SMukesh Sisodiya IWL_FW_INI_ALLOCATION_ID_DBGC4, 355ccdc3d6dSShahar S Matityahu IWL_FW_INI_ALLOCATION_NUM, 356d7febc2eSShahar S Matityahu }; /* FW_DEBUG_TLV_ALLOCATION_ID_E_VER_1 */ 357bd294466SSara Sharon 358bd294466SSara Sharon /** 359bd294466SSara Sharon * enum iwl_fw_ini_buffer_location 360fe63f21bSShahar S Matityahu * 361bd294466SSara Sharon * @IWL_FW_INI_LOCATION_INVALID: invalid 362bd294466SSara Sharon * @IWL_FW_INI_LOCATION_SRAM_PATH: SRAM location 363bd294466SSara Sharon * @IWL_FW_INI_LOCATION_DRAM_PATH: DRAM location 364fe63f21bSShahar S Matityahu * @IWL_FW_INI_LOCATION_NPK_PATH: NPK location 365ecf7e563SJohannes Berg * @IWL_FW_INI_LOCATION_NUM: number of valid locations 366bd294466SSara Sharon */ 367bd294466SSara Sharon enum iwl_fw_ini_buffer_location { 36856ea8e3bSShahar S Matityahu IWL_FW_INI_LOCATION_INVALID, 369bd294466SSara Sharon IWL_FW_INI_LOCATION_SRAM_PATH, 370bd294466SSara Sharon IWL_FW_INI_LOCATION_DRAM_PATH, 371fe63f21bSShahar S Matityahu IWL_FW_INI_LOCATION_NPK_PATH, 3720c9e025eSMordechay Goodstein IWL_FW_INI_LOCATION_NUM, 373d7febc2eSShahar S Matityahu }; /* FW_DEBUG_TLV_BUFFER_LOCATION_E_VER_1 */ 374bd294466SSara Sharon 375bd294466SSara Sharon /** 376bd294466SSara Sharon * enum iwl_fw_ini_region_type 377fe63f21bSShahar S Matityahu * 378bd294466SSara Sharon * @IWL_FW_INI_REGION_INVALID: invalid 379c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_TLV: uCode and debug TLVs 380c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_INTERNAL_BUFFER: monitor SMEM buffer 381c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_DRAM_BUFFER: monitor DRAM buffer 382c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_TXF: TX fifos 383c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_RXF: RX fifo 384c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_LMAC_ERROR_TABLE: lmac error table 385c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_UMAC_ERROR_TABLE: umac error table 386c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_RSP_OR_NOTIF: FW response or notification data 387bd294466SSara Sharon * @IWL_FW_INI_REGION_DEVICE_MEMORY: device internal memory 388bd294466SSara Sharon * @IWL_FW_INI_REGION_PERIPHERY_MAC: periphery registers of MAC 389bd294466SSara Sharon * @IWL_FW_INI_REGION_PERIPHERY_PHY: periphery registers of PHY 390bd294466SSara Sharon * @IWL_FW_INI_REGION_PERIPHERY_AUX: periphery registers of AUX 391bd294466SSara Sharon * @IWL_FW_INI_REGION_PAGING: paging memory 392bd294466SSara Sharon * @IWL_FW_INI_REGION_CSR: CSR registers 393c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_DRAM_IMR: IMR memory 394c9fe75e9SShahar S Matityahu * @IWL_FW_INI_REGION_PCI_IOSF_CONFIG: PCI/IOSF config 39516b2afe0SMordechay Goodstein * @IWL_FW_INI_REGION_SPECIAL_DEVICE_MEMORY: special device memory 39689639e06SMukesh Sisodiya * @IWL_FW_INI_REGION_DBGI_SRAM: periphery registers of DBGI SRAM 39766125c42SMiri Korenblit * @IWL_FW_INI_REGION_PERIPHERY_MAC_RANGE: a range of periphery registers of MAC 39866125c42SMiri Korenblit * @IWL_FW_INI_REGION_PERIPHERY_PHY_RANGE: a range of periphery registers of PHY 399a634386cSDaniel Gabay * @IWL_FW_INI_REGION_PERIPHERY_SNPS_DPHYIP: periphery registers of SNPS DPHYIP 400bd294466SSara Sharon * @IWL_FW_INI_REGION_NUM: number of region types 401bd294466SSara Sharon */ 402bd294466SSara Sharon enum iwl_fw_ini_region_type { 403bd294466SSara Sharon IWL_FW_INI_REGION_INVALID, 404c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_TLV, 405c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_INTERNAL_BUFFER, 406c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_DRAM_BUFFER, 407c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_TXF, 408c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_RXF, 409c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_LMAC_ERROR_TABLE, 410c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_UMAC_ERROR_TABLE, 411c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_RSP_OR_NOTIF, 412bd294466SSara Sharon IWL_FW_INI_REGION_DEVICE_MEMORY, 413bd294466SSara Sharon IWL_FW_INI_REGION_PERIPHERY_MAC, 414bd294466SSara Sharon IWL_FW_INI_REGION_PERIPHERY_PHY, 415bd294466SSara Sharon IWL_FW_INI_REGION_PERIPHERY_AUX, 416bd294466SSara Sharon IWL_FW_INI_REGION_PAGING, 417bd294466SSara Sharon IWL_FW_INI_REGION_CSR, 418c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_DRAM_IMR, 419c9fe75e9SShahar S Matityahu IWL_FW_INI_REGION_PCI_IOSF_CONFIG, 420ba8f6f4aSMordechay Goodstein IWL_FW_INI_REGION_SPECIAL_DEVICE_MEMORY, 42189639e06SMukesh Sisodiya IWL_FW_INI_REGION_DBGI_SRAM, 42266125c42SMiri Korenblit IWL_FW_INI_REGION_PERIPHERY_MAC_RANGE, 42366125c42SMiri Korenblit IWL_FW_INI_REGION_PERIPHERY_PHY_RANGE, 424a634386cSDaniel Gabay IWL_FW_INI_REGION_PERIPHERY_SNPS_DPHYIP, 425bd294466SSara Sharon IWL_FW_INI_REGION_NUM 426c9fe75e9SShahar S Matityahu }; /* FW_TLV_DEBUG_REGION_TYPE_API_E */ 427bd294466SSara Sharon 428aece8927SJohannes Berg enum iwl_fw_ini_region_device_memory_subtype { 429aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_HW_SMEM = 1, 430aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_UMAC_ERROR_TABLE = 5, 431aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_LMAC_1_ERROR_TABLE = 7, 432aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_LMAC_2_ERROR_TABLE = 10, 433aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_TCM_1_ERROR_TABLE = 14, 434aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_TCM_2_ERROR_TABLE = 16, 435aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_RCM_1_ERROR_TABLE = 18, 436aece8927SJohannes Berg IWL_FW_INI_REGION_DEVICE_MEMORY_SUBTYPE_RCM_2_ERROR_TABLE = 20, 437aece8927SJohannes Berg }; /* FW_TLV_DEBUG_REGION_DEVICE_MEMORY_SUBTYPE_API_E */ 43804f1ee24SJohannes Berg 439b108d8c7SShahar S Matityahu /** 440b108d8c7SShahar S Matityahu * enum iwl_fw_ini_time_point 441b108d8c7SShahar S Matityahu * 442b108d8c7SShahar S Matityahu * Hard coded time points in which the driver can send hcmd or perform dump 443b108d8c7SShahar S Matityahu * collection 444b108d8c7SShahar S Matityahu * 445ecf7e563SJohannes Berg * @IWL_FW_INI_TIME_POINT_INVALID: invalid timepoint 446b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_EARLY: pre loading the FW 447b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_AFTER_ALIVE: first cmd from host after alive notif 448b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_POST_INIT: last cmd in series of init sequence 449b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_FW_ASSERT: FW assert 450b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_FW_HW_ERROR: FW HW error 451b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_FW_TFD_Q_HANG: TFD queue hang 4524bf3d7cfSMordechay Goodstein * @IWL_FW_INI_TIME_POINT_FW_DHC_NOTIFICATION: DHC cmd response and notif 453b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_FW_RSP_OR_NOTIF: FW response or notification. 454b108d8c7SShahar S Matityahu * data field holds id and group 455b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_USER_TRIGGER: user trigger time point 456b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_PERIODIC: periodic timepoint that fires in constant 457b108d8c7SShahar S Matityahu * intervals. data field holds the interval time in msec 4584c447cfaSLuca Coelho * @IWL_FW_INI_TIME_POINT_RESERVED: reserved 459b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_ASSERT: Unused 460b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_ALIVE_TIMEOUT: alive timeout 461b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_DEVICE_ENABLE: device enable 462b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_DEVICE_DISABLE: device disable 463b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_D3_START: D3 start 464b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HOST_D3_END: D3 end 465b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_MISSED_BEACONS: missed beacons 466b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_ASSOC_FAILED: association failure 467b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_TX_FAILED: Tx frame failed 468b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_TX_WFD_ACTION_FRAME_FAILED: wifi direct action 469b108d8c7SShahar S Matityahu * frame failed 470b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_TX_LATENCY_THRESHOLD: Tx latency threshold 471b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_HANG_OCCURRED: hang occurred 472b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_EAPOL_FAILED: EAPOL failed 473b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_FAKE_TX: fake Tx 474b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_DEASSOC: de association 4758d599950SMukesh Sisodiya * @IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_EXT_REQ: request to override preset 4768d599950SMukesh Sisodiya * @IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_START: start handling override preset 4778d599950SMukesh Sisodiya * request 4788d599950SMukesh Sisodiya * @IWL_FW_INI_TIME_SCAN_FAILURE: failed scan channel list 479*db9979d5SEmmanuel Grumbach * @IWL_FW_INI_TIME_ESR_LINK_UP: EMLSR is active (several links are activated) 480*db9979d5SEmmanuel Grumbach * @IWL_FW_INI_TIME_ESR_LINK_DOWN: EMLSR is inactive (only one active link left) 481b108d8c7SShahar S Matityahu * @IWL_FW_INI_TIME_POINT_NUM: number of time points 482b108d8c7SShahar S Matityahu */ 483b108d8c7SShahar S Matityahu enum iwl_fw_ini_time_point { 484b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_INVALID, 485b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_EARLY, 486b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_AFTER_ALIVE, 487b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_POST_INIT, 488b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_FW_ASSERT, 489b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_FW_HW_ERROR, 490b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_FW_TFD_Q_HANG, 4914bf3d7cfSMordechay Goodstein IWL_FW_INI_TIME_POINT_FW_DHC_NOTIFICATION, 492b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_FW_RSP_OR_NOTIF, 493b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_USER_TRIGGER, 494b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_PERIODIC, 4954c447cfaSLuca Coelho IWL_FW_INI_TIME_POINT_RESERVED, 496b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_ASSERT, 497b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_ALIVE_TIMEOUT, 498b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_DEVICE_ENABLE, 499b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_DEVICE_DISABLE, 500b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_D3_START, 501b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HOST_D3_END, 502b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_MISSED_BEACONS, 503b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_ASSOC_FAILED, 504b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_TX_FAILED, 505b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_TX_WFD_ACTION_FRAME_FAILED, 506b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_TX_LATENCY_THRESHOLD, 507b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_HANG_OCCURRED, 508b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_EAPOL_FAILED, 509b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_FAKE_TX, 510b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_DEASSOC, 5118d599950SMukesh Sisodiya IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_EXT_REQ, 5128d599950SMukesh Sisodiya IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_START, 5138d599950SMukesh Sisodiya IWL_FW_INI_TIME_SCAN_FAILURE, 514*db9979d5SEmmanuel Grumbach IWL_FW_INI_TIME_ESR_LINK_UP, 515*db9979d5SEmmanuel Grumbach IWL_FW_INI_TIME_ESR_LINK_DOWN, 516b108d8c7SShahar S Matityahu IWL_FW_INI_TIME_POINT_NUM, 517b108d8c7SShahar S Matityahu }; /* FW_TLV_DEBUG_TIME_POINT_API_E */ 518b108d8c7SShahar S Matityahu 519cf29c5b6SShahar S Matityahu /** 520cf29c5b6SShahar S Matityahu * enum iwl_fw_ini_trigger_apply_policy - Determines how to apply triggers 521cf29c5b6SShahar S Matityahu * 522cf29c5b6SShahar S Matityahu * @IWL_FW_INI_APPLY_POLICY_MATCH_TIME_POINT: match by time point 523cf29c5b6SShahar S Matityahu * @IWL_FW_INI_APPLY_POLICY_MATCH_DATA: match by trigger data 524cf29c5b6SShahar S Matityahu * @IWL_FW_INI_APPLY_POLICY_OVERRIDE_REGIONS: override regions mask. 525cf29c5b6SShahar S Matityahu * Append otherwise 526cf29c5b6SShahar S Matityahu * @IWL_FW_INI_APPLY_POLICY_OVERRIDE_CFG: override trigger configuration 527cf29c5b6SShahar S Matityahu * @IWL_FW_INI_APPLY_POLICY_OVERRIDE_DATA: override trigger data. 528cf29c5b6SShahar S Matityahu * Append otherwise 5290eb50c67SMukesh Sisodiya * @IWL_FW_INI_APPLY_POLICY_DUMP_COMPLETE_CMD: send cmd once dump collected 530cf29c5b6SShahar S Matityahu */ 531cf29c5b6SShahar S Matityahu enum iwl_fw_ini_trigger_apply_policy { 532cf29c5b6SShahar S Matityahu IWL_FW_INI_APPLY_POLICY_MATCH_TIME_POINT = BIT(0), 533cf29c5b6SShahar S Matityahu IWL_FW_INI_APPLY_POLICY_MATCH_DATA = BIT(1), 534cf29c5b6SShahar S Matityahu IWL_FW_INI_APPLY_POLICY_OVERRIDE_REGIONS = BIT(8), 535cf29c5b6SShahar S Matityahu IWL_FW_INI_APPLY_POLICY_OVERRIDE_CFG = BIT(9), 536cf29c5b6SShahar S Matityahu IWL_FW_INI_APPLY_POLICY_OVERRIDE_DATA = BIT(10), 5370eb50c67SMukesh Sisodiya IWL_FW_INI_APPLY_POLICY_DUMP_COMPLETE_CMD = BIT(16), 538cf29c5b6SShahar S Matityahu }; 539ddb6b76bSMukesh Sisodiya 540ddb6b76bSMukesh Sisodiya /** 541ddb6b76bSMukesh Sisodiya * enum iwl_fw_ini_trigger_reset_fw_policy - Determines how to handle reset 542ddb6b76bSMukesh Sisodiya * 543ddb6b76bSMukesh Sisodiya * @IWL_FW_INI_RESET_FW_MODE_NOTHING: do not stop FW and reload (default) 544ddb6b76bSMukesh Sisodiya * @IWL_FW_INI_RESET_FW_MODE_STOP_FW_ONLY: stop FW without reload FW 545ddb6b76bSMukesh Sisodiya * @IWL_FW_INI_RESET_FW_MODE_STOP_AND_RELOAD_FW: stop FW with reload FW 546ddb6b76bSMukesh Sisodiya */ 547ddb6b76bSMukesh Sisodiya enum iwl_fw_ini_trigger_reset_fw_policy { 548ddb6b76bSMukesh Sisodiya IWL_FW_INI_RESET_FW_MODE_NOTHING = 0, 549ddb6b76bSMukesh Sisodiya IWL_FW_INI_RESET_FW_MODE_STOP_FW_ONLY, 550ddb6b76bSMukesh Sisodiya IWL_FW_INI_RESET_FW_MODE_STOP_AND_RELOAD_FW 551ddb6b76bSMukesh Sisodiya }; 5529d200eddSMukesh Sisodiya 5539d200eddSMukesh Sisodiya /** 5549d200eddSMukesh Sisodiya * enum iwl_fw_ini_dump_policy - Determines how to handle dump based on enabled flags 5559d200eddSMukesh Sisodiya * 5569d200eddSMukesh Sisodiya * @IWL_FW_INI_DEBUG_DUMP_POLICY_NO_LIMIT: OS has no limit of dump size 5579d200eddSMukesh Sisodiya * @IWL_FW_INI_DEBUG_DUMP_POLICY_MAX_LIMIT_600KB: mini dump only 600KB region dump 5589d200eddSMukesh Sisodiya * @IWL_FW_IWL_DEBUG_DUMP_POLICY_MAX_LIMIT_5MB: mini dump 5MB size dump 5599d200eddSMukesh Sisodiya */ 5609d200eddSMukesh Sisodiya enum iwl_fw_ini_dump_policy { 5619d200eddSMukesh Sisodiya IWL_FW_INI_DEBUG_DUMP_POLICY_NO_LIMIT = BIT(0), 5629d200eddSMukesh Sisodiya IWL_FW_INI_DEBUG_DUMP_POLICY_MAX_LIMIT_600KB = BIT(1), 5639d200eddSMukesh Sisodiya IWL_FW_IWL_DEBUG_DUMP_POLICY_MAX_LIMIT_5MB = BIT(2), 5649d200eddSMukesh Sisodiya 5659d200eddSMukesh Sisodiya }; 5669d200eddSMukesh Sisodiya 5679d200eddSMukesh Sisodiya /** 5689d200eddSMukesh Sisodiya * enum iwl_fw_ini_dump_type - Determines dump type based on size defined by FW. 5699d200eddSMukesh Sisodiya * 5709d200eddSMukesh Sisodiya * @IWL_FW_INI_DUMP_BRIEF : only dump the most important regions 571ecf7e563SJohannes Berg * @IWL_FW_INI_DUMP_MEDIUM: dump more regions than "brief", but not all regions 5729d200eddSMukesh Sisodiya * @IWL_FW_INI_DUMP_VERBOSE : dump all regions 5739d200eddSMukesh Sisodiya */ 5749d200eddSMukesh Sisodiya enum iwl_fw_ini_dump_type { 5759d200eddSMukesh Sisodiya IWL_FW_INI_DUMP_BRIEF, 5769d200eddSMukesh Sisodiya IWL_FW_INI_DUMP_MEDIUM, 5779d200eddSMukesh Sisodiya IWL_FW_INI_DUMP_VERBOSE, 5789d200eddSMukesh Sisodiya }; 579bd294466SSara Sharon #endif 580