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 #include "btc_basic_types.h" 21 22 #define BT_TMP_BUF_SIZE 100 23 24 #ifdef PLATFORM_LINUX 25 #define rsprintf snprintf 26 #define rstrncat(dst, src, src_size) strncat(dst, src, src_size) 27 #elif defined(PLATFORM_WINDOWS) 28 #define rsprintf sprintf_s 29 #endif 30 31 #define DCMD_Printf DBG_BT_INFO 32 33 #define delay_ms(ms) rtw_mdelay_os(ms) 34 35 #ifdef bEnable 36 #undef bEnable 37 #endif 38 39 #define WPP_SOFTWARE_TRACE 0 40 41 typedef enum _BTC_MSG_COMP_TYPE { 42 COMP_COEX = 0, 43 COMP_MAX 44 } BTC_MSG_COMP_TYPE; 45 extern u4Byte GLBtcDbgType[]; 46 47 #define DBG_OFF 0 48 #define DBG_SEC 1 49 #define DBG_SERIOUS 2 50 #define DBG_WARNING 3 51 #define DBG_LOUD 4 52 #define DBG_TRACE 5 53 54 #ifdef CONFIG_BT_COEXIST 55 #define BT_SUPPORT 1 56 #define COEX_SUPPORT 1 57 #define HS_SUPPORT 1 58 #else 59 #define BT_SUPPORT 0 60 #define COEX_SUPPORT 0 61 #define HS_SUPPORT 0 62 #endif 63 64 /* for wifi only mode */ 65 #include "hal_btcoex_wifionly.h" 66 67 #ifdef CONFIG_BT_COEXIST 68 #define BTC_BTINFO_LENGTH_MAX 10 69 70 struct wifi_only_cfg; 71 struct btc_coexist; 72 73 #ifdef CONFIG_RTL8192E 74 #include "halbtc8192e1ant.h" 75 #include "halbtc8192e2ant.h" 76 #endif 77 78 #ifdef CONFIG_RTL8723B 79 #include "halbtc8723bwifionly.h" 80 #include "halbtc8723b1ant.h" 81 #include "halbtc8723b2ant.h" 82 #endif 83 84 #ifdef CONFIG_RTL8812A 85 #include "halbtc8812a1ant.h" 86 #include "halbtc8812a2ant.h" 87 #endif 88 89 #ifdef CONFIG_RTL8821A 90 #include "halbtc8821a1ant.h" 91 #include "halbtc8821a2ant.h" 92 #endif 93 94 #ifdef CONFIG_RTL8703B 95 #include "halbtc8703b1ant.h" 96 #endif 97 98 #ifdef CONFIG_RTL8723D 99 #include "halbtc8723d1ant.h" 100 #include "halbtc8723d2ant.h" 101 #endif 102 103 #ifdef CONFIG_RTL8822B 104 #include "halbtc8822bwifionly.h" 105 #include "halbtc8822b1ant.h" 106 #include "halbtc8822b2ant.h" 107 #endif 108 109 #ifdef CONFIG_RTL8821C 110 #include "halbtc8821cwifionly.h" 111 #include "halbtc8821c1ant.h" 112 #include "halbtc8821c2ant.h" 113 #endif 114 115 #ifdef CONFIG_RTL8814A 116 #include "halbtc8814a2ant.h" 117 #endif 118 119 #if (CONFIG_BTCOEX_SUPPORT_BTC_CMN == 1) 120 #include "halbtccommon.h" 121 122 #ifdef CONFIG_RTL8822C 123 #include "halbtc8822cwifionly.h" 124 #include "halbtc8822c.h" 125 #endif 126 127 #ifdef CONFIG_RTL8723F 128 #include "halbtc8723fwifionly.h" 129 #include "halbtc8723f.h" 130 #endif 131 132 #ifdef CONFIG_RTL8192F 133 #include "halbtc8192f.h" 134 #endif 135 136 #endif 137 138 #include "halbtcoutsrc.h" 139 140 #else /* CONFIG_BT_COEXIST */ 141 142 #ifdef CONFIG_RTL8723B 143 #include "halbtc8723bwifionly.h" 144 #endif 145 146 #ifdef CONFIG_RTL8822B 147 #include "halbtc8822bwifionly.h" 148 #endif 149 150 #ifdef CONFIG_RTL8821C 151 #include "halbtc8821cwifionly.h" 152 #endif 153 154 #ifdef CONFIG_RTL8822C 155 #include "halbtc8822cwifionly.h" 156 #endif 157 158 #ifdef CONFIG_RTL8723F 159 #include "halbtc8723fwifionly.h" 160 #endif 161 162 #ifdef CONFIG_RTL8814B 163 #include "halbtc8814bwifionly.h" 164 #endif 165 166 #endif /* CONFIG_BT_COEXIST */ 167 168 #endif /* __MP_PRECOMP_H__ */ 169