blob: 78769f59c229d8e18bc037748717acd2e53fa763 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2011-2015 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
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
28/*
29 *
30 * This is the private header file for CFG module.
31 *
32 * Author: Kevin Nguyen
33 * Date: 03/20/02
34 * History:-
35 * 03/20/02 Created.
36 * --------------------------------------------------------------------
37 *
38 */
39
40#ifndef __CFGPRIV_H
41#define __CFGPRIV_H
42
43#include <sir_common.h>
44#include <sir_types.h>
45#include <sir_debug.h>
46#include <utils_api.h>
47#include <lim_api.h>
48#include <sch_api.h>
49#include <cfg_api.h>
50#include "cfg_def.h"
51
52#include <wni_cfg.h>
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/* Binary header structure */
67/*--------------------------------------------------------------------*/
68typedef struct sCfgBinHdr {
69 uint32_t hdrInfo;
70 uint32_t controlSize;
71 uint32_t iBufSize;
72 uint32_t sBufSize;
73} tCfgBinHdr, *tpCfgBinHdr;
74
75/*--------------------------------------------------------------------*/
76/* Polaris HW counter access structure */
77/*--------------------------------------------------------------------*/
78
79#define CFG_STAT_CNT_LO_MASK 0x0000ffff
80#define CFG_STAT_CNT_HI_MASK 0xffff0000
81#define CFG_STAT_CNT_HI_INCR 0x00010000
82
83/*--------------------------------------------------------------------*/
84/* CFG function prototypes */
85/*--------------------------------------------------------------------*/
86
87extern void cfg_send_host_msg(tpAniSirGlobal, uint16_t, uint32_t, uint32_t,
88 uint32_t *, uint32_t, uint32_t *);
89
90#endif /* __CFGPRIV_H */