OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / hal / btc / mp_precomp.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2013 - 2017 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef __MP_PRECOMP_H__
16 #define __MP_PRECOMP_H__
17
18 #include <drv_types.h>
19 #include <hal_data.h>
20
21 #define BT_TMP_BUF_SIZE 100
22
23 #ifdef PLATFORM_LINUX
24 #define rsprintf snprintf
25 #define rstrncat(dst, src, src_size) strncat(dst, src, src_size)
26 #elif defined(PLATFORM_WINDOWS)
27 #define rsprintf sprintf_s
28 #endif
29
30 #define DCMD_Printf                     DBG_BT_INFO
31
32 #define delay_ms(ms)            rtw_mdelay_os(ms)
33
34 #ifdef bEnable
35 #undef bEnable
36 #endif
37
38 #define WPP_SOFTWARE_TRACE 0
39
40 typedef enum _BTC_MSG_COMP_TYPE {
41         COMP_COEX               = 0,
42         COMP_MAX
43 } BTC_MSG_COMP_TYPE;
44 extern u4Byte GLBtcDbgType[];
45
46 #define DBG_OFF                 0
47 #define DBG_SEC                 1
48 #define DBG_SERIOUS             2
49 #define DBG_WARNING             3
50 #define DBG_LOUD                4
51 #define DBG_TRACE               5
52
53 #ifdef CONFIG_BT_COEXIST
54 #define BT_SUPPORT              1
55 #define COEX_SUPPORT    1
56 #define HS_SUPPORT              1
57 #else
58 #define BT_SUPPORT              0
59 #define COEX_SUPPORT    0
60 #define HS_SUPPORT              0
61 #endif
62
63 /* for wifi only mode */
64 #include "hal_btcoex_wifionly.h"
65
66 #ifdef CONFIG_BT_COEXIST
67
68 struct wifi_only_cfg;
69 struct btc_coexist;
70
71 #ifdef CONFIG_RTL8192E
72 #include "halbtc8192e1ant.h"
73 #include "halbtc8192e2ant.h"
74 #endif
75
76 #ifdef CONFIG_RTL8723B
77 #include "halbtc8723bwifionly.h"
78 #include "halbtc8723b1ant.h"
79 #include "halbtc8723b2ant.h"
80 #endif
81
82 #ifdef CONFIG_RTL8812A
83 #include "halbtc8812a1ant.h"
84 #include "halbtc8812a2ant.h"
85 #endif
86
87 #ifdef CONFIG_RTL8821A
88 #include "halbtc8821a1ant.h"
89 #include "halbtc8821a2ant.h"
90 #endif
91
92 #ifdef CONFIG_RTL8703B
93 #include "halbtc8703b1ant.h"
94 #endif
95
96 #ifdef CONFIG_RTL8723D
97 #include "halbtc8723d1ant.h"
98 #include "halbtc8723d2ant.h"
99 #endif
100
101 #ifdef CONFIG_RTL8822B
102 #include "halbtc8822bwifionly.h"
103 #include "halbtc8822b1ant.h"
104 #include "halbtc8822b2ant.h"
105 #endif
106
107 #ifdef CONFIG_RTL8821C
108 #include "halbtc8821cwifionly.h"
109 #include "halbtc8821c1ant.h"
110 #include "halbtc8821c2ant.h"
111 #endif
112
113 #include "halbtcoutsrc.h"
114
115 #else /* CONFIG_BT_COEXIST */
116
117 #ifdef CONFIG_RTL8723B
118 #include "halbtc8723bwifionly.h"
119 #endif
120
121 #ifdef CONFIG_RTL8822B
122 #include "halbtc8822bwifionly.h"
123 #endif
124
125 #ifdef CONFIG_RTL8821C
126 #include "halbtc8821cwifionly.h"
127 #endif
128
129 #endif /* CONFIG_BT_COEXIST */
130
131 #endif /*  __MP_PRECOMP_H__ */