Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 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 | #ifndef WLAN_QCT_WLANBAP_API_EXT_H |
| 23 | #define WLAN_QCT_WLANBAP_API_EXT_H |
| 24 | |
| 25 | /*=========================================================================== |
| 26 | |
| 27 | W L A N B T - A M P P A L L A Y E R |
| 28 | E X T E R N A L A P I |
| 29 | |
| 30 | |
| 31 | DESCRIPTION |
| 32 | This file contains the external APIs used by the wlan BT-AMP PAL layer |
| 33 | module. |
| 34 | |
| 35 | |
| 36 | Copyright (c) 2008 QUALCOMM Incorporated. All Rights Reserved. |
| 37 | Qualcomm Confidential and Proprietary |
| 38 | ===========================================================================*/ |
| 39 | |
| 40 | |
| 41 | /*=========================================================================== |
| 42 | |
| 43 | EDIT HISTORY FOR FILE |
| 44 | |
| 45 | |
| 46 | This section contains comments describing changes made to the module. |
| 47 | Notice that changes are listed in reverse chronological order. |
| 48 | |
| 49 | |
| 50 | $Header: /cygdrive/e/Builds/M7201JSDCAAPAD52240B/WM/platform/msm7200/Src/Drivers/SD/ClientDrivers/WLAN/QCT/CORE/BAP/src/bapApiExt.h,v 1.1 2008/11/21 20:29:13 jzmuda Exp jzmuda $ $DateTime: $ $Author: jzmuda $ |
| 51 | |
| 52 | |
| 53 | when who what, where, why |
| 54 | -------- --- ---------------------------------------------------------- |
| 55 | 10/22/08 jez Created module. |
| 56 | |
| 57 | ===========================================================================*/ |
| 58 | |
| 59 | |
| 60 | |
| 61 | /*=========================================================================== |
| 62 | |
| 63 | INCLUDE FILES FOR MODULE |
| 64 | |
| 65 | ===========================================================================*/ |
| 66 | |
| 67 | /*---------------------------------------------------------------------------- |
| 68 | * Include Files |
| 69 | * -------------------------------------------------------------------------*/ |
| 70 | // Pick up all the BT-AMP internal definitions |
| 71 | // And underlying supporting types. (Including VOSS, CSR, and...) |
| 72 | #include "bapInternal.h" |
| 73 | |
| 74 | /* Pick up the SIRIUS and HAL types */ |
| 75 | // Already taken care of, above |
| 76 | //#include "sirApi.h" |
| 77 | //#include "halTypes.h" |
| 78 | |
| 79 | /* Pick up the CCM API def'n */ |
| 80 | #include "ccmApi.h" |
| 81 | |
| 82 | /*---------------------------------------------------------------------------- |
| 83 | * Preprocessor Definitions and Constants |
| 84 | * -------------------------------------------------------------------------*/ |
| 85 | #ifdef __cplusplus |
| 86 | extern "C" { |
| 87 | #endif |
| 88 | |
| 89 | |
| 90 | /*---------------------------------------------------------------------------- |
| 91 | * Defines |
| 92 | * -------------------------------------------------------------------------*/ |
| 93 | // Temporary |
| 94 | //#define BAP_DEBUG |
| 95 | |
| 96 | // How do I get BAP context from voss context? |
| 97 | //#define VOS_GET_BAP_CB(ctx) vos_get_context( VOS_MODULE_ID_BAP, ctx) |
| 98 | // How do I get halHandle from voss context? |
| 99 | //#define VOS_GET_HAL_CB(ctx) vos_get_context( VOS_MODULE_ID_HAL, ctx) |
| 100 | |
| 101 | /*---------------------------------------------------------------------------- |
| 102 | * Typedefs |
| 103 | * -------------------------------------------------------------------------*/ |
| 104 | |
| 105 | |
| 106 | /*---------------------------------------------------------------------------- |
| 107 | * External declarations for global context |
| 108 | * -------------------------------------------------------------------------*/ |
| 109 | |
| 110 | |
| 111 | /*---------------------------------------------------------------------------- |
| 112 | * Function prototypes |
| 113 | * -------------------------------------------------------------------------*/ |
| 114 | |
| 115 | /*---------------------------------------------------------------------------- |
| 116 | * Utility Function prototypes |
| 117 | * -------------------------------------------------------------------------*/ |
| 118 | |
| 119 | /*========================================================================== |
| 120 | |
| 121 | FUNCTION WLANBAP_GetCurrentChannel |
| 122 | |
| 123 | DESCRIPTION |
| 124 | Clear out all fields in the BAP context. |
| 125 | |
| 126 | DEPENDENCIES |
| 127 | |
| 128 | PARAMETERS |
| 129 | |
| 130 | IN |
| 131 | pBtampCtx: pointer to the BAP control block |
| 132 | channel: current configured channel number. |
| 133 | activeFlag: flag indicating whether there is an active link. |
| 134 | |
| 135 | RETURN VALUE |
| 136 | The result code associated with performing the operation |
| 137 | |
| 138 | VOS_STATUS_E_FAULT: pointer to return channel is NULL ; access would cause a page |
| 139 | fault |
| 140 | VOS_STATUS_SUCCESS: Everything is good :) |
| 141 | |
| 142 | SIDE EFFECTS |
| 143 | |
| 144 | ============================================================================*/ |
| 145 | VOS_STATUS |
| 146 | WLANBAP_GetCurrentChannel |
| 147 | ( |
| 148 | ptBtampContext pBtampCtx, |
| 149 | v_U32_t *channel, // return current channel here |
| 150 | v_U32_t *activeFlag // return active flag here |
| 151 | ); |
| 152 | |
| 153 | |
| 154 | #ifdef __cplusplus |
| 155 | } |
| 156 | #endif |
| 157 | |
| 158 | |
| 159 | #endif /* #ifndef WLAN_QCT_WLANBAP_API_EXT_H */ |
| 160 | |