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