blob: 0d8f4e1199f9a4448234c03bf26fd7bc90a5e183 [file] [log] [blame]
/*
* Copyright (c) 2012-2013 Qualcomm Atheros, Inc.
* All Rights Reserved.
* Qualcomm Atheros Confidential and Proprietary.
*/
/*
*
* Airgo Networks, Inc proprietary. All rights reserved.
* This is the private header file for CFG module.
*
* Author: Kevin Nguyen
* Date: 03/20/02
* History:-
* 03/20/02 Created.
* --------------------------------------------------------------------
*
*/
#ifndef __CFGPRIV_H
#define __CFGPRIV_H
#include <sirCommon.h>
#include <sirTypes.h>
#include <sirDebug.h>
#include <wniStat.h>
#include <utilsApi.h>
#include <limApi.h>
#include <schApi.h>
#include <cfgApi.h>
#include "cfgDef.h"
#include <wniCfgSta.h>
/*--------------------------------------------------------------------*/
/* CFG miscellaneous definition */
/*--------------------------------------------------------------------*/
// Function index bit mask
#define CFG_FUNC_INDX_MASK 0x7f
#define CFG_GET_FUNC_INDX(val) (val & CFG_FUNC_INDX_MASK)
// Macro to convert return code to debug string index
#define CFG_GET_DBG_INDX(val) (val - eCFG_SUCCESS - 1)
/*--------------------------------------------------------------------*/
/* Binary header structure */
/*--------------------------------------------------------------------*/
typedef struct sCfgBinHdr
{
tANI_U32 hdrInfo;
tANI_U32 controlSize;
tANI_U32 iBufSize;
tANI_U32 sBufSize;
} tCfgBinHdr, *tpCfgBinHdr;
/*--------------------------------------------------------------------*/
/* Polaris HW counter access structure */
/*--------------------------------------------------------------------*/
typedef struct
{
tANI_U32 addr;
tANI_U32 mask;
tANI_U32 shift;
} tCfgHwCnt;
#define CFG_STAT_CNT_LO_MASK 0x0000ffff
#define CFG_STAT_CNT_HI_MASK 0xffff0000
#define CFG_STAT_CNT_HI_INCR 0x00010000
/*--------------------------------------------------------------------*/
/* CFG function prototypes */
/*--------------------------------------------------------------------*/
extern void cfgSendHostMsg(tpAniSirGlobal, tANI_U16, tANI_U32, tANI_U32, tANI_U32*, tANI_U32, tANI_U32*);
#endif /* __CFGPRIV_H */