blob: f7b9cc8cbd56c1e5cac5f33c4be790f3accba47d [file] [log] [blame]
Jeff Johnsone7245742012-09-05 17:12:55 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnsone7245742012-09-05 17:12:55 -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#ifdef FEATURE_OEM_DATA_SUPPORT
23
24/** ------------------------------------------------------------------------- *
25 ------------------------------------------------------------------------- *
26
27
28 \file oemDataInternal.h
29
30 Exports and types for the Common OEM DATA REQ/RSP Module interfaces.
31
32 Copyright (C) 2010 Qualcomm Inc.
33
34 ========================================================================== */
35
36
37#ifndef __OEM_DATA_INTERNAL_H__
38#define __OEM_DATA_INTERNAL_H__
39
40#include "palTimer.h"
41#include "csrSupport.h"
42#include "vos_nvitem.h"
43#include "wlan_qct_tl.h"
44
45#include "oemDataApi.h"
46
47typedef struct tagOemDataStruct
48{
49 tANI_U32 nextOemReqId; //a global req id
50 tANI_BOOLEAN oemDataReqActive; //indicates that currently a request has been posted and
51 //waiting for the response
52 oemData_OemDataReqCompleteCallback callback; //callback function pointer for returning the response
53 void* pContext; //context of the original caller
54 tANI_U32 oemDataReqID; //original request ID
55 tOemDataRsp* pOemDataRsp; //response
56 tOemDataReqConfig oemDataReqConfig; //current oem data request
57 tANI_U8 sessionId; //Session on which oem data req is active
58} tOemDataStruct;
59
60typedef struct tagOemDataCmd
61{
62 tANI_U32 oemDataReqID;
63 oemData_OemDataReqCompleteCallback callback;
64 void* pContext;
65 tOemDataReq oemDataReq;
66} tOemDataCmd;
67
68#endif //__OEM_DATA_INTERNAL_H__
69
70#endif //FEATURE_OEM_DATA_SUPPORT