blob: 5bed155a69b80f92e22e00b13b8291a57d565a6d [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/*
23 *
24 * Airgo Networks, Inc proprietary. All rights reserved.
25 * This is the private header file for CFG module.
26 *
27 * Author: Kevin Nguyen
28 * Date: 03/20/02
29 * History:-
30 * 03/20/02 Created.
31 * --------------------------------------------------------------------
32 *
33 */
34
35#ifndef __CFGPRIV_H
36#define __CFGPRIV_H
37
38#include <sirCommon.h>
39#include <sirTypes.h>
40#include <sirDebug.h>
41#include <wniStat.h>
42#include <utilsApi.h>
43#include <limApi.h>
44#include <schApi.h>
45#include <cfgApi.h>
46#include "cfgDef.h"
47
48#if (WNI_POLARIS_FW_PRODUCT == AP)
49 #include <wniCfgAp.h>
50#else
51 #include <wniCfgSta.h>
52#endif
53
54/*--------------------------------------------------------------------*/
55/* CFG miscellaneous definition */
56/*--------------------------------------------------------------------*/
57
58// Function index bit mask
59#define CFG_FUNC_INDX_MASK 0x7f
60#define CFG_GET_FUNC_INDX(val) (val & CFG_FUNC_INDX_MASK)
61
62// Macro to convert return code to debug string index
63#define CFG_GET_DBG_INDX(val) (val - eCFG_SUCCESS - 1)
64
65
66/*--------------------------------------------------------------------*/
67/* Binary header structure */
68/*--------------------------------------------------------------------*/
69typedef struct sCfgBinHdr
70{
71 tANI_U32 hdrInfo;
72 tANI_U32 controlSize;
73 tANI_U32 iBufSize;
74 tANI_U32 sBufSize;
75} tCfgBinHdr, *tpCfgBinHdr;
76
77
78/*--------------------------------------------------------------------*/
79/* Polaris HW counter access structure */
80/*--------------------------------------------------------------------*/
81typedef struct
82{
83 tANI_U32 addr;
84 tANI_U32 mask;
85 tANI_U32 shift;
86} tCfgHwCnt;
87
88
89#define CFG_STAT_CNT_LO_MASK 0x0000ffff
90#define CFG_STAT_CNT_HI_MASK 0xffff0000
91#define CFG_STAT_CNT_HI_INCR 0x00010000
92
93/*--------------------------------------------------------------------*/
94/* CFG function prototypes */
95/*--------------------------------------------------------------------*/
96
97extern void cfgSendHostMsg(tpAniSirGlobal, tANI_U16, tANI_U32, tANI_U32, tANI_U32*, tANI_U32, tANI_U32*);
98
99
100
101
102
103
104#endif /* __CFGPRIV_H */
105
106
107
108