Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved. |
| 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. |
Gopichand Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 28 | /*============================================================================ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 29 | |
| 30 | logDump.h |
| 31 | |
| 32 | Provides api's for dump commands. |
| 33 | |
| 34 | Author: Santosh Mandiganal |
| 35 | Date: 04/06/2008 |
| 36 | ============================================================================*/ |
| 37 | |
| 38 | |
| 39 | #ifndef __LOGDUMP_H__ |
| 40 | #define __LOGDUMP_H__ |
| 41 | |
| 42 | #define MAX_DUMP_CMD 999 |
| 43 | #define MAX_DUMP_TABLE_ENTRY 10 |
| 44 | |
| 45 | typedef char * (*tpFunc)(tpAniSirGlobal, tANI_U32, tANI_U32, tANI_U32, tANI_U32, char *); |
| 46 | |
| 47 | typedef struct sDumpFuncEntry { |
| 48 | tANI_U32 id; |
| 49 | char *description; |
| 50 | tpFunc func; |
| 51 | } tDumpFuncEntry; |
| 52 | |
| 53 | typedef struct sDumpModuleEntry { |
| 54 | tANI_U32 mindumpid; |
| 55 | tANI_U32 maxdumpid; |
| 56 | tANI_U32 nItems; |
| 57 | tDumpFuncEntry *dumpTable; |
| 58 | } tDumpModuleEntry; |
| 59 | |
| 60 | typedef struct sRegList { |
| 61 | tANI_U32 addr; |
| 62 | char *name; |
| 63 | } tLogdRegList; |
| 64 | |
| 65 | int log_sprintf(tpAniSirGlobal pMac, char *pBuf, char *fmt, ... ); |
| 66 | |
| 67 | char * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 68 | dump_log_level_set( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 69 | |
| 70 | char * |
Jeff Johnson | d7b0708 | 2013-03-07 10:40:56 -0800 | [diff] [blame] | 71 | dump_cfg_set( tpAniSirGlobal pMac, tANI_U32 arg1, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 72 | tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p); |
| 73 | |
| 74 | char * |
Jeff Johnson | d7b0708 | 2013-03-07 10:40:56 -0800 | [diff] [blame] | 75 | dump_cfg_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 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 | |
Jeff Johnson | d7b0708 | 2013-03-07 10:40:56 -0800 | [diff] [blame] | 82 | void logDumpRegisterTable( tpAniSirGlobal pMac, tDumpFuncEntry *pEntry, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 83 | tANI_U32 nItems ); |
| 84 | |
| 85 | |
| 86 | void logDumpInit(tpAniSirGlobal pMac); |
| 87 | |
| 88 | #endif /* __LOGDUMP_H__ */ |