btdrv_common.c
18.6 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
/*******************************************************************************
*
* Filename:
* ---------
* Btdrv_common.c
*
* 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!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
//define wrapper for 6261 brother chip
#if defined(MT2501) || defined(MT2502)
#ifndef MT6261
#define MT6261 1
#endif
#endif
#if defined(__BTMODULE_MT2501__) || defined(__BTMODULE_MT2502__)
#ifndef __BTMODULE_MT6261__
#define __BTMODULE_MT6261__ 1
#endif
#endif
//define finish
#include "btdrv_types.h"
#include "btdrv_common.h"
#include "nvram_common_defs.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Combination chip support
////////////////////////////////////////////////////////////////////////////////////////////////////////////
#if (defined (__BTMODULE_MT6612__) && defined (__BTMODULE_MT6622__) && defined(__BTMODULE_MT6626__))
BtStatus (*GORM_Init)(void) = GORM_Init_MT6612_22_26;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6612_22_26;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6612_22_26;
#elif (defined (__BTMODULE_MT6612__) && defined (__BTMODULE_MT6622__))
BtStatus (*GORM_Init)(void) = GORM_Init_MT6612_22;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6612_22;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6612_22;
#elif (defined (__BTMODULE_MT6612__) && defined(__BTMODULE_MT6626__))
BtStatus (*GORM_Init)(void) = GORM_Init_MT6612_26;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6612_26;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6612_26;
#elif (defined (__BTMODULE_MT6622__) && defined(__BTMODULE_MT6626__))
BtStatus (*GORM_Init)(void) = GORM_Init_MT6622_26;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6622_26;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6622_26;
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Single chip support
////////////////////////////////////////////////////////////////////////////////////////////////////////////
#elif defined (__BTMODULE_MT6601__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6601;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6601;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6601;
#elif defined (__BTMODULE_MT6611__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6611;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6611;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6611;
#elif defined (__BTMODULE_MT6236__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6236;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6236;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6236;
#elif defined (__BTMODULE_MT6255__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6255;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6255;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6255;
#elif defined (__BTMODULE_MT6256__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6256;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6256;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6256;
#elif defined (__BTMODULE_MT6276__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6276;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6276;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6276;
#elif defined (__BTMODULE_MT6250__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6250;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6250;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6250;
#elif defined (__BTMODULE_MT6260__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6260;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6260;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6260;
#elif defined (__BTMODULE_MT6261__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6261;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6261;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6261;
#elif defined (__BTMODULE_MT6612__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6612;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6612;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6612;
#elif defined (__BTMODULE_MT6622__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6622;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6622;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6622;
#elif defined (__BTMODULE_MT6626__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6626;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6626;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6626;
#elif defined (__BTMODULE_MT6616__)
BtStatus (*GORM_Init)(void) = GORM_Init_MT6616;
BtStatus (*GORM_Shutdown)(void) = GORM_Shutdown_MT6616;
void (*GORM_InitEventHandler)(U8 Event,HciCallbackParms * Parms) = GORM_InitEventHandler_MT6616;
#else
#error "MTK BT Chip not supported"
#endif
#if (defined (__BTMODULE_MT6616__) && (!defined (__MT6616_NO_STP__)))
kal_uint8 g_MT6616_NO_STP = 0;
#else
kal_uint8 g_MT6616_NO_STP = 1; //default
#endif
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
//For patch optimize
/////////////////////////////////////////////////////////////////////////////////////////////
#if (defined (__BTMODULE_MT6612__) && defined (__BTMODULE_MT6622__) && defined(__BTMODULE_MT6626__))
sHciScriptElement* Get_MT6612_22_26_Init_Script()
{
extern sHciScriptElement mt6612_22_26_init_script[1];
return mt6612_22_26_init_script;
}
#else
sHciScriptElement* Get_MT6612_22_26_Init_Script()
{
return NULL;
}
#endif
#if (defined (__BTMODULE_MT6612__) && defined (__BTMODULE_MT6622__))
sHciScriptElement* Get_MT6612_22_Init_Script()
{
extern sHciScriptElement mt6612_22_init_script[1];
return mt6612_22_init_script;
}
#else
sHciScriptElement* Get_MT6612_22_Init_Script()
{
return NULL;
}
#endif
#if (defined (__BTMODULE_MT6612__) && defined(__BTMODULE_MT6626__))
sHciScriptElement* Get_MT6612_26_Init_Script()
{
extern sHciScriptElement mt6612_26_init_script[1];
return mt6612_26_init_script;
}
#else
sHciScriptElement* Get_MT6612_26_Init_Script()
{
return NULL;
}
#endif
#if (defined (__BTMODULE_MT6622__) && defined(__BTMODULE_MT6626__))
sHciScriptElement* Get_MT6622_26_Init_Script()
{
extern sHciScriptElement mt6622_26_init_script[1];
return mt6622_26_init_script;
}
#else
sHciScriptElement* Get_MT6622_26_Init_Script()
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6601__)
sHciScriptElement* Get_MT6601_Init_Script()
{
extern sHciScriptElement mt6601_init_script[1];
return mt6601_init_script;
}
sHciScriptElement* Get_MT6601_E3_Script()
{
extern sHciScriptElement mt6601_e3_script[1];
return mt6601_e3_script;
}
sHciScriptElement* Get_MT6601_E5_Script()
{
extern sHciScriptElement mt6601_e5_script[1];
return mt6601_e5_script;
}
t_version_info* Get_MT6601_Str_gorm_version(void)
{
extern t_version_info MT6601_Str_gorm_version[1];
return MT6601_Str_gorm_version;
}
#else
sHciScriptElement* Get_MT6601_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6601_E3_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6601_E5_Script()
{
return NULL;
}
t_version_info* Get_MT6601_Str_gorm_version(void)
{
return NULL;
}
#endif
#if ((!defined(__BTMODULE_MT6601__)) && (!defined(__BTMODULE_MT6612__)) && (!defined(__BTMODULE_MT6622__)) && (!defined(__BTMODULE_MT6626__)))
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_CH;
return BT_CUSTOM_PTA_WIFI_CH;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_HB;
return BT_CUSTOM_PTA_WIFI_HB;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING()
{
extern kal_uint8 BT_CUSTOM_PTA_SETTING[10];
return BT_CUSTOM_PTA_SETTING;
}
#else
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH()
{
return 0;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB()
{
return 0;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING()
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6611__)
sHciScriptElement* Get_MT6611_Init_Script()
{
extern sHciScriptElement mt6611_init_script[1];
return mt6611_init_script;
}
sHciScriptElement* Get_MT6611_No_Patch_Script()
{
extern sHciScriptElement mt6611_no_patch_script[1];
return mt6611_no_patch_script;
}
sHciScriptElement* Get_MT6611_E2_Script()
{
extern sHciScriptElement mt6611_e2_script[1];
return mt6611_e2_script;
}
sHciScriptElement* Get_MT6611B_E3_Script()
{
extern sHciScriptElement mt6611b_e3_script[1];
return mt6611b_e3_script;
}
sHciScriptElement* Get_MT6611A_Script()
{
extern sHciScriptElement mt6611a_script[1];
return mt6611a_script;
}
sHciScriptElement* Get_MT6611B_E1_Script()
{
extern sHciScriptElement mt6611b_e1_script[1];
return mt6611b_e1_script;
}
t_version_info* Get_MT6611_Str_gorm_version(void)
{
extern t_version_info MT6611_Str_gorm_version[1];
return MT6611_Str_gorm_version;
}
#else
sHciScriptElement* Get_MT6611_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6611_No_Patch_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6611_E2_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6611B_E3_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6611A_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6611B_E1_Script()
{
return NULL;
}
t_version_info* Get_MT6611_Str_gorm_version(void)
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6612__)
sHciScriptElement* Get_MT6612_Init_Script()
{
extern sHciScriptElement mt6612_init_script[1];
return mt6612_init_script;
}
sHciScriptElement* Get_MT6612_No_Patch_Script()
{
extern sHciScriptElement mt6612_no_patch_script[1];
return mt6612_no_patch_script;
}
sHciScriptElement* Get_MT6612_E2_Script()
{
extern sHciScriptElement mt6612_e2_script[1];
return mt6612_e2_script;
}
t_version_info* Get_MT6612_Str_gorm_version(void)
{
extern t_version_info MT6612_Str_gorm_version[1];
return MT6612_Str_gorm_version;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6612()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_CH_6612;
return BT_CUSTOM_PTA_WIFI_CH_6612;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6612()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_HB_6612;
return BT_CUSTOM_PTA_WIFI_HB_6612;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6612()
{
extern kal_uint8 BT_CUSTOM_PTA_SETTING_6612[10];
return BT_CUSTOM_PTA_SETTING_6612;
}
#else
sHciScriptElement* Get_MT6612_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6612_No_Patch_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6612_E2_Script()
{
return NULL;
}
t_version_info* Get_MT6612_Str_gorm_version(void)
{
return NULL;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6612()
{
return 0;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6612()
{
return 0;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6612()
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6622__)
sHciScriptElement* Get_MT6622_Init_Script()
{
extern sHciScriptElement mt6622_init_script[1];
return mt6622_init_script;
}
sHciScriptElement* Get_MT6622_No_Patch_Script()
{
extern sHciScriptElement mt6622_no_patch_script[1];
return mt6622_no_patch_script;
}
sHciScriptElement* Get_MT6622_E1_Script()
{
extern sHciScriptElement mt6622_e1_script[1];
return mt6622_e1_script;
}
sHciScriptElement* Get_MT6622_E2_Script()
{
extern sHciScriptElement mt6622_e2_script[1];
return mt6622_e2_script;
}
sHciScriptElement* Get_MT6622_EO_Script()
{
extern sHciScriptElement mt6622_eo_script[1];
return mt6622_eo_script;
}
t_version_info* Get_MT6622_Str_gorm_version(void)
{
extern t_version_info MT6622_Str_gorm_version[1];
return MT6622_Str_gorm_version;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6622()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_CH_6622;
return BT_CUSTOM_PTA_WIFI_CH_6622;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6622()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_HB_6622;
return BT_CUSTOM_PTA_WIFI_HB_6622;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6622()
{
extern kal_uint8 BT_CUSTOM_PTA_SETTING_6622[10];
return BT_CUSTOM_PTA_SETTING_6622;
}
#else
sHciScriptElement* Get_MT6622_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6622_No_Patch_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6622_E1_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6622_E2_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6622_EO_Script()
{
return NULL;
}
t_version_info* Get_MT6622_Str_gorm_version(void)
{
return NULL;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6622()
{
return 0;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6622()
{
return 0;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6622()
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6626__)
sHciScriptElement* Get_MT6626_Init_Script()
{
extern sHciScriptElement mt6626_init_script[1];
return mt6626_init_script;
}
sHciScriptElement* Get_MT6626_No_Patch_Script()
{
extern sHciScriptElement mt6626_no_patch_script[1] ;
return mt6626_no_patch_script;
}
sHciScriptElement* Get_MT6626_E1_Script()
{
extern sHciScriptElement mt6626_e1_script[1];
return mt6626_e1_script;
}
sHciScriptElement* Get_MT6626_EO_Script()
{
extern sHciScriptElement mt6626_eo_script[1];
return mt6626_eo_script;
}
t_version_info* Get_MT6626_Str_gorm_version(void)
{
extern t_version_info MT6626_Str_gorm_version[1];
return MT6626_Str_gorm_version;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6626()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_CH_6626;
return BT_CUSTOM_PTA_WIFI_CH_6626;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6626()
{
extern kal_uint8 BT_CUSTOM_PTA_WIFI_HB_6626;
return BT_CUSTOM_PTA_WIFI_HB_6626;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6626()
{
extern kal_uint8 BT_CUSTOM_PTA_SETTING_6626[10];
return BT_CUSTOM_PTA_SETTING_6626;
}
#else
sHciScriptElement* Get_MT6626_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6626_No_Patch_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6626_E1_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6626_EO_Script()
{
return NULL;
}
t_version_info* Get_MT6626_Str_gorm_version(void)
{
return NULL;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_CH_6626()
{
return 0;
}
kal_uint8 Get_BT_CUSTOM_PTA_WIFI_HB_6626()
{
return 0;
}
kal_uint8* Get_BT_CUSTOM_PTA_SETTING_6626()
{
return NULL;
}
#endif
#if defined (__BTMODULE_MT6616__)
sHciScriptElement* Get_MT6616_Init_Script()
{
extern sHciScriptElement mt6616_init_script[1];
return mt6616_init_script;
}
sHciScriptElement* Get_MT6616_No_Patch_Script()
{
extern sHciScriptElement mt6616_no_patch_script[1];
return mt6616_no_patch_script;
}
sHciScriptElement* Get_MT6616_E1_Script()
{
extern sHciScriptElement mt6616_e1_script[1];
return mt6616_e1_script;
}
sHciScriptElement* Get_MT6616_E2_Script()
{
extern sHciScriptElement mt6616_e2_script[1];
return mt6616_e2_script;
}
t_version_info* Get_MT6616_Str_gorm_version(void)
{
extern t_version_info MT6616_Str_gorm_version[1];
return MT6616_Str_gorm_version;
}
#else
sHciScriptElement* Get_MT6616_Init_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6616_No_Patch_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6616_E1_Script()
{
return NULL;
}
sHciScriptElement* Get_MT6616_E2_Script()
{
return NULL;
}
t_version_info* Get_MT6616_Str_gorm_version(void)
{
return NULL;
}
#endif
/////////////////////////////////////////////////////////////////////////////////////////////
#if defined(__BTMODULE_MT6626__)
kal_uint8 BtRadio_Power_Handler_Force_Reset(kal_uint8 sys)
{
extern kal_uint8 BtRadio_Power_Handler_Force_Reset_MT6626(kal_uint8 sys);
return BtRadio_Power_Handler_Force_Reset_MT6626(sys);
}
#else
kal_uint8 BtRadio_Power_Handler_Force_Reset(kal_uint8 sys)
{
return 1;
}
#endif
/////////////////////////////////////////////////////////////////////////////////////////////
//For build error resolved
/////////////////////////////////////////////////////////////////////////////////////////////
#if defined (__BT_AUTO_DETECT_SUPPORT__)
kal_uint16 g_NVRAM_BT_AUTO_DETECT_LID = NVRAM_EF_BT_AUTO_DETECT_SETTING_LID;
kal_uint32 g_NVRAM_BT_AUTO_DETECT_SIZE = NVRAM_EF_BT_AUTO_DETECT_SETTING_SIZE;
#else
kal_uint16 g_NVRAM_BT_AUTO_DETECT_LID = 0;
kal_uint32 g_NVRAM_BT_AUTO_DETECT_SIZE = 0;
#endif
#if (defined (__WMT_SUPPORT__) && defined (__BT_AUTO_DETECT_SUPPORT__))
#else
kal_bool g_wmt_power_on_init_start = KAL_FALSE;
kal_bool g_wmt_power_on_init_end = KAL_FALSE;
#endif
#if (!defined (__BTMODULE_MT6616__))
kal_uint8* wmt_patch_data = NULL;
int wmt_patch_size = 0;
kal_bool g_wmt_reinit_status = KAL_FALSE;
kal_bool wmt_ext_power_on_hdlr(kal_uint8 type)
{
return KAL_TRUE;
}
kal_bool wmt_ext_power_off_hdlr(kal_uint8 type)
{
return KAL_TRUE;
}
#endif
/////////////////////////////////////////////////////////////////////////////////////////////