blob: f2bb0a214aacd59764a5f83744ad84ef4dab3cf2 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -08002 * 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.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42/*============================================================================
43Copyright (c) 2007 QUALCOMM Incorporated.
44All Rights Reserved.
45Qualcomm Confidential and Proprietary
46
47logDump.h
48
49Provides api's for dump commands.
50
51Author: Santosh Mandiganal
52Date: 04/06/2008
53============================================================================*/
54
55
56#ifndef __LOGDUMP_H__
57#define __LOGDUMP_H__
58
59#define MAX_DUMP_CMD 999
60#define MAX_DUMP_TABLE_ENTRY 10
61
62typedef char * (*tpFunc)(tpAniSirGlobal, tANI_U32, tANI_U32, tANI_U32, tANI_U32, char *);
63
64typedef struct sDumpFuncEntry {
65 tANI_U32 id;
66 char *description;
67 tpFunc func;
68} tDumpFuncEntry;
69
70typedef struct sDumpModuleEntry {
71 tANI_U32 mindumpid;
72 tANI_U32 maxdumpid;
73 tANI_U32 nItems;
74 tDumpFuncEntry *dumpTable;
75} tDumpModuleEntry;
76
77typedef struct sRegList {
78 tANI_U32 addr;
79 char *name;
80} tLogdRegList;
81
82int log_sprintf(tpAniSirGlobal pMac, char *pBuf, char *fmt, ... );
83
84char *
85dump_thread_info( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
86
87char *
88dump_log_level_set( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
89
90char *
91dump_cfg_set( tpAniSirGlobal pMac, tANI_U32 arg1,
92 tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
93
94char *
95dump_cfg_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2,
96 tANI_U32 arg3, tANI_U32 arg4, char *p);
97
98char *
99dump_cfg_group_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2,
100 tANI_U32 arg3, tANI_U32 arg4, char *p);
101
102void logDumpRegisterTable( tpAniSirGlobal pMac, tDumpFuncEntry *pEntry,
103 tANI_U32 nItems );
104
105
106void logDumpInit(tpAniSirGlobal pMac);
107
108#endif /* __LOGDUMP_H__ */