linux/drivers/net/wireless/ath/ath9k/common-debug.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2008-2011 Atheros Communications Inc.
   3 *
   4 * Permission to use, copy, modify, and/or distribute this software for any
   5 * purpose with or without fee is hereby granted, provided that the above
   6 * copyright notice and this permission notice appear in all copies.
   7 *
   8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15 */
  16
  17
  18
  19/**
  20 * struct ath_rx_stats - RX Statistics
  21 * @rx_pkts_all:  No. of total frames received, including ones that
  22        may have had errors.
  23 * @rx_bytes_all:  No. of total bytes received, including ones that
  24        may have had errors.
  25 * @crc_err: No. of frames with incorrect CRC value
  26 * @decrypt_crc_err: No. of frames whose CRC check failed after
  27        decryption process completed
  28 * @phy_err: No. of frames whose reception failed because the PHY
  29        encountered an error
  30 * @mic_err: No. of frames with incorrect TKIP MIC verification failure
  31 * @pre_delim_crc_err: Pre-Frame delimiter CRC error detections
  32 * @post_delim_crc_err: Post-Frame delimiter CRC error detections
  33 * @decrypt_busy_err: Decryption interruptions counter
  34 * @phy_err_stats: Individual PHY error statistics
  35 * @rx_len_err:  No. of frames discarded due to bad length.
  36 * @rx_oom_err:  No. of frames dropped due to OOM issues.
  37 * @rx_rate_err:  No. of frames dropped due to rate errors.
  38 * @rx_too_many_frags_err:  Frames dropped due to too-many-frags received.
  39 * @rx_beacons:  No. of beacons received.
  40 * @rx_frags:  No. of rx-fragements received.
  41 * @rx_spectral: No of spectral packets received.
  42 */
  43struct ath_rx_stats {
  44        u32 rx_pkts_all;
  45        u32 rx_bytes_all;
  46        u32 crc_err;
  47        u32 decrypt_crc_err;
  48        u32 phy_err;
  49        u32 mic_err;
  50        u32 pre_delim_crc_err;
  51        u32 post_delim_crc_err;
  52        u32 decrypt_busy_err;
  53        u32 phy_err_stats[ATH9K_PHYERR_MAX];
  54        u32 rx_len_err;
  55        u32 rx_oom_err;
  56        u32 rx_rate_err;
  57        u32 rx_too_many_frags_err;
  58        u32 rx_beacons;
  59        u32 rx_frags;
  60        u32 rx_spectral;
  61};
  62
  63void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
  64                                  struct ath_hw *ah);
  65void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
  66                                 struct ath_hw *ah);
  67void ath9k_cmn_debug_stat_rx(struct ath_rx_stats *rxstats,
  68                             struct ath_rx_status *rs);
  69void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
  70                          struct ath_rx_stats *rxstats);
  71void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
  72                             struct ath_rx_stats *rxstats);
  73