2020-12-09 22:06:03 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
|
|
*/
|
2018-05-17 07:14:30 +00:00
|
|
|
#ifndef __iwl_dbg_tlv_h__
|
|
|
|
#define __iwl_dbg_tlv_h__
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
/**
|
2019-07-23 09:50:25 +00:00
|
|
|
* struct iwl_dbg_tlv_node - debug TLV node
|
|
|
|
* @list: list of &struct iwl_dbg_tlv_node
|
|
|
|
* @tlv: debug TLV
|
2018-05-17 07:14:30 +00:00
|
|
|
*/
|
2019-07-23 09:50:25 +00:00
|
|
|
struct iwl_dbg_tlv_node {
|
2019-06-10 13:14:20 +00:00
|
|
|
struct list_head list;
|
|
|
|
struct iwl_ucode_tlv tlv;
|
2018-05-17 07:14:30 +00:00
|
|
|
};
|
|
|
|
|
2019-07-22 10:04:16 +00:00
|
|
|
/**
|
|
|
|
* union iwl_dbg_tlv_tp_data - data that is given in a time point
|
|
|
|
* @fw_pkt: a packet received from the FW
|
|
|
|
*/
|
|
|
|
union iwl_dbg_tlv_tp_data {
|
|
|
|
struct iwl_rx_packet *fw_pkt;
|
|
|
|
};
|
|
|
|
|
2019-07-23 10:41:44 +00:00
|
|
|
/**
|
|
|
|
* struct iwl_dbg_tlv_time_point_data
|
|
|
|
* @trig_list: list of triggers
|
2019-07-23 11:26:49 +00:00
|
|
|
* @active_trig_list: list of active triggers
|
2019-07-23 10:41:44 +00:00
|
|
|
* @hcmd_list: list of host commands
|
|
|
|
*/
|
|
|
|
struct iwl_dbg_tlv_time_point_data {
|
|
|
|
struct list_head trig_list;
|
2019-07-23 11:26:49 +00:00
|
|
|
struct list_head active_trig_list;
|
2019-07-23 10:41:44 +00:00
|
|
|
struct list_head hcmd_list;
|
|
|
|
};
|
|
|
|
|
2018-05-17 07:14:30 +00:00
|
|
|
struct iwl_trans;
|
2019-06-13 13:41:35 +00:00
|
|
|
struct iwl_fw_runtime;
|
|
|
|
|
2019-06-13 12:01:07 +00:00
|
|
|
void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans);
|
|
|
|
void iwl_dbg_tlv_free(struct iwl_trans *trans);
|
2019-06-30 07:23:26 +00:00
|
|
|
void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
|
|
|
|
bool ext);
|
2019-07-23 10:41:44 +00:00
|
|
|
void iwl_dbg_tlv_init(struct iwl_trans *trans);
|
2019-07-22 10:04:16 +00:00
|
|
|
void iwl_dbg_tlv_time_point(struct iwl_fw_runtime *fwrt,
|
|
|
|
enum iwl_fw_ini_time_point tp_id,
|
|
|
|
union iwl_dbg_tlv_tp_data *tp_data);
|
2019-07-01 13:03:48 +00:00
|
|
|
void iwl_dbg_tlv_del_timers(struct iwl_trans *trans);
|
2018-05-17 07:14:30 +00:00
|
|
|
|
|
|
|
#endif /* __iwl_dbg_tlv_h__*/
|