1 /******************************************************************************
3 * Copyright(c) 2013 - 2017 Realtek Corporation.
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.
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
14 *****************************************************************************/
15 #ifndef __MP_PRECOMP_H__
16 #define __MP_PRECOMP_H__
18 #include <drv_types.h>
21 #define BT_TMP_BUF_SIZE 100
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
30 #define DCMD_Printf DBG_BT_INFO
32 #define delay_ms(ms) rtw_mdelay_os(ms)
38 #define WPP_SOFTWARE_TRACE 0
40 typedef enum _BTC_MSG_COMP_TYPE {
44 extern u4Byte GLBtcDbgType[];
53 #ifdef CONFIG_BT_COEXIST
55 #define COEX_SUPPORT 1
59 #define COEX_SUPPORT 0
63 /* for wifi only mode */
64 #include "hal_btcoex_wifionly.h"
66 #ifdef CONFIG_BT_COEXIST
71 #ifdef CONFIG_RTL8192E
72 #include "halbtc8192e1ant.h"
73 #include "halbtc8192e2ant.h"
76 #ifdef CONFIG_RTL8723B
77 #include "halbtc8723bwifionly.h"
78 #include "halbtc8723b1ant.h"
79 #include "halbtc8723b2ant.h"
82 #ifdef CONFIG_RTL8812A
83 #include "halbtc8812a1ant.h"
84 #include "halbtc8812a2ant.h"
87 #ifdef CONFIG_RTL8821A
88 #include "halbtc8821a1ant.h"
89 #include "halbtc8821a2ant.h"
92 #ifdef CONFIG_RTL8703B
93 #include "halbtc8703b1ant.h"
96 #ifdef CONFIG_RTL8723D
97 #include "halbtc8723d1ant.h"
98 #include "halbtc8723d2ant.h"
101 #ifdef CONFIG_RTL8822B
102 #include "halbtc8822bwifionly.h"
103 #include "halbtc8822b1ant.h"
104 #include "halbtc8822b2ant.h"
107 #ifdef CONFIG_RTL8821C
108 #include "halbtc8821cwifionly.h"
109 #include "halbtc8821c1ant.h"
110 #include "halbtc8821c2ant.h"
113 #include "halbtcoutsrc.h"
115 #else /* CONFIG_BT_COEXIST */
117 #ifdef CONFIG_RTL8723B
118 #include "halbtc8723bwifionly.h"
121 #ifdef CONFIG_RTL8822B
122 #include "halbtc8822bwifionly.h"
125 #ifdef CONFIG_RTL8821C
126 #include "halbtc8821cwifionly.h"
129 #endif /* CONFIG_BT_COEXIST */
131 #endif /* __MP_PRECOMP_H__ */