1bfcc09ddSBjoern A. Zeeb /*- 2bfcc09ddSBjoern A. Zeeb * Copyright (c) 2020-2021 The FreeBSD Foundation 3bfcc09ddSBjoern A. Zeeb * 4bfcc09ddSBjoern A. Zeeb * This software was developed by Björn Zeeb under sponsorship from 5bfcc09ddSBjoern A. Zeeb * the FreeBSD Foundation. 6bfcc09ddSBjoern A. Zeeb * 7bfcc09ddSBjoern A. Zeeb * Redistribution and use in source and binary forms, with or without 8bfcc09ddSBjoern A. Zeeb * modification, are permitted provided that the following conditions 9bfcc09ddSBjoern A. Zeeb * are met: 10bfcc09ddSBjoern A. Zeeb * 1. Redistributions of source code must retain the above copyright 11bfcc09ddSBjoern A. Zeeb * notice, this list of conditions and the following disclaimer. 12bfcc09ddSBjoern A. Zeeb * 2. Redistributions in binary form must reproduce the above copyright 13bfcc09ddSBjoern A. Zeeb * notice, this list of conditions and the following disclaimer in the 14bfcc09ddSBjoern A. Zeeb * documentation and/or other materials provided with the distribution. 15bfcc09ddSBjoern A. Zeeb * 16bfcc09ddSBjoern A. Zeeb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17bfcc09ddSBjoern A. Zeeb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18bfcc09ddSBjoern A. Zeeb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19bfcc09ddSBjoern A. Zeeb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20bfcc09ddSBjoern A. Zeeb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21bfcc09ddSBjoern A. Zeeb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22bfcc09ddSBjoern A. Zeeb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23bfcc09ddSBjoern A. Zeeb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24bfcc09ddSBjoern A. Zeeb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25bfcc09ddSBjoern A. Zeeb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26bfcc09ddSBjoern A. Zeeb * SUCH DAMAGE. 27bfcc09ddSBjoern A. Zeeb * 28bfcc09ddSBjoern A. Zeeb * $FreeBSD$ 29bfcc09ddSBjoern A. Zeeb */ 30bfcc09ddSBjoern A. Zeeb 31bfcc09ddSBjoern A. Zeeb #ifndef _IWL_DEVTRACE_H 32bfcc09ddSBjoern A. Zeeb #define _IWL_DEVTRACE_H 33bfcc09ddSBjoern A. Zeeb 34bfcc09ddSBjoern A. Zeeb #include <linux/types.h> 35bfcc09ddSBjoern A. Zeeb #include <linux/device.h> 36bfcc09ddSBjoern A. Zeeb 37bfcc09ddSBjoern A. Zeeb #include "iwl-trans.h" 38bfcc09ddSBjoern A. Zeeb 39bfcc09ddSBjoern A. Zeeb void trace_iwlwifi_dev_hcmd(const struct device *, 40bfcc09ddSBjoern A. Zeeb struct iwl_host_cmd *, uint16_t, 41bfcc09ddSBjoern A. Zeeb struct iwl_cmd_header_wide *); 42bfcc09ddSBjoern A. Zeeb 43bfcc09ddSBjoern A. Zeeb void trace_iwlwifi_dev_rx(const struct device *, 44bfcc09ddSBjoern A. Zeeb const struct iwl_trans *, 45bfcc09ddSBjoern A. Zeeb struct iwl_rx_packet *, size_t); 46bfcc09ddSBjoern A. Zeeb 47bfcc09ddSBjoern A. Zeeb void trace_iwlwifi_dev_rx_data(const struct device *, 48bfcc09ddSBjoern A. Zeeb const struct iwl_trans *, 49bfcc09ddSBjoern A. Zeeb struct iwl_rx_packet *, size_t); 50bfcc09ddSBjoern A. Zeeb 51bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_ict_read(...) 52bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_ioread32(...) 53bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_ioread_prph32(...) 54bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_iowrite32(...) 55bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_iowrite64(...) 56bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_iowrite8(...) 57bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_iowrite_prph32(...) 58bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_iowrite_prph64(...) 59bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_irq(...) 60bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_irq_msix(...) 61bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_tx(...) 62bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dev_tx_tb(...) 63bfcc09ddSBjoern A. Zeeb 64*a4128aadSBjoern A. Zeeb #define maybe_trace_iwlwifi_dev_rx(...) 65*a4128aadSBjoern A. Zeeb 66bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_crit(...) 67bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_dbg(...) 68bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_err(...) 69bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_info(...) 70bfcc09ddSBjoern A. Zeeb #define trace_iwlwifi_warn(...) 71bfcc09ddSBjoern A. Zeeb 72bfcc09ddSBjoern A. Zeeb #endif /* _IWL_DEVTRACE_H */ 73