Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/rtwn/if_rtwn_debug.h
Show All 38 Lines | enum { | ||||
RTWN_DEBUG_INTR = 0x00000200, /* ISR */ | RTWN_DEBUG_INTR = 0x00000200, /* ISR */ | ||||
RTWN_DEBUG_TEMP = 0x00000400, /* temperature calibration */ | RTWN_DEBUG_TEMP = 0x00000400, /* temperature calibration */ | ||||
RTWN_DEBUG_ROM = 0x00000800, /* various ROM info */ | RTWN_DEBUG_ROM = 0x00000800, /* various ROM info */ | ||||
RTWN_DEBUG_KEY = 0x00001000, /* crypto keys management */ | RTWN_DEBUG_KEY = 0x00001000, /* crypto keys management */ | ||||
RTWN_DEBUG_TXPWR = 0x00002000, /* dump Tx power values */ | RTWN_DEBUG_TXPWR = 0x00002000, /* dump Tx power values */ | ||||
RTWN_DEBUG_RSSI = 0x00004000, /* dump RSSI lookups */ | RTWN_DEBUG_RSSI = 0x00004000, /* dump RSSI lookups */ | ||||
RTWN_DEBUG_RESET = 0x00008000, /* initialization progress */ | RTWN_DEBUG_RESET = 0x00008000, /* initialization progress */ | ||||
RTWN_DEBUG_CALIB = 0x00010000, /* calibration progress */ | RTWN_DEBUG_CALIB = 0x00010000, /* calibration progress */ | ||||
RTWN_DEBUG_RADAR = 0x00020000, /* radar detection status */ | |||||
RTWN_DEBUG_ANY = 0xffffffff | RTWN_DEBUG_ANY = 0xffffffff | ||||
}; | }; | ||||
#define RTWN_DPRINTF(_sc, _m, ...) do { \ | #define RTWN_DPRINTF(_sc, _m, ...) do { \ | ||||
if ((_sc)->sc_debug & (_m)) \ | if ((_sc)->sc_debug & (_m)) \ | ||||
device_printf((_sc)->sc_dev, __VA_ARGS__); \ | device_printf((_sc)->sc_dev, __VA_ARGS__); \ | ||||
} while(0) | } while(0) | ||||
#else | #else | ||||
#define RTWN_DPRINTF(_sc, _m, ...) do { (void) _sc; } while (0) | #define RTWN_DPRINTF(_sc, _m, ...) do { (void) _sc; } while (0) | ||||
#endif | #endif | ||||
#endif /* IF_RTWN_DEBUG_H */ | #endif /* IF_RTWN_DEBUG_H */ |