The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/rtwn/if_rtwn_debug.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $   */
    2 
    3 /*-
    4  * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
    5  * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org>
    6  * Copyright (c) 2015-2016 Andriy Voskoboinyk <avos@FreeBSD.org>
    7  *
    8  * Permission to use, copy, modify, and distribute this software for any
    9  * purpose with or without fee is hereby granted, provided that the above
   10  * copyright notice and this permission notice appear in all copies.
   11  *
   12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   13  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   14  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
   15  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   16  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   17  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   18  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   19  *
   20  * $FreeBSD$
   21  */
   22 
   23 #ifndef IF_RTWN_DEBUG_H
   24 #define IF_RTWN_DEBUG_H
   25 
   26 #include "opt_rtwn.h"
   27 
   28 #ifdef RTWN_DEBUG
   29 enum {
   30         RTWN_DEBUG_XMIT         = 0x00000001,   /* basic xmit operation */
   31         RTWN_DEBUG_XMIT_DESC    = 0x00000002,   /* xmit descriptors */
   32         RTWN_DEBUG_RECV         = 0x00000004,   /* basic recv operation */
   33         RTWN_DEBUG_RECV_DESC    = 0x00000008,   /* recv descriptors */
   34         RTWN_DEBUG_STATE        = 0x00000010,   /* 802.11 state transitions */
   35         RTWN_DEBUG_RA           = 0x00000020,   /* f/w rate adaptation setup */
   36         RTWN_DEBUG_USB          = 0x00000040,   /* usb requests */
   37         RTWN_DEBUG_FIRMWARE     = 0x00000080,   /* firmware(9) loading debug */
   38         RTWN_DEBUG_BEACON       = 0x00000100,   /* beacon handling */
   39         RTWN_DEBUG_INTR         = 0x00000200,   /* ISR */
   40         RTWN_DEBUG_TEMP         = 0x00000400,   /* temperature calibration */
   41         RTWN_DEBUG_ROM          = 0x00000800,   /* various ROM info */
   42         RTWN_DEBUG_KEY          = 0x00001000,   /* crypto keys management */
   43         RTWN_DEBUG_TXPWR        = 0x00002000,   /* dump Tx power values */
   44         RTWN_DEBUG_RSSI         = 0x00004000,   /* dump RSSI lookups */
   45         RTWN_DEBUG_RESET        = 0x00008000,   /* initialization progress */
   46         RTWN_DEBUG_CALIB        = 0x00010000,   /* calibration progress */
   47         RTWN_DEBUG_RADAR        = 0x00020000,   /* radar detection status */
   48         RTWN_DEBUG_ANY          = 0xffffffff
   49 };
   50 
   51 #define RTWN_DPRINTF(_sc, _m, ...) do {                 \
   52         if ((_sc)->sc_debug & (_m))                             \
   53                 device_printf((_sc)->sc_dev, __VA_ARGS__);      \
   54 } while(0)
   55 
   56 #else
   57 #define RTWN_DPRINTF(_sc, _m, ...)      do { (void) _sc; } while (0)
   58 #endif
   59 
   60 #endif  /* IF_RTWN_DEBUG_H */

Cache object: 23187e450adfeff78dc36ede11545b44


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.