net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / hal / btc / Mp_Precomp.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2013 Realtek Corporation. All rights reserved.
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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __MP_PRECOMP_H__
21 #define __MP_PRECOMP_H__
22
23 #include <drv_types.h>
24 #include <hal_data.h>
25
26 #define BT_TMP_BUF_SIZE 100
27
28 #ifdef PLATFORM_LINUX
29 #define rsprintf snprintf
30 #elif defined(PLATFORM_WINDOWS)
31 #define rsprintf sprintf_s
32 #endif
33
34 #define DCMD_Printf                     DBG_BT_INFO
35
36 #define delay_ms(ms)            rtw_mdelay_os(ms)
37
38 #ifdef bEnable
39 #undef bEnable
40 #endif
41
42 #define WPP_SOFTWARE_TRACE 0
43
44 typedef enum _BTC_MSG_COMP_TYPE{
45         COMP_COEX               = 0,
46         COMP_MAX
47 }BTC_MSG_COMP_TYPE;
48 extern u4Byte GLBtcDbgType[];
49
50 #define DBG_OFF                 0
51 #define DBG_SEC                 1
52 #define DBG_SERIOUS             2
53 #define DBG_WARNING             3
54 #define DBG_LOUD                4
55 #define DBG_TRACE               5
56
57 #if DBG
58 #ifdef RT_TRACE
59 #undef RT_TRACE
60 #define RT_TRACE(dbgtype, dbgflag, printstr)\
61 do {\
62         if (GLBtcDbgType[dbgtype] & BIT(dbgflag))\
63         {\
64                 DbgPrint printstr;\
65         }\
66 } while (0)
67 #endif
68 #else
69 #define RT_TRACE(dbgtype, dbgflag, printstr)
70 #endif
71
72 #include "HalBtcOutSrc.h"
73 #include "HalBtc8188c2Ant.h"
74 #include "HalBtc8192d2Ant.h"
75 #include "HalBtc8192e1Ant.h"
76 #include "HalBtc8192e2Ant.h"
77 #include "HalBtc8723a1Ant.h"
78 #include "HalBtc8723a2Ant.h"
79 #include "HalBtc8723b1Ant.h"
80 #include "HalBtc8723b2Ant.h"
81 #include "HalBtc8812a1Ant.h"
82 #include "HalBtc8812a2Ant.h"
83 #include "HalBtc8821a1Ant.h"
84 #include "HalBtc8821a2Ant.h"
85 #include "HalBtc8821aCsr2Ant.h"
86 #include "HalBtc8703b1Ant.h"
87 #include "HalBtc8703b2Ant.h"
88
89 #endif // __MP_PRECOMP_H__