Path: blob/main/sys/contrib/dev/iwlwifi/iwl-devtrace.h
105220 views
/*-1* Copyright (c) 2020-2021 The FreeBSD Foundation2*3* This software was developed by Björn Zeeb under sponsorship from4* the FreeBSD Foundation.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND16* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE17* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE18* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE19* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL20* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS21* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT23* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY24* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF25* SUCH DAMAGE.26*27* $FreeBSD$28*/2930#ifndef _IWL_DEVTRACE_H31#define _IWL_DEVTRACE_H3233#include <linux/types.h>34#include <linux/device.h>3536#include "iwl-trans.h"3738void trace_iwlwifi_dev_hcmd(const struct device *,39struct iwl_host_cmd *, uint16_t,40struct iwl_cmd_header_wide *);4142void trace_iwlwifi_dev_rx(const struct device *,43const struct iwl_trans *,44struct iwl_rx_packet *, size_t);4546void trace_iwlwifi_dev_rx_data(const struct device *,47const struct iwl_trans *,48struct iwl_rx_packet *, size_t);4950#define trace_iwlwifi_dev_ict_read(...)51#define trace_iwlwifi_dev_ioread32(...)52#define trace_iwlwifi_dev_ioread_prph32(...)53#define trace_iwlwifi_dev_iowrite32(...)54#define trace_iwlwifi_dev_iowrite64(...)55#define trace_iwlwifi_dev_iowrite8(...)56#define trace_iwlwifi_dev_iowrite_prph32(...)57#define trace_iwlwifi_dev_iowrite_prph64(...)58#define trace_iwlwifi_dev_irq(...)59#define trace_iwlwifi_dev_irq_msix(...)60#define trace_iwlwifi_dev_tx(...)61#define trace_iwlwifi_dev_tx_tb(...)6263#define maybe_trace_iwlwifi_dev_rx(...)6465#define trace_iwlwifi_crit(...)66#define trace_iwlwifi_dbg(...)67#define trace_iwlwifi_err(...)68#define trace_iwlwifi_info(...)69#define trace_iwlwifi_warn(...)7071#endif /* _IWL_DEVTRACE_H */727374