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