]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/wireless/intel/iwlwifi/fw/error-dump.h
iwlwifi: dbg: dump data according to the new ini TLVs
[linux.git] / drivers / net / wireless / intel / iwlwifi / fw / error-dump.h
index 6fede174c6649cd6395927ad8b2d43373144d882..cefafc9a082f6ef7d007c16a67e0dcb871e0c8f9 100644 (file)
@@ -249,6 +249,7 @@ struct iwl_fw_error_dump_prph {
 enum iwl_fw_error_dump_mem_type {
        IWL_FW_ERROR_DUMP_MEM_SRAM,
        IWL_FW_ERROR_DUMP_MEM_SMEM,
+       IWL_FW_ERROR_DUMP_MEM_NAMED_MEM = 10,
 };
 
 /**
@@ -263,6 +264,22 @@ struct iwl_fw_error_dump_mem {
        u8 data[];
 };
 
+/**
+ * struct iwl_fw_error_dump_named_mem - chunk of memory
+ * @type: &enum iwl_fw_error_dump_mem_type
+ * @offset: the offset from which the memory was read
+ * @name_len: name length
+ * @name: file name
+ * @data: the content of the memory
+ */
+struct iwl_fw_error_dump_named_mem {
+       __le32 type;
+       __le32 offset;
+       u8 name_len;
+       u8 name[32];
+       u8 data[];
+};
+
 /**
  * struct iwl_fw_error_dump_rb - content of an Receive Buffer
  * @index: the index of the Receive Buffer in the Rx queue