Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * |
| 24 | * Airgo Networks, Inc proprietary. All rights reserved. |
| 25 | * This file schDebug.h contains some debug macros. |
| 26 | * |
| 27 | * Author: Sandesh Goel |
| 28 | * Date: 02/25/02 |
| 29 | * History:- |
| 30 | * Date Modified by Modification Information |
| 31 | * -------------------------------------------------------------------- |
| 32 | * |
| 33 | */ |
| 34 | |
| 35 | #ifndef __SCH_DEBUG_H__ |
| 36 | #define __SCH_DEBUG_H__ |
| 37 | |
| 38 | #include "utilsApi.h" |
| 39 | #ifdef FEATURE_WLAN_NON_INTEGRATED_SOC |
| 40 | #include "halCommonApi.h" |
| 41 | #endif |
| 42 | #include "sirDebug.h" |
| 43 | |
| 44 | |
| 45 | |
| 46 | void schLog(tpAniSirGlobal pMac, tANI_U32 loglevel, const char *pString,...) ; |
| 47 | |
| 48 | // ------------------------------------------------------------- |
| 49 | /** |
| 50 | * |
| 51 | */ |
| 52 | |
| 53 | #ifdef SCH_DEBUG_STATS |
| 54 | inline void schClass::schTrace(tSchTrace event, tANI_U32 arg) |
| 55 | { |
| 56 | if (gSchFreezeDump) return; |
| 57 | if ((tANI_U32)event >= traceLevel) return; |
| 58 | |
| 59 | traceBuf[curTrace].event = event; |
| 60 | traceBuf[curTrace].arg = arg; |
| 61 | traceBuf[curTrace].timestamp = halGetTsfLow(pMac); |
| 62 | curTrace = (curTrace+1)%SCH_TRACE_BUF_SIZE; |
| 63 | } |
| 64 | #endif |
| 65 | |
| 66 | #endif |