blob: b17fb662937a873ffeaf83fe41be78699e470b9a [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -07003 *
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/*============================================================================
23Copyright (c) 2007 QUALCOMM Incorporated.
24All Rights Reserved.
25Qualcomm Confidential and Proprietary
26
27logDump.h
28
29Provides api's for dump commands.
30
31Author: Santosh Mandiganal
32Date: 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
42typedef char * (*tpFunc)(tpAniSirGlobal, tANI_U32, tANI_U32, tANI_U32, tANI_U32, char *);
43
44typedef struct sDumpFuncEntry {
45 tANI_U32 id;
46 char *description;
47 tpFunc func;
48} tDumpFuncEntry;
49
50typedef struct sDumpModuleEntry {
51 tANI_U32 mindumpid;
52 tANI_U32 maxdumpid;
53 tANI_U32 nItems;
54 tDumpFuncEntry *dumpTable;
55} tDumpModuleEntry;
56
57typedef struct sRegList {
58 tANI_U32 addr;
59 char *name;
60} tLogdRegList;
61
62int log_sprintf(tpAniSirGlobal pMac, char *pBuf, char *fmt, ... );
63
64char *
65dump_thread_info( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
66
67char *
68dump_log_level_set( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
69
70char *
71dump_cfg_set( tpAniSirGlobal pMac, tANI_U32 arg1,
72 tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
73
74char *
75dump_cfg_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2,
76 tANI_U32 arg3, tANI_U32 arg4, char *p);
77
78char *
79dump_cfg_group_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2,
80 tANI_U32 arg3, tANI_U32 arg4, char *p);
81
82void logDumpRegisterTable( tpAniSirGlobal pMac, tDumpFuncEntry *pEntry,
83 tANI_U32 nItems );
84
85
86void logDumpInit(tpAniSirGlobal pMac);
87
88#endif /* __LOGDUMP_H__ */