iwl-dbg-tlv.h 1.4 KB
Newer Older
J
Johannes Berg 已提交
1 2 3 4
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
/*
 * Copyright (C) 2018-2019 Intel Corporation
 */
5 6 7 8 9 10 11
#ifndef __iwl_dbg_tlv_h__
#define __iwl_dbg_tlv_h__

#include <linux/device.h>
#include <linux/types.h>

/**
12 13 14
 * struct iwl_dbg_tlv_node - debug TLV node
 * @list: list of &struct iwl_dbg_tlv_node
 * @tlv: debug TLV
15
 */
16
struct iwl_dbg_tlv_node {
17 18
	struct list_head list;
	struct iwl_ucode_tlv tlv;
19 20
};

21 22 23 24 25 26 27 28
/**
 * 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;
};

29 30 31
/**
 * struct iwl_dbg_tlv_time_point_data
 * @trig_list: list of triggers
32
 * @active_trig_list: list of active triggers
33 34 35 36
 * @hcmd_list: list of host commands
 */
struct iwl_dbg_tlv_time_point_data {
	struct list_head trig_list;
37
	struct list_head active_trig_list;
38 39 40
	struct list_head hcmd_list;
};

41
struct iwl_trans;
42 43
struct iwl_fw_runtime;

44 45
void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans);
void iwl_dbg_tlv_free(struct iwl_trans *trans);
46
void iwl_dbg_tlv_alloc(struct iwl_trans *trans, const struct iwl_ucode_tlv *tlv,
47
		       bool ext);
48
void iwl_dbg_tlv_init(struct iwl_trans *trans);
49 50 51
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);
52
void iwl_dbg_tlv_del_timers(struct iwl_trans *trans);
53 54

#endif /* __iwl_dbg_tlv_h__*/