rtl8192c_dm.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 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 __RTL8192C_DM_H__
  21. #define __RTL8192C_DM_H__
  22. //============================================================
  23. // Description:
  24. //
  25. // This file is for 92CE/92CU dynamic mechanism only
  26. //
  27. //
  28. //============================================================
  29. //============================================================
  30. // function prototype
  31. //============================================================
  32. #define DYNAMIC_FUNC_BT BIT(0)
  33. typedef enum _BT_CurState{
  34. BT_OFF = 0,
  35. BT_ON = 1,
  36. } BT_CurState, *PBT_CurState;
  37. typedef enum _BT_ServiceType{
  38. BT_SCO = 0,
  39. BT_A2DP = 1,
  40. BT_HID = 2,
  41. BT_HID_Idle = 3,
  42. BT_Scan = 4,
  43. BT_Idle = 5,
  44. BT_OtherAction = 6,
  45. BT_Busy = 7,
  46. BT_OtherBusy = 8,
  47. BT_PAN = 9,
  48. } BT_ServiceType, *PBT_ServiceType;
  49. struct btcoexist_priv {
  50. u8 BT_Coexist;
  51. u8 BT_Ant_Num;
  52. u8 BT_CoexistType;
  53. u8 BT_State;
  54. u8 BT_CUR_State; //0:on, 1:off
  55. u8 BT_Ant_isolation; //0:good, 1:bad
  56. u8 BT_PapeCtrl; //0:SW, 1:SW/HW dynamic
  57. u8 BT_Service;
  58. u8 BT_Ampdu; // 0:Disable BT control A-MPDU, 1:Enable BT control A-MPDU.
  59. u8 BT_RadioSharedType;
  60. u32 Ratio_Tx;
  61. u32 Ratio_PRI;
  62. u8 BtRfRegOrigin1E;
  63. u8 BtRfRegOrigin1F;
  64. u8 BtRssiState;
  65. u32 BtEdcaUL;
  66. u32 BtEdcaDL;
  67. u32 BT_EDCA[2];
  68. u8 bCOBT;
  69. u8 bInitSet;
  70. u8 bBTBusyTraffic;
  71. u8 bBTTrafficModeSet;
  72. u8 bBTNonTrafficModeSet;
  73. //BTTraffic BT21TrafficStatistics;
  74. u32 CurrentState;
  75. u32 PreviousState;
  76. u8 BtPreRssiState;
  77. u8 bFWCoexistAllOff;
  78. u8 bSWCoexistAllOff;
  79. };
  80. //============================================================
  81. // structure and define
  82. //============================================================
  83. //============================================================
  84. // function prototype
  85. //============================================================
  86. #ifdef CONFIG_BT_COEXIST
  87. void rtl8192c_set_dm_bt_coexist(_adapter *padapter, u8 bStart);
  88. void rtl8192c_issue_delete_ba(_adapter *padapter, u8 dir);
  89. #endif
  90. void rtl8192c_init_dm_priv(IN PADAPTER Adapter);
  91. void rtl8192c_deinit_dm_priv(IN PADAPTER Adapter);
  92. void rtl8192c_InitHalDm( IN PADAPTER Adapter);
  93. void rtl8192c_HalDmWatchDog(IN PADAPTER Adapter);
  94. #endif //__HAL8190PCIDM_H__