mp_precomp.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. #include <drv_types.h>
  18. #include <hal_data.h>
  19. #define BT_TMP_BUF_SIZE 100
  20. #ifdef PLATFORM_LINUX
  21. #define rsprintf snprintf
  22. #define rstrncat(dst, src, src_size) strncat(dst, src, src_size)
  23. #elif defined(PLATFORM_WINDOWS)
  24. #define rsprintf sprintf_s
  25. #endif
  26. #define DCMD_Printf DBG_BT_INFO
  27. #define delay_ms(ms) rtw_mdelay_os(ms)
  28. #ifdef bEnable
  29. #undef bEnable
  30. #endif
  31. #define WPP_SOFTWARE_TRACE 0
  32. typedef enum _BTC_MSG_COMP_TYPE {
  33. COMP_COEX = 0,
  34. COMP_MAX
  35. } BTC_MSG_COMP_TYPE;
  36. extern u4Byte GLBtcDbgType[];
  37. #define DBG_OFF 0
  38. #define DBG_SEC 1
  39. #define DBG_SERIOUS 2
  40. #define DBG_WARNING 3
  41. #define DBG_LOUD 4
  42. #define DBG_TRACE 5
  43. #ifdef CONFIG_BT_COEXIST
  44. #define BT_SUPPORT 1
  45. #define COEX_SUPPORT 1
  46. #define HS_SUPPORT 1
  47. #else
  48. #define BT_SUPPORT 0
  49. #define COEX_SUPPORT 0
  50. #define HS_SUPPORT 0
  51. #endif
  52. /* for wifi only mode */
  53. #include "hal_btcoex_wifionly.h"
  54. #ifdef CONFIG_BT_COEXIST
  55. struct wifi_only_cfg;
  56. struct btc_coexist;
  57. #ifdef CONFIG_RTL8192E
  58. #include "halbtc8192e1ant.h"
  59. #include "halbtc8192e2ant.h"
  60. #endif
  61. #ifdef CONFIG_RTL8723B
  62. #include "halbtc8723bwifionly.h"
  63. #include "halbtc8723b1ant.h"
  64. #include "halbtc8723b2ant.h"
  65. #endif
  66. #ifdef CONFIG_RTL8812A
  67. #include "halbtc8812a1ant.h"
  68. #include "halbtc8812a2ant.h"
  69. #endif
  70. #ifdef CONFIG_RTL8821A
  71. #include "halbtc8821a1ant.h"
  72. #include "halbtc8821a2ant.h"
  73. #endif
  74. #ifdef CONFIG_RTL8703B
  75. #include "halbtc8703b1ant.h"
  76. #endif
  77. #ifdef CONFIG_RTL8723D
  78. #include "halbtc8723d1ant.h"
  79. #include "halbtc8723d2ant.h"
  80. #endif
  81. #ifdef CONFIG_RTL8822B
  82. #include "halbtc8822bwifionly.h"
  83. #include "halbtc8822b1ant.h"
  84. #include "halbtc8822b2ant.h"
  85. #endif
  86. #ifdef CONFIG_RTL8821C
  87. #include "halbtc8821cwifionly.h"
  88. #include "halbtc8821c1ant.h"
  89. #include "halbtc8821c2ant.h"
  90. #endif
  91. #include "halbtcoutsrc.h"
  92. #else /* CONFIG_BT_COEXIST */
  93. #ifdef CONFIG_RTL8723B
  94. #include "halbtc8723bwifionly.h"
  95. #endif
  96. #ifdef CONFIG_RTL8822B
  97. #include "halbtc8822bwifionly.h"
  98. #endif
  99. #ifdef CONFIG_RTL8821C
  100. #include "halbtc8821cwifionly.h"
  101. #endif
  102. #endif /* CONFIG_BT_COEXIST */
  103. #endif /* __MP_PRECOMP_H__ */