1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-23 13:49:57 +00:00
rtl8812au/hal/btc/mp_precomp.h

128 lines
2.6 KiB
C
Raw Normal View History

2018-06-22 16:48:32 +00:00
/******************************************************************************
*
* Copyright(c) 2013 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*****************************************************************************/
#ifndef __MP_PRECOMP_H__
#define __MP_PRECOMP_H__
#include <drv_types.h>
#include <hal_data.h>
#define BT_TMP_BUF_SIZE 100
#ifdef PLATFORM_LINUX
#define rsprintf snprintf
#elif defined(PLATFORM_WINDOWS)
#define rsprintf sprintf_s
#endif
#define DCMD_Printf DBG_BT_INFO
#define delay_ms(ms) rtw_mdelay_os(ms)
#ifdef bEnable
#undef bEnable
#endif
#define WPP_SOFTWARE_TRACE 0
typedef enum _BTC_MSG_COMP_TYPE {
COMP_COEX = 0,
COMP_MAX
} BTC_MSG_COMP_TYPE;
extern u4Byte GLBtcDbgType[];
#define DBG_OFF 0
#define DBG_SEC 1
#define DBG_SERIOUS 2
#define DBG_WARNING 3
#define DBG_LOUD 4
#define DBG_TRACE 5
#ifdef CONFIG_BT_COEXIST
#define BT_SUPPORT 1
#define COEX_SUPPORT 1
#define HS_SUPPORT 1
#else
#define BT_SUPPORT 0
#define COEX_SUPPORT 0
#define HS_SUPPORT 0
#endif
#include "halbtcoutsrc.h"
2018-08-24 20:52:34 +00:00
/* for wifi only mode */
#include "hal_btcoex_wifionly.h"
#ifdef CONFIG_BT_COEXIST
#ifdef CONFIG_RTL8192E
2018-06-22 16:48:32 +00:00
#include "halbtc8192e1ant.h"
#include "halbtc8192e2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8723B
#include "halbtc8723bwifionly.h"
2018-06-22 16:48:32 +00:00
#include "halbtc8723b1ant.h"
#include "halbtc8723b2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8812A
2018-06-22 16:48:32 +00:00
#include "halbtc8812a1ant.h"
#include "halbtc8812a2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8821A
2018-06-22 16:48:32 +00:00
#include "halbtc8821a1ant.h"
#include "halbtc8821a2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8703B
2018-06-22 16:48:32 +00:00
#include "halbtc8703b1ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8723D
2018-06-22 16:48:32 +00:00
#include "halbtc8723d1ant.h"
#include "halbtc8723d2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8822B
#include "halbtc8822bwifionly.h"
2018-06-22 16:48:32 +00:00
#include "halbtc8822b1ant.h"
#include "halbtc8822b2ant.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8821C
#include "halbtc8821cwifionly.h"
2018-06-22 16:48:32 +00:00
#include "halbtc8821c1ant.h"
#include "halbtc8821c2ant.h"
2018-08-24 20:52:34 +00:00
#endif
2018-06-22 16:48:32 +00:00
2018-08-24 20:52:34 +00:00
#else /* CONFIG_BT_COEXIST */
#ifdef CONFIG_RTL8723B
2018-06-22 16:48:32 +00:00
#include "halbtc8723bwifionly.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8822B
2018-06-22 16:48:32 +00:00
#include "halbtc8822bwifionly.h"
2018-08-24 20:52:34 +00:00
#endif
#ifdef CONFIG_RTL8821C
2018-06-22 16:48:32 +00:00
#include "halbtc8821cwifionly.h"
2018-08-24 20:52:34 +00:00
#endif
#endif /* CONFIG_BT_COEXIST */
2018-06-22 16:48:32 +00:00
#endif /* __MP_PRECOMP_H__ */