btdrv_common.h
6.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/*******************************************************************************
*
* Filename:
* ---------
* Btdrv_common.h
*
* Project:
* --------
* MAUI MTK Bluetooth Chip
*
* Description:
* ------------
* This file contains functions export to customer for chip selection
*
* Author:
* -------
* -------
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
*
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#ifndef BTDRV_COMMON_H
#define BTDRV_COMMON_H
#include "btdrv_types.h"
typedef XaStatus BtStatus;
typedef BtStatus (*sHciCmdFunc)( void );
typedef BtStatus (*sHciEvtFunc)( HciEvent * );
typedef struct {
sHciCmdFunc command_func;
sHciEvtFunc event_handler;
} sHciScriptElement;
extern BtStatus GORM_Init_MT6601(void);
extern BtStatus GORM_Init_MT6611(void);
extern BtStatus GORM_Init_MT6612(void);
extern BtStatus GORM_Init_MT6616(void);
extern BtStatus GORM_Init_MT6622(void);
extern BtStatus GORM_Init_MT6626(void);
extern BtStatus GORM_Init_MT6236(void);
extern BtStatus GORM_Init_MT6255(void);
extern BtStatus GORM_Init_MT6256(void);
extern BtStatus GORM_Init_MT6276(void);
extern BtStatus GORM_Init_MT6250(void);
extern BtStatus GORM_Init_MT6260(void);
extern BtStatus GORM_Init_MT6261(void);
extern BtStatus GORM_Init_MT6612_22_26(void);
extern BtStatus GORM_Init_MT6612_22(void);
extern BtStatus GORM_Init_MT6612_26(void);
extern BtStatus GORM_Init_MT6622_26(void);
extern BtStatus GORM_Shutdown_MT6601(void);
extern BtStatus GORM_Shutdown_MT6611(void);
extern BtStatus GORM_Shutdown_MT6612(void);
extern BtStatus GORM_Shutdown_MT6616(void);
extern BtStatus GORM_Shutdown_MT6622(void);
extern BtStatus GORM_Shutdown_MT6626(void);
extern BtStatus GORM_Shutdown_MT6236(void);
extern BtStatus GORM_Shutdown_MT6255(void);
extern BtStatus GORM_Shutdown_MT6256(void);
extern BtStatus GORM_Shutdown_MT6276(void);
extern BtStatus GORM_Shutdown_MT6250(void);
extern BtStatus GORM_Shutdown_MT6260(void);
extern BtStatus GORM_Shutdown_MT6261(void);
extern BtStatus GORM_Shutdown_MT6612_22_26(void);
extern BtStatus GORM_Shutdown_MT6612_22(void);
extern BtStatus GORM_Shutdown_MT6612_26(void);
extern BtStatus GORM_Shutdown_MT6622_26(void);
extern void GORM_InitEventHandler_MT6601(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6611(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6612(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6616(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6622(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6626(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6236(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6255(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6256(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6276(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6250(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6260(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6261(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6612_22_26(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6612_22(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6612_26(U8 Event, HciCallbackParms *Parms);
extern void GORM_InitEventHandler_MT6622_26(U8 Event, HciCallbackParms *Parms);
extern BtStatus (*GORM_Init)(void);
extern BtStatus (*GORM_Shutdown)(void);
extern void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms);
sHciScriptElement* Get_MT6601_Init_Script(void);
sHciScriptElement* Get_MT6601_E3_Script(void);
sHciScriptElement* Get_MT6601_E5_Script(void);
t_version_info* Get_MT6601_Str_gorm_version(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB(void);
kal_uint8* Get_BT_CUSTOM_PTA_SETTING(void);
sHciScriptElement* Get_MT6611_Init_Script(void);
sHciScriptElement* Get_MT6611_No_Patch_Script(void);
sHciScriptElement* Get_MT6611_E2_Script(void);
sHciScriptElement* Get_MT6611B_E3_Script(void);
sHciScriptElement* Get_MT6611A_Script(void);
sHciScriptElement* Get_MT6611B_E1_Script(void);
t_version_info* Get_MT6611_Str_gorm_version(void);
sHciScriptElement* Get_MT6612_Init_Script(void);
sHciScriptElement* Get_MT6612_No_Patch_Script(void);
sHciScriptElement* Get_MT6612_E2_Script(void);
t_version_info* Get_MT6612_Str_gorm_version(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6612(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6612(void);
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6612(void);
sHciScriptElement* Get_MT6622_Init_Script(void);
sHciScriptElement* Get_MT6622_No_Patch_Script(void);
sHciScriptElement* Get_MT6622_E1_Script(void);
sHciScriptElement* Get_MT6622_E2_Script(void);
sHciScriptElement* Get_MT6622_EO_Script(void);
t_version_info* Get_MT6622_Str_gorm_version(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6622(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6622(void);
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6622(void);
sHciScriptElement* Get_MT6626_Init_Script(void);
sHciScriptElement* Get_MT6626_No_Patch_Script(void);
sHciScriptElement* Get_MT6626_E1_Script(void);
sHciScriptElement* Get_MT6626_EO_Script(void);
t_version_info* Get_MT6626_Str_gorm_version(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6626(void);
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6626(void);
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6626(void);
sHciScriptElement* Get_MT6616_Init_Script(void);
sHciScriptElement* Get_MT6616_No_Patch_Script(void);
sHciScriptElement* Get_MT6616_E1_Script(void);
sHciScriptElement* Get_MT6616_E2_Script(void);
t_version_info* Get_MT6616_Str_gorm_version(void);
sHciScriptElement* Get_MT6612_22_26_Init_Script(void);
sHciScriptElement* Get_MT6612_22_Init_Script(void);
sHciScriptElement* Get_MT6612_26_Init_Script(void);
sHciScriptElement* Get_MT6622_26_Init_Script(void);
extern kal_uint8 g_MT6616_NO_STP;
extern kal_uint16 g_NVRAM_BT_AUTO_DETECT_LID;
extern kal_uint32 g_NVRAM_BT_AUTO_DETECT_SIZE;
kal_uint8 BtRadio_Power_Handler_Force_Reset(kal_uint8 sys);
#endif