rtl8192c_spec.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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_SPEC_H__
  21. #define __RTL8192C_SPEC_H__
  22. #include <drv_conf.h>
  23. //============================================================
  24. // 8192C Regsiter offset definition
  25. //============================================================
  26. //============================================================
  27. //
  28. //============================================================
  29. //-----------------------------------------------------
  30. //
  31. // 0x0000h ~ 0x00FFh System Configuration
  32. //
  33. //-----------------------------------------------------
  34. #define REG_HMEBOX_EXT_0 0x0088
  35. #define REG_HMEBOX_EXT_1 0x008A
  36. #define REG_HMEBOX_EXT_2 0x008C
  37. #define REG_HMEBOX_EXT_3 0x008E
  38. //-----------------------------------------------------
  39. //
  40. // 0x0100h ~ 0x01FFh MACTOP General Configuration
  41. //
  42. //-----------------------------------------------------
  43. //-----------------------------------------------------
  44. //
  45. // 0x0200h ~ 0x027Fh TXDMA Configuration
  46. //
  47. //-----------------------------------------------------
  48. //-----------------------------------------------------
  49. //
  50. // 0x0280h ~ 0x02FFh RXDMA Configuration
  51. //
  52. //-----------------------------------------------------
  53. //-----------------------------------------------------
  54. //
  55. // 0x0300h ~ 0x03FFh PCIe
  56. //
  57. //-----------------------------------------------------
  58. //-----------------------------------------------------
  59. //
  60. // 0x0400h ~ 0x047Fh Protocol Configuration
  61. //
  62. //-----------------------------------------------------
  63. //-----------------------------------------------------
  64. //
  65. // 0x0500h ~ 0x05FFh EDCA Configuration
  66. //
  67. //-----------------------------------------------------
  68. //-----------------------------------------------------
  69. //
  70. // 0x0600h ~ 0x07FFh WMAC Configuration
  71. //
  72. //-----------------------------------------------------
  73. //-----------------------------------------------------
  74. //
  75. // Redifine register definition for compatibility
  76. //
  77. //-----------------------------------------------------
  78. // TODO: use these definition when using REG_xxx naming rule.
  79. // NOTE: DO NOT Remove these definition. Use later.
  80. #ifdef CONFIG_PCI_HCI
  81. #define IMR_RX_MASK (IMR_ROK|IMR_RDU|IMR_RXFOVW)
  82. #define IMR_TX_MASK (IMR_VODOK|IMR_VIDOK|IMR_BEDOK|IMR_BKDOK|IMR_MGNTDOK|IMR_HIGHDOK|IMR_BDOK)
  83. #define RT_IBSS_INT_MASKS (IMR_BcnInt | IMR_TBDOK | IMR_TBDER)
  84. #define RT_AC_INT_MASKS (IMR_VIDOK | IMR_VODOK | IMR_BEDOK|IMR_BKDOK)
  85. #define RT_BSS_INT_MASKS (RT_IBSS_INT_MASKS)
  86. #endif
  87. //----------------------------------------------------------------------------
  88. // 8192C EEPROM/EFUSE share register definition.
  89. //----------------------------------------------------------------------------
  90. #ifdef CONFIG_PCI_HCI
  91. //
  92. // Interface type.
  93. //
  94. #endif
  95. #ifdef CONFIG_USB_HCI
  96. //should be renamed and moved to another file
  97. typedef enum _BOARD_TYPE_8192CUSB{
  98. BOARD_USB_DONGLE = 0, // USB dongle
  99. BOARD_USB_High_PA = 1, // USB dongle with high power PA
  100. BOARD_MINICARD = 2, // Minicard
  101. BOARD_USB_SOLO = 3, // USB solo-Slim module
  102. BOARD_USB_COMBO = 4, // USB Combo-Slim module
  103. } BOARD_TYPE_8192CUSB, *PBOARD_TYPE_8192CUSB;
  104. #define SUPPORT_HW_RADIO_DETECT(pHalData) (pHalData->BoardType == BOARD_MINICARD||\
  105. pHalData->BoardType == BOARD_USB_SOLO||\
  106. pHalData->BoardType == BOARD_USB_COMBO)
  107. #endif
  108. #define EFUSE_ACCESS_ON 0x69 // For RTL8723 only.
  109. #define EFUSE_ACCESS_OFF 0x00 // For RTL8723 only.
  110. //========================================================
  111. // General definitions
  112. //========================================================
  113. #include "basic_types.h"
  114. #endif