blob: 77cfc488d861ed34a65acc21ae6864c4b2580b96 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
AnjaneeDevi Kapparapu24b52ff2014-02-18 18:44:02 -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.
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -080020 */
AnjaneeDevi Kapparapu24b52ff2014-02-18 18:44:02 -080021
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 Johnson295189b2012-06-20 16:38:30 -070028/*============================================================================
Jeff Johnson295189b2012-06-20 16:38:30 -070029
30logDump.h
31
32Provides api's for dump commands.
33
34Author: Santosh Mandiganal
35Date: 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
45typedef char * (*tpFunc)(tpAniSirGlobal, tANI_U32, tANI_U32, tANI_U32, tANI_U32, char *);
46
47typedef struct sDumpFuncEntry {
48 tANI_U32 id;
49 char *description;
50 tpFunc func;
51} tDumpFuncEntry;
52
53typedef struct sDumpModuleEntry {
54 tANI_U32 mindumpid;
55 tANI_U32 maxdumpid;
56 tANI_U32 nItems;
57 tDumpFuncEntry *dumpTable;
58} tDumpModuleEntry;
59
60typedef struct sRegList {
61 tANI_U32 addr;
62 char *name;
63} tLogdRegList;
64
65int log_sprintf(tpAniSirGlobal pMac, char *pBuf, char *fmt, ... );
66
67char *
Jeff Johnson295189b2012-06-20 16:38:30 -070068dump_log_level_set( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
69
70char *
Jeff Johnsond7b07082013-03-07 10:40:56 -080071dump_cfg_set( tpAniSirGlobal pMac, tANI_U32 arg1,
Jeff Johnson295189b2012-06-20 16:38:30 -070072 tANI_U32 arg2, tANI_U32 arg3, tANI_U32 arg4, char *p);
73
74char *
Jeff Johnsond7b07082013-03-07 10:40:56 -080075dump_cfg_get( tpAniSirGlobal pMac, tANI_U32 arg1, tANI_U32 arg2,
Jeff Johnson295189b2012-06-20 16:38:30 -070076 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
Jeff Johnsond7b07082013-03-07 10:40:56 -080082void logDumpRegisterTable( tpAniSirGlobal pMac, tDumpFuncEntry *pEntry,
Jeff Johnson295189b2012-06-20 16:38:30 -070083 tANI_U32 nItems );
84
85
86void logDumpInit(tpAniSirGlobal pMac);
87
88#endif /* __LOGDUMP_H__ */