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 | Copyright (c) 2007 QUALCOMM Incorporated. |
| 24 | All Rights Reserved. |
| 25 | Qualcomm Confidential and Proprietary |
| 26 | |
| 27 | logDump.h |
| 28 | |
| 29 | Provides api's for dump commands. |
| 30 | |
| 31 | Author: Santosh Mandiganal |
| 32 | Date: 04/06/2008 |
| 33 | ============================================================================*/ |
| 34 | |
| 35 | |
| 36 | #ifndef __LOGDUMP_H__ |
| 37 | #define __LOGDUMP_H__ |
| 38 | |
| 39 | #define MAX_DUMP_CMD 999 |
| 40 | #define MAX_DUMP_TABLE_ENTRY 10 |
| 41 | |
| 42 | typedef char * (*tpFunc)(tpAniSirGlobal, tANI_U32, tANI_U32, tANI_U32, tANI_U32, char *); |
| 43 | |
| 44 | typedef struct sDumpFuncEntry { |
| 45 | tANI_U32 id; |
| 46 | char *description; |
| 47 | tpFunc func; |
| 48 | } tDumpFuncEntry; |
| 49 | |
| 50 | typedef struct sDumpModuleEntry { |
| 51 | tANI_U32 mindumpid; |
| 52 | tANI_U32 maxdumpid; |
| 53 | tANI_U32 nItems; |
| 54 | tDumpFuncEntry *dumpTable; |
| 55 | } tDumpModuleEntry; |
| 56 | |
| 57 | typedef struct sRegList { |
| 58 | tANI_U32 addr; |
| 59 | char *name; |
| 60 | } tLogdRegList; |
| 61 | |
| 62 | int log_sprintf(tpAniSirGlobal pMac, char *pBuf, char *fmt, ... ); |
| 63 | |
| 64 | char * |
| 65 | dump_thread_info( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 66 | |
| 67 | char * |
| 68 | dump_log_level_set( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 69 | |
| 70 | char * |
| 71 | dump_cfg_set( tpAniSirGlobal pMac, tANI_U32 arg1, |
| 72 | tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 73 | |
| 74 | char * |
| 75 | dump_cfg_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, |
| 76 | tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 77 | |
| 78 | char * |
| 79 | dump_cfg_group_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, |
| 80 | tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 81 | |
| 82 | void logDumpRegisterTable( tpAniSirGlobal pMac, tDumpFuncEntry *pEntry, |
| 83 | tANI_U32 nItems ); |
| 84 | |
| 85 | |
| 86 | void logDumpInit(tpAniSirGlobal pMac); |
| 87 | |
| 88 | #endif /* __LOGDUMP_H__ */ |