debug.h (33e2bf6aa16061bae1253514e7c32af27d2b4b31) | debug.h (2111ac0d888767999c7dd6d1309dcc1fb8012022) |
---|---|
1/* 2 * Copyright (c) 2007 Bruno Randolf <bruno@thinktube.com> 3 * 4 * This file is free software: you may copy, redistribute and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation, either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 62 unchanged lines hidden (view full) --- 71 /* debugfs entries */ 72 struct dentry *debugfs_phydir; 73 struct dentry *debugfs_debug; 74 struct dentry *debugfs_registers; 75 struct dentry *debugfs_beacon; 76 struct dentry *debugfs_reset; 77 struct dentry *debugfs_antenna; 78 struct dentry *debugfs_frameerrors; | 1/* 2 * Copyright (c) 2007 Bruno Randolf <bruno@thinktube.com> 3 * 4 * This file is free software: you may copy, redistribute and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation, either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 62 unchanged lines hidden (view full) --- 71 /* debugfs entries */ 72 struct dentry *debugfs_phydir; 73 struct dentry *debugfs_debug; 74 struct dentry *debugfs_registers; 75 struct dentry *debugfs_beacon; 76 struct dentry *debugfs_reset; 77 struct dentry *debugfs_antenna; 78 struct dentry *debugfs_frameerrors; |
79 struct dentry *debugfs_ani; |
|
79}; 80 81/** 82 * enum ath5k_debug_level - ath5k debug level 83 * 84 * @ATH5K_DEBUG_RESET: reset processing 85 * @ATH5K_DEBUG_INTR: interrupt handling 86 * @ATH5K_DEBUG_MODE: mode init/setup --- 23 unchanged lines hidden (view full) --- 110 ATH5K_DEBUG_BEACON = 0x00000010, 111 ATH5K_DEBUG_CALIBRATE = 0x00000020, 112 ATH5K_DEBUG_TXPOWER = 0x00000040, 113 ATH5K_DEBUG_LED = 0x00000080, 114 ATH5K_DEBUG_DUMP_RX = 0x00000100, 115 ATH5K_DEBUG_DUMP_TX = 0x00000200, 116 ATH5K_DEBUG_DUMPBANDS = 0x00000400, 117 ATH5K_DEBUG_TRACE = 0x00001000, | 80}; 81 82/** 83 * enum ath5k_debug_level - ath5k debug level 84 * 85 * @ATH5K_DEBUG_RESET: reset processing 86 * @ATH5K_DEBUG_INTR: interrupt handling 87 * @ATH5K_DEBUG_MODE: mode init/setup --- 23 unchanged lines hidden (view full) --- 111 ATH5K_DEBUG_BEACON = 0x00000010, 112 ATH5K_DEBUG_CALIBRATE = 0x00000020, 113 ATH5K_DEBUG_TXPOWER = 0x00000040, 114 ATH5K_DEBUG_LED = 0x00000080, 115 ATH5K_DEBUG_DUMP_RX = 0x00000100, 116 ATH5K_DEBUG_DUMP_TX = 0x00000200, 117 ATH5K_DEBUG_DUMPBANDS = 0x00000400, 118 ATH5K_DEBUG_TRACE = 0x00001000, |
119 ATH5K_DEBUG_ANI = 0x00002000, |
|
118 ATH5K_DEBUG_ANY = 0xffffffff 119}; 120 121#ifdef CONFIG_ATH5K_DEBUG 122 123#define ATH5K_TRACE(_sc) do { \ 124 if (unlikely((_sc)->debug.level & ATH5K_DEBUG_TRACE)) \ 125 printk(KERN_DEBUG "ath5k trace %s:%d\n", __func__, __LINE__); \ --- 80 unchanged lines hidden --- | 120 ATH5K_DEBUG_ANY = 0xffffffff 121}; 122 123#ifdef CONFIG_ATH5K_DEBUG 124 125#define ATH5K_TRACE(_sc) do { \ 126 if (unlikely((_sc)->debug.level & ATH5K_DEBUG_TRACE)) \ 127 printk(KERN_DEBUG "ath5k trace %s:%d\n", __func__, __LINE__); \ --- 80 unchanged lines hidden --- |