Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | c9a03d2 | 2014-02-19 00:32:59 -0800 | [diff] [blame] | 2 | * 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 Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | c9a03d2 | 2014-02-19 00:32:59 -0800 | [diff] [blame] | 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 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 28 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 29 | |
| 30 | /** ------------------------------------------------------------------------- * |
| 31 | ------------------------------------------------------------------------- * |
| 32 | |
| 33 | |
| 34 | \file oemDataInternal.h |
| 35 | |
| 36 | Exports and types for the Common OEM DATA REQ/RSP Module interfaces. |
| 37 | |
| 38 | Copyright (C) 2010 Qualcomm Inc. |
| 39 | |
| 40 | ========================================================================== */ |
| 41 | |
| 42 | |
| 43 | #ifndef __OEM_DATA_INTERNAL_H__ |
| 44 | #define __OEM_DATA_INTERNAL_H__ |
| 45 | |
| 46 | #include "palTimer.h" |
| 47 | #include "csrSupport.h" |
| 48 | #include "vos_nvitem.h" |
| 49 | #include "wlan_qct_tl.h" |
| 50 | |
| 51 | #include "oemDataApi.h" |
| 52 | |
| 53 | typedef struct tagOemDataStruct |
| 54 | { |
| 55 | tANI_U32 nextOemReqId; //a global req id |
| 56 | tANI_BOOLEAN oemDataReqActive; //indicates that currently a request has been posted and |
| 57 | //waiting for the response |
| 58 | oemData_OemDataReqCompleteCallback callback; //callback function pointer for returning the response |
| 59 | void* pContext; //context of the original caller |
| 60 | tANI_U32 oemDataReqID; //original request ID |
| 61 | tOemDataRsp* pOemDataRsp; //response |
| 62 | tOemDataReqConfig oemDataReqConfig; //current oem data request |
| 63 | tANI_U8 sessionId; //Session on which oem data req is active |
| 64 | } tOemDataStruct; |
| 65 | |
| 66 | typedef struct tagOemDataCmd |
| 67 | { |
| 68 | tANI_U32 oemDataReqID; |
| 69 | oemData_OemDataReqCompleteCallback callback; |
| 70 | void* pContext; |
| 71 | tOemDataReq oemDataReq; |
| 72 | } tOemDataCmd; |
| 73 | |
| 74 | #endif //__OEM_DATA_INTERNAL_H__ |
| 75 | |
| 76 | #endif //FEATURE_OEM_DATA_SUPPORT |