rtl8192d_spec.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 __RTL8192D_SPEC_H__
  21. #define __RTL8192D_SPEC_H__
  22. #include <drv_conf.h>
  23. //============================================================
  24. // 8192D 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. #define REG_MAC_PHY_CTRL_NORMAL 0x00F8
  39. #define REG_MAC0 0x0081
  40. #define REG_MAC1 0x0053
  41. #define FW_MAC0_ready 0x18
  42. #define FW_MAC1_ready 0x1A
  43. #define MAC0_ON BIT7
  44. #define MAC1_ON BIT0
  45. #define mac0_ready BIT0
  46. #define mac1_ready BIT0
  47. //-----------------------------------------------------
  48. //
  49. // 0x0100h ~ 0x01FFh MACTOP General Configuration
  50. //
  51. //-----------------------------------------------------
  52. //-----------------------------------------------------
  53. //
  54. // 0x0200h ~ 0x027Fh TXDMA Configuration
  55. //
  56. //-----------------------------------------------------
  57. //-----------------------------------------------------
  58. //
  59. // 0x0280h ~ 0x02FFh RXDMA Configuration
  60. //
  61. //-----------------------------------------------------
  62. //-----------------------------------------------------
  63. //
  64. // 0x0300h ~ 0x03FFh PCIe
  65. //
  66. //-----------------------------------------------------
  67. //-----------------------------------------------------
  68. //
  69. // 0x0400h ~ 0x047Fh Protocol Configuration
  70. //
  71. //-----------------------------------------------------
  72. //-----------------------------------------------------
  73. //
  74. // 0x0500h ~ 0x05FFh EDCA Configuration
  75. //
  76. //-----------------------------------------------------
  77. //-----------------------------------------------------
  78. //
  79. // 0x0600h ~ 0x07FFh WMAC Configuration
  80. //
  81. //-----------------------------------------------------
  82. //-----------------------------------------------------
  83. //
  84. // 0xFE00h ~ 0xFE55h USB Configuration
  85. //
  86. //-----------------------------------------------------
  87. #ifdef CONFIG_PCI_HCI
  88. #define RT_IBSS_INT_MASKS (IMR_BcnInt | IMR_TBDOK | IMR_TBDER)
  89. #define RT_AC_INT_MASKS (IMR_VIDOK | IMR_VODOK | IMR_BEDOK|IMR_BKDOK)
  90. #define RT_BSS_INT_MASKS (RT_IBSS_INT_MASKS)
  91. #endif
  92. //========================================================
  93. // General definitions
  94. //========================================================
  95. #include "basic_types.h"
  96. #endif