diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/runtime.h')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/runtime.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h index 3fb940ebd74a..2b8b50a77990 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h | |||
| @@ -71,6 +71,7 @@ struct iwl_fw_runtime_ops { | |||
| 71 | int (*dump_start)(void *ctx); | 71 | int (*dump_start)(void *ctx); |
| 72 | void (*dump_end)(void *ctx); | 72 | void (*dump_end)(void *ctx); |
| 73 | bool (*fw_running)(void *ctx); | 73 | bool (*fw_running)(void *ctx); |
| 74 | int (*send_hcmd)(void *ctx, struct iwl_host_cmd *host_cmd); | ||
| 74 | }; | 75 | }; |
| 75 | 76 | ||
| 76 | #define MAX_NUM_LMAC 2 | 77 | #define MAX_NUM_LMAC 2 |
| @@ -88,6 +89,7 @@ struct iwl_fwrt_shared_mem_cfg { | |||
| 88 | 89 | ||
| 89 | enum iwl_fw_runtime_status { | 90 | enum iwl_fw_runtime_status { |
| 90 | IWL_FWRT_STATUS_DUMPING = 0, | 91 | IWL_FWRT_STATUS_DUMPING = 0, |
| 92 | IWL_FWRT_STATUS_WAIT_ALIVE, | ||
| 91 | }; | 93 | }; |
| 92 | 94 | ||
| 93 | /** | 95 | /** |
| @@ -136,6 +138,7 @@ struct iwl_fw_runtime { | |||
| 136 | 138 | ||
| 137 | /* ts of the beginning of a non-collect fw dbg data period */ | 139 | /* ts of the beginning of a non-collect fw dbg data period */ |
| 138 | unsigned long non_collect_ts_start[FW_DBG_TRIGGER_MAX - 1]; | 140 | unsigned long non_collect_ts_start[FW_DBG_TRIGGER_MAX - 1]; |
| 141 | u32 *d3_debug_data; | ||
| 139 | } dump; | 142 | } dump; |
| 140 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 143 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
| 141 | struct { | 144 | struct { |
| @@ -151,7 +154,11 @@ void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, | |||
| 151 | const struct iwl_fw_runtime_ops *ops, void *ops_ctx, | 154 | const struct iwl_fw_runtime_ops *ops, void *ops_ctx, |
| 152 | struct dentry *dbgfs_dir); | 155 | struct dentry *dbgfs_dir); |
| 153 | 156 | ||
| 154 | void iwl_fw_runtime_exit(struct iwl_fw_runtime *fwrt); | 157 | static inline void iwl_fw_runtime_free(struct iwl_fw_runtime *fwrt) |
| 158 | { | ||
| 159 | kfree(fwrt->dump.d3_debug_data); | ||
| 160 | fwrt->dump.d3_debug_data = NULL; | ||
| 161 | } | ||
| 155 | 162 | ||
| 156 | void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt); | 163 | void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt); |
| 157 | 164 | ||
| @@ -168,8 +175,4 @@ void iwl_free_fw_paging(struct iwl_fw_runtime *fwrt); | |||
| 168 | 175 | ||
| 169 | void iwl_get_shared_mem_conf(struct iwl_fw_runtime *fwrt); | 176 | void iwl_get_shared_mem_conf(struct iwl_fw_runtime *fwrt); |
| 170 | 177 | ||
| 171 | void iwl_fwrt_handle_notification(struct iwl_fw_runtime *fwrt, | ||
| 172 | struct iwl_rx_cmd_buffer *rxb); | ||
| 173 | struct iwl_nvm_data *iwl_fw_get_nvm(struct iwl_fw_runtime *fwrt); | ||
| 174 | |||
| 175 | #endif /* __iwl_fw_runtime_h__ */ | 178 | #endif /* __iwl_fw_runtime_h__ */ |
