PageRenderTime 48ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/hal/TnetwServices/TNETW1251/TnetwRegisters.h

http://github.com/CyanogenMod/cm-kernel
C Header | 971 lines | 775 code | 80 blank | 116 comment | 0 complexity | e2390807841852e1ee35ca4e45808f00 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /****************************************************************************
  2. **+-----------------------------------------------------------------------+**
  3. **| |**
  4. **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |**
  5. **| All rights reserved. |**
  6. **| |**
  7. **| Redistribution and use in source and binary forms, with or without |**
  8. **| modification, are permitted provided that the following conditions |**
  9. **| are met: |**
  10. **| |**
  11. **| * Redistributions of source code must retain the above copyright |**
  12. **| notice, this list of conditions and the following disclaimer. |**
  13. **| * Redistributions in binary form must reproduce the above copyright |**
  14. **| notice, this list of conditions and the following disclaimer in |**
  15. **| the documentation and/or other materials provided with the |**
  16. **| distribution. |**
  17. **| * Neither the name Texas Instruments nor the names of its |**
  18. **| contributors may be used to endorse or promote products derived |**
  19. **| from this software without specific prior written permission. |**
  20. **| |**
  21. **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |**
  22. **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |**
  23. **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
  24. **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |**
  25. **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
  26. **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |**
  27. **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
  28. **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
  29. **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |**
  30. **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
  31. **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
  32. **| |**
  33. **+-----------------------------------------------------------------------+**
  34. ****************************************************************************/
  35. #ifndef RGM_TNETW1150_H
  36. #define RGM_TNETW1150_H
  37. #include "public_types.h"
  38. /* Base addresses*/
  39. /* They are not used inside registers definition in purpose to allow this header file*/
  40. /* to be used as an easy reference to register -> address date base. Keep this as it*/
  41. /* is very powerful for debugging purpose.*/
  42. #define HOST_SLAVE_BASE 0x00300000
  43. #define INT_BASE 0x00300400
  44. #define REG_CONFIG_BASE 0x00300800
  45. #define CLK_BASE 0x00300C00
  46. #define SDMA_BASE 0x00301000
  47. #define AES_BASE 0x00301400
  48. #define WEP_BASE 0x00301800
  49. #define TKIP_BASE 0x00301C00
  50. #define SEEPROM_BASE 0x00302000
  51. #define PAR_HOST_BASE 0x00302400
  52. #define SDIO_BASE 0x00302800
  53. #define UART_BASE 0x00302C00
  54. #define USB11_BASE 0x00304000
  55. #define LDMA_BASE 0x00304400
  56. #define RX_BASE 0x00304800
  57. #define ACCESS_BASE 0x00304c00
  58. #define TX_BASE 0x00305000
  59. #define RMAC_CSR_BASE 0x00305400
  60. #define AFE_PM 0x00305800
  61. #define VLYNQ_BASE 0x00308000
  62. #define PCI_BASE 0x00308400
  63. #define USB20_BASE 0x0030A000
  64. #define PHY_BASE 0x003C0000
  65. /* System DMA registers*/
  66. /* Order of registers was changed*/
  67. #define DMA_GLB_CFG (0x1000)
  68. #define DMA_HDESC_OFFSET (0x1004)
  69. #define DMA_HDATA_OFFSET (0x1008)
  70. #define DMA_CFG0 (0x100C) /* SDMA_HOST_CFG0 changed*/
  71. #define DMA_CTL0 (0x1010) /* SDMA_CTRL0 changed*/
  72. #define DMA_LENGTH0 (0x1014)
  73. #define DMA_L_ADDR0 (0x1018) /* SDMA_RD_ADDR ?*/
  74. #define DMA_L_PTR0 (0x101C) /* SDMA_RD_OFFSET ?*/
  75. #define DMA_H_ADDR0 (0x1020) /* SDMA_WR_ADDR ?*/
  76. #define DMA_H_PTR0 (0x1024) /* SDMA_WR_OFFSET ?*/
  77. #define DMA_STS0 (0x1028) /* Changed*/
  78. #define DMA_CFG1 (0x1030) /* SDMA_HOST_CFG1 changed*/
  79. #define DMA_CTL1 (0x1034) /* SDMA_CTRL1 changed*/
  80. #define DMA_LENGTH1 (0x1038)
  81. #define DMA_L_ADDR1 (0x103C)
  82. #define DMA_L_PTR1 (0x1040)
  83. #define DMA_H_ADDR1 (0x1044)
  84. #define DMA_H_PTR1 (0x1048)
  85. #define DMA_STS1 (0x104C)
  86. #define DMA_HFRM_PTR (0x1050) /* New ?*/
  87. #define DMA_DEBUG (0x1054) /* Changed*/
  88. /* Local DMA registers*/
  89. /* number changed from 4 to 2*/
  90. #define LDMA_DEBUG (0x4400)
  91. #define LDMA_CTL0 (0x4404) /* Add 2 bits to support fix address (FIFO)*/
  92. #define LDMA_STATUS0 (0x4408)
  93. #define LDMA_LENGTH0 (0x440c)
  94. #define LDMA_RD_ADDR0 (0x4410)
  95. #define LDMA_RD_OFFSET0 (0x4414)
  96. #define LDMA_WR_ADDR0 (0x4418)
  97. #define LDMA_WR_OFFSET0 (0x441c)
  98. #define LDMA_CTL1 (0x4428) /* Add 2 bits to support fix address (FIFO)*/
  99. #define LDMA_STATUS1 (0x442c)
  100. #define LDMA_LENGTH1 (0x4430)
  101. #define LDMA_RD_ADDR1 (0x4434)
  102. #define LDMA_RD_OFFSET1 (0x4438)
  103. #define LDMA_WR_ADDR1 (0x443c)
  104. #define LDMA_WR_OFFSET1 (0x4440)
  105. /* For TNETW compatability (if willbe )*/
  106. #define LDMA_CUR_RD_PTR0 LDMA_RD_ADDR0
  107. #define LDMA_CUR_WR_PTR0 LDMA_WR_ADDR0
  108. #define LDMA_CUR_RD_PTR1 LDMA_RD_ADDR1
  109. #define LDMA_CUR_WR_PTR1 LDMA_WR_ADDR1
  110. /* Host Slave registers*/
  111. #define SLV_SOFT_RESET (0x0000) /* self clearing*/
  112. #define SLV_REG_ADDR (0x0004)
  113. #define SLV_REG_DATA (0x0008)
  114. #define SLV_REG_ADATA (0x000c)
  115. #define SLV_MEM_CP (0x0010)
  116. #define SLV_MEM_ADDR (0x0014)
  117. #define SLV_MEM_DATA (0x0018)
  118. #define SLV_MEM_CTL (0x001c) /* bit 19 moved to PCMCIA_CTL*/
  119. #define SLV_END_CTL (0x0020) /* 2 bits moved to ENDIAN_CTL*/
  120. /* Timer registers*/
  121. /* Timer1/2 count MAC clocks*/
  122. /* Timer3/4/5 count usec*/
  123. #define TIM1_CTRL (0x0918)
  124. #define TIM1_LOAD (0x091C)
  125. #define TIM1_CNT (0x0920)
  126. #define TIM2_CTRL (0x0924)
  127. #define TIM2_LOAD (0x0928)
  128. #define TIM2_CNT (0x092C)
  129. #define TIM3_CTRL (0x0930)
  130. #define TIM3_LOAD (0x0934)
  131. #define TIM3_CNT (0x0938)
  132. #define TIM4_CTRL (0x093C)
  133. #define TIM4_LOAD (0x0940)
  134. #define TIM4_CNT (0x0944)
  135. #define TIM5_CTRL (0x0948)
  136. #define TIM5_LOAD (0x094C)
  137. #define TIM5_CNT (0x0950)
  138. /* Watchdog registers*/
  139. #define WDOG_CTRL (0x0954)
  140. #define WDOG_LOAD (0x0958)
  141. #define WDOG_CNT (0x095C)
  142. #define WDOG_STS (0x0960)
  143. #define WDOG_FEED (0x0964)
  144. /* Interrupt registers*/
  145. /* 64 bit interrupt sources registers ws ced. sme interupts were removed and new ones were added*/
  146. /* Order was changed*/
  147. #define FIQ_MASK (0x0400)
  148. #define FIQ_MASK_L (0x0400)
  149. #define FIQ_MASK_H (0x0404)
  150. #define FIQ_MASK_SET (0x0408)
  151. #define FIQ_MASK_SET_L (0x0408)
  152. #define FIQ_MASK_SET_H (0x040C)
  153. #define FIQ_MASK_CLR (0x0410)
  154. #define FIQ_MASK_CLR_L (0x0410)
  155. #define FIQ_MASK_CLR_H (0x0414)
  156. #define IRQ_MASK (0x0418)
  157. #define IRQ_MASK_L (0x0418)
  158. #define IRQ_MASK_H (0x041C)
  159. #define IRQ_MASK_SET (0x0420)
  160. #define IRQ_MASK_SET_L (0x0420)
  161. #define IRQ_MASK_SET_H (0x0424)
  162. #define IRQ_MASK_CLR (0x0428)
  163. #define IRQ_MASK_CLR_L (0x0428)
  164. #define IRQ_MASK_CLR_H (0x042C)
  165. #define ECPU_MASK (0x0448)
  166. #define FIQ_STS_L (0x044C)
  167. #define FIQ_STS_H (0x0450)
  168. #define IRQ_STS_L (0x0454)
  169. #define IRQ_STS_H (0x0458)
  170. #define INT_STS_ND (0x0464)
  171. #define INT_STS_RAW_L (0x0464)
  172. #define INT_STS_RAW_H (0x0468)
  173. #define INT_STS_CLR (0x04B4)
  174. #define INT_STS_CLR_L (0x04B4)
  175. #define INT_STS_CLR_H (0x04B8)
  176. #define INT_ACK (0x046C)
  177. #define INT_ACK_L (0x046C)
  178. #define INT_ACK_H (0x0470)
  179. #define INT_TRIG (0x0474)
  180. #define INT_TRIG_L (0x0474)
  181. #define INT_TRIG_H (0x0478)
  182. #define HOST_STS_L (0x045C)
  183. #define HOST_STS_H (0x0460)
  184. #define HOST_MASK (0x0430)
  185. #define HOST_MASK_L (0x0430)
  186. #define HOST_MASK_H (0x0434)
  187. #define HOST_MASK_SET (0x0438)
  188. #define HOST_MASK_SET_L (0x0438)
  189. #define HOST_MASK_SET_H (0x043C)
  190. #define HOST_MASK_CLR (0x0440)
  191. #define HOST_MASK_CLR_L (0x0440)
  192. #define HOST_MASK_CLR_H (0x0444)
  193. /* GPIO Interrupts*/
  194. #define GPIO_INT_STS (0x0484) /* 22 GPIOs*/
  195. #define GPIO_INT_ACK (0x047C)
  196. #define GPIO_INT_MASK (0x0480)
  197. #define GPIO_POS_MASK (0x04BC) /* New*/
  198. #define GPIO_NEG_MASK (0x04C0) /* New*/
  199. /* Protocol Interrupts*/
  200. #define PROTO_INT_STS (0x0490) /* Add 2 PHY->MAC source interrupts*/
  201. #define PROTO_INT_ACK (0x0488)
  202. #define PROTO_INT_MASK (0x048C)
  203. /* Host Interrupts*/
  204. #define HINT_MASK (0x0494)
  205. #define HINT_MASK_SET (0x0498)
  206. #define HINT_MASK_CLR (0x049C)
  207. #define HINT_STS_ND_MASKED (0x04A0)
  208. #define HINT_STS_ND (0x04B0) /*1150 spec calls this HINT_STS_RAW*/
  209. #define HINT_STS_CLR (0x04A4)
  210. #define HINT_ACK (0x04A8)
  211. #define HINT_TRIG (0x04AC)
  212. /* Clock registers*/
  213. #define CLK_CFG (0x0C00) /* new ARM clock bit */
  214. #define CLK_CTRL (0x0C04) /* changed*/
  215. #define BLK_RST (0x0C08) /* changed*/
  216. #define CFG_USEC_STB (0x0C0C)
  217. #define ARM_GATE_CLK_REG (0x0C10) /* new*/
  218. #define BUSY_STAT_REG (0x0C14) /* new*/
  219. #define CFG_PHY_CLK88 (0x0C18)
  220. #define DYNAMIC_CLKGATE (0x0C1C) /* new*/
  221. /* AES registers*/
  222. /* Major changes to this module*/
  223. #define AES_START (0x1400)
  224. #define AES_CFG (0x1404)
  225. #define AES_CTL (0x1408)
  226. #define AES_STATUS (0x140C)
  227. #define AES_LENGTH (0x1410)
  228. #define AES_RD_ADDR (0x1414)
  229. #define AES_RD_OFFSET (0x1418)
  230. #define AES_WR_ADDR (0x141C)
  231. #define AES_WR_OFFSET (0x1420)
  232. #define AES_CUR_RD_PTR (0x1424)
  233. #define AES_CUR_WR_PTR (0x1428)
  234. #define AES_KEY_0 (0x142C)
  235. #define AES_KEY_1 (0x1430)
  236. #define AES_KEY_2 (0x1434)
  237. #define AES_KEY_3 (0x1438)
  238. #define AES_NONCE_0 (0x143C)
  239. #define AES_NONCE_1 (0x1440)
  240. #define AES_NONCE_2 (0x1444)
  241. #define AES_NONCE_3 (0x1448)
  242. #define AES_MIC_0 (0x144C)
  243. #define AES_MIC_1 (0x1450)
  244. #define AES_MIC_2 (0x1454)
  245. #define AES_MIC_3 (0x1458)
  246. #define AES_ASSO_DATA_0 (0x145C)
  247. #define AES_ASSO_DATA_1 (0x1460)
  248. #define AES_ASSO_DATA_2 (0x1464)
  249. #define AES_ASSO_DATA_3 (0x1468)
  250. #define AES_NUM_OF_ROUNDS (0x146C)
  251. #define AES_TX_QUEUE_PTR (0x1470)
  252. #define AES_RX_QUEUE_PTR (0x1474)
  253. #define AES_STACK (0x1478)
  254. #define AES_INT_RAW (0x147C)
  255. #define AES_INT_MASK (0x1480)
  256. #define AES_INT_STS (0x1484)
  257. /* WEP registers*/
  258. /* Order was changed*/
  259. #define DEC_CTL (0x1800)
  260. #define DEC_STATUS (0x1804)
  261. #define DEC_MBLK (0x1808)
  262. #define DEC_KEY_ADDR (0x180C)
  263. #define DEC_KEY_LEN (0x1810)
  264. #define DEC_ADDR_UPPER_BYTE (0x1814) /* new*/
  265. #define DEC_LEN (0x1818)
  266. #define DEC_OFFSET (0x181C)
  267. #define DEC_WR_MBLK (0x1820)
  268. #define DEC_WR_OFFSET (0x1824)
  269. /* TKIP MICHAEL reisters*/
  270. /* order changed*/
  271. #define MCHL_START0 (0x1C00)
  272. #define MCHL_DMV_START_MBLK0 (0x1C04) /* Changed to 23:5 format*/
  273. #define MCHL_DMV_CUR_MBLK0 (0x1C10)
  274. #define MCHL_DMV_OFFSET0 (0x1C08)
  275. #define MCHL_DMV_LENGTH0 (0x1C0C)
  276. #define MCHL_DMV_CFG0 (0x1C14)
  277. #define MCHL_KEY_L0 (0x1C18)
  278. #define MCHL_KEY_H0 (0x1C1C)
  279. #define MCHL_MIC_L0 (0x1C20)
  280. #define MCHL_MIC_H0 (0x1C24)
  281. #define MCHL_START1 (0x1C28)
  282. #define MCHL_DMV_START_MBLK1 (0x1C2C) /* Changed to 23:5 format*/
  283. #define MCHL_DMV_CUR_MBLK1 (0x1C38)
  284. #define MCHL_DMV_OFFSET1 (0x1C30)
  285. #define MCHL_DMV_LENGTH1 (0x1C34)
  286. #define MCHL_DMV_CFG1 (0x1C3C)
  287. #define MCHL_KEY_L1 (0x1C40)
  288. #define MCHL_KEY_H1 (0x1C44)
  289. #define MCHL_MIC_L1 (0x1C48)
  290. #define MCHL_MIC_H1 (0x1C4C)
  291. #define MCHL_CTL0 (0x1C50) /* new name MCHL_CTRL0*/
  292. #define MCHL_CTL1 (0x1C54) /* new name MCHL_CTRL1*/
  293. #define MCHL_UPPER_BYTE_ADDR0 (0x1C58) /* new*/
  294. #define MCHL_UPPER_BYTE_ADDR1 (0x1C5C) /* new*/
  295. /* SEEPROM registers*/
  296. #define EE_CFG (0x0820)
  297. #define EE_CTL (0x2000)
  298. #define EE_DATA (0x2004)
  299. #define EE_ADDR (0x2008)
  300. /* Parallel Host (PCI/CARDBUS/PCMCIA/GS*/
  301. #define CIS_LADDR (0x2400)
  302. #define HI_CTL (0x2404)
  303. #define LPWR_MGT (0x2408)
  304. /*#define PDR0 (0x04ec)*/
  305. /*#define PDR1 (0x04f0)*/
  306. /*#define PDR2 (0x04f4)*/
  307. /*#define PDR3 (0x04f8)*/
  308. /*#define BAR2_ENABLE (0x04fc)*/
  309. /*#define BAR2_TRANS (0x0500)*/
  310. /*#define BAR2_MASK (0x0504)*/
  311. #define PCI_MEM_SIZE1 (0x2428)
  312. #define PCI_MEM_OFFSET1 (0x242C)
  313. #define PCI_MEM_OFFSET2 (0x2430)
  314. /*#define PCI_IO_SIZE1 (0x0514)*/
  315. /*#define PCI_IO_OFFSET1 (0x0518)*/
  316. /*#define PCI_IO_OFFSET2 (0x051c)*/
  317. /*#define PCI_CFG_OFFSET (0x0520)*/
  318. #define PCMCIA_CFG (0x2444)
  319. #define PCMCIA_CTL (0x2448)
  320. #define PCMCIA_CFG2 (0x244C) /* new*/
  321. #define SRAM_PAGE (0x2450)
  322. #define CFG_PULLUPDN (0x2454)
  323. #define CIS_MAP (0x2458) /* new*/
  324. #define ENDIAN_CTRL (0x245C) /* new*/
  325. #define GS_SLEEP_ACCESS (0x2480) /* new*/
  326. #define PCMCIA_PWR_DN (0x04C4)
  327. #define PCI_OUTPUT_DLY_CFG (0x2464) /* new*/
  328. /* VLYNQ registers*/
  329. /* VLYNQ2 was removed from hardware*/
  330. #define VL1_REV_ID (0x8000) /* VLYNQ_REVISION*/
  331. #define VL1_CTL (0x8004) /* VLYNQ_ CONTROL*/
  332. #define VL1_STS (0x8008) /* VLYNQ_STATUS*/
  333. #define VLYNQ_INTVEC (0x800C)
  334. #define VL1_INT_STS (0x8010) /* VLYNQ_INTCR*/
  335. #define VL1_INT_PEND (0x8014) /* VLYNQ_INTSR*/
  336. #define VL1_INT_PTR (0x8018) /* VLYNQ_INTPTR*/
  337. #define VL1_TX_ADDR (0x801C) /* VLYNQ_TX_MAP_ADDR*/
  338. #define VL1_RX_SIZE1 (0x8020) /* VLYNQ_RX_MAP_SIZE1*/
  339. #define VL1_RX_OFF1 (0x8024) /* VLYNQ_RX_MAP_OFFSET1*/
  340. #define VL1_RX_SIZE2 (0x8028) /* VLYNQ_RX_MAP_SIZE2*/
  341. #define VL1_RX_OFF2 (0x802C) /* VLYNQ_RX_MAP_OFFSET2*/
  342. #define VL1_RX_SIZE3 (0x8030) /* VLYNQ_RX_MAP_SIZE3*/
  343. #define VL1_RX_OFF3 (0x8034) /* VLYNQ_RX_MAP_OFFSET3*/
  344. #define VL1_RX_SIZE4 (0x8038) /* VLYNQ_RX_MAP_SIZE4*/
  345. #define VL1_RX_OFF4 (0x803C) /* VLYNQ_RX_MAP_OFFSET4*/
  346. #define VL1_CHIP_VER (0x8040) /* VLYNQ_CHIP_VER*/
  347. #define VLYNQ_AUTONEG (0x8044)
  348. #define VLYNQ_MANNEG (0x8048)
  349. #define VLYNQ_NEGSTAT (0x804C)
  350. #define VLYNQ_ENDIAN (0x805C)
  351. #define VL1_INT_VEC3_0 (0x8060) /* VLYNQ_HW_INT3TO0_CFG*/
  352. #define VL1_INT_VEC7_4 (0x8064) /* VLYNQ_HW_INT7TO4_CFG*/
  353. /* VLYNQ Remote configuration registers*/
  354. #define VL1_REM_REV_ID (0x8080) /* VLYNQ_REM_REVISION*/
  355. #define VL1_REM_CTL (0x8084) /* VLYNQ_REM_ CONTROL*/
  356. #define VL1_REM_STS (0x8088) /* VLYNQ_REM_STATUS*/
  357. #define VLYNQ_REM_INTVEC (0x808C)
  358. #define VL1_REM_INT_STS (0x8090) /* VLYNQ_REM_INTCR*/
  359. #define VL1_REM_INT_PEND (0x8094) /* VLYNQ_REM_INTSR*/
  360. #define VL1_REM_INT_PTR (0x8098) /* VLYNQ_REM_INTPTR*/
  361. #define VL1_REM_TX_ADDR (0x809C) /* VLYNQ_REM_TX_MAP_ADDR*/
  362. #define VL1_REM_RX_SIZE1 (0x80A0) /* VLYNQ_REM_RX_MAP_SIZE1*/
  363. #define VL1_REM_RX_OFF1 (0x80A4) /* VLYNQ_REM_RX_MAP_OFFSET1*/
  364. #define VL1_REM_RX_SIZE2 (0x80A8) /* VLYNQ_REM_RX_MAP_SIZE2*/
  365. #define VL1_REM_RX_OFF2 (0x80AC) /* VLYNQ_REM_RX_MAP_OFFSET2*/
  366. #define VL1_REM_RX_SIZE3 (0x80B0) /* VLYNQ_REM_RX_MAP_SIZE3*/
  367. #define VL1_REM_RX_OFF3 (0x80B4) /* VLYNQ_REM_RX_MAP_OFFSET3*/
  368. #define VL1_REM_RX_SIZE4 (0x80B8) /* VLYNQ_REM_RX_MAP_SIZE4*/
  369. #define VL1_REM_RX_OFF4 (0x80BC) /* VLYNQ_REM_RX_MAP_OFFSET4*/
  370. #define VL1_REM_CHIP_VER (0x80C0) /* VLYNQ_REM_CHIP_VER*/
  371. #define VLYNQ_REM_AUTONEG (0x80C4)
  372. #define VLYNQ_REM_MANNEG (0x80C8)
  373. #define VLYNQ_REM_NEGSTAT (0x80CC)
  374. #define VLYNQ_REM_ENDIAN (0x80DC)
  375. #define VL1_REM_INT_VEC3_0 (0x80E0) /* VLYNQ_REM_HW_INT3TO0_CFG*/
  376. #define VL1_REM_INT_VEC7_4 (0x80E4) /* VLYNQ_REM_HW_INT7TO4_CFG*/
  377. /* PCIIF*/
  378. /**/
  379. #define PCI_ID_REG (0x8400)
  380. #define PCI_STATUS_SET_REG (0x8410)
  381. #define PCI_STATUS_CLR_REG (0x8414)
  382. #define PCI_HIMASK_SET_REG (0x8420)
  383. #define PCI_HIMASK_CLR_REG (0x8424)
  384. #define PCI_AMASK_SET_REG (0x8430)
  385. #define PCI_AMASK_CLR_REG (0x8434)
  386. #define PCI_CLKRUN_REG (0x8438)
  387. #define PCI_BE_VENDOR_ID_REG (0x8500)
  388. #define PCI_BE_COMMAND_REG (0x8504)
  389. #define PCI_BE_REVISION_REG (0x8508)
  390. #define PCI_BE_CL_SIZE_REG (0x850C)
  391. #define PCI_BE_BAR0_MASK_REG (0x8510)
  392. #define PCI_BE_BAR1_MASK_REG (0x8514)
  393. #define PCI_BE_BAR2_MASK_REG (0x8518)
  394. #define PCI_BE_BAR3_MASK_REG (0x851C)
  395. #define PCI_BE_CIS_PTR_REG (0x8528)
  396. #define PCI_BE_SUBSYS_ID_REG (0x852C)
  397. #define PCI_BE_CAP_PTR_REG (0x8534)
  398. #define PCI_BE_INTR_LINE_REG (0x853C)
  399. #define PCI_BE_PM_CAP_REG (0x8540)
  400. #define PCI_BE_PM_CTRL_REG (0x8544)
  401. #define PCI_BE_PM_D0_CTRL_REG (0x8560)
  402. #define PCI_BE_PM_D1_CTRL_REG (0x8564)
  403. #define PCI_BE_PM_D2_CTRL_REG (0x8568)
  404. #define PCI_BE_PM_D3_CTRL_REG (0x856C)
  405. #define PCI_BE_SLV_CFG_REG (0x8580)
  406. #define PCI_BE_ARB_CTRL_REG (0x8584)
  407. #define FER (0x85A0) /* PCI_BE_STSCHG_FE_REG*/
  408. #define FEMR (0x85A4) /* PCI_BE_STSCHG_FEM_REG*/
  409. #define FPSR (0x85A8) /* PCI_BE_STSCHG_FPS_REG*/
  410. #define FFER (0x85AC) /* PCI_BE_STSCHG_FFE_REG*/
  411. #define PCI_BE_BAR0_TRANS_REG (0x85C0)
  412. #define PCI_BE_BAR1_TRANS_REG (0x85C4)
  413. #define PCI_BE_BAR2_TRANS_REG (0x85C8)
  414. #define PCI_BE_BAR3_TRANS_REG (0x85CC)
  415. #define PCI_BE_BAR4_TRANS_REG (0x85D0)
  416. #define PCI_BE_BAR5_TRANS_REG (0x85D4)
  417. #define PCI_BE_BAR0_REG (0x85E0)
  418. #define PCI_BE_BAR1_REG (0x85E4)
  419. #define PCI_BE_BAR2_REG (0x85E8)
  420. #define PCI_BE_BAR3_REG (0x85EC)
  421. #define PCI_PROXY_DATA (0x8700)
  422. #define PCI_PROXY_ADDR (0x8704)
  423. #define PCI_PROXY_CMD (0x8708)
  424. #define PCI_CONTROL (0x8710)
  425. /*#define CPC_REGION (f0100)*/
  426. /*#define VLYNQ1_BASE (f00a0)*/
  427. /*#define VLYNQ2_BASE (f00b0)*/
  428. /*#define SCR_IADDR1 (f00c0)*/
  429. /*#define SCR_IDATA1 (f00c0)*/
  430. /*#define SCR_IADDR2 (f00c0)*/
  431. /*#define SCR_IDATA2 (f00c0)*/
  432. /* SDIO/WSPI*/
  433. #define CCCR_1 (002800)
  434. #define CCCR_2 (002804)
  435. #define CCCR_3 (002808)
  436. #define FUN_BASE_REG_1 (00280C)
  437. #define FUN_BASE_REG_2 (002810)
  438. #define FUN_BASE_REG_3 (002814)
  439. #define ADDR_MAP_SIZE_1 (002818)
  440. #define ADDR_MAP_SIZE_2 (002820)
  441. #define ADDR_MAP_SIZE_3 (002828)
  442. #define ADDR_MAP_OFFSET_1 (00281C)
  443. #define ADDR_MAP_OFFSET_2 (002824)
  444. #define ADDR_MAP_OFFSET_3 (00282C)
  445. #define ADDR_MAP_OFFSET_4 (002830)
  446. #define CIS_OFFSET (002834)
  447. #define CSA_OFFSET (002838)
  448. #define DEBUG_REG_1 (002840)
  449. #define DEBUG_REG_2 (00283C)
  450. #define INTR_MASK (002844)
  451. #define STATUS_REG (002848)
  452. #define WR_ERR_LENGTH (00284C)
  453. #define WR_ERR_ADDR (002850)
  454. #define OCR (002858)
  455. /* UART*/
  456. /* TODO - fill in registers*/
  457. /* USB1.1 registers*/
  458. /**/
  459. #define USB_STS_CLR (0x4000)
  460. #define USB_STS_ND (0x4004)
  461. #define USB_INT_ACK (0x4008)
  462. #define USB_MASK (0x400c)
  463. #define USB_MASK_SET (0x4010)
  464. #define USB_MASK_CLR (0x4014)
  465. #define USB_WU (0x4018)
  466. #define USB_EP0_OUT_PTR (0x401c)
  467. #define USB_EP0_OUT_VLD (0x4020)
  468. #define USB_EP0_OUT_LEN (0x4024)
  469. #define USB_EP0_IN_PTR (0x4028)
  470. #define USB_EP0_IN_VLD (0x402c)
  471. #define USB_EP0_IN_LEN (0x4030)
  472. #define USB_EP1_CFG (0x4034)
  473. #define USB_EP1_OUT_INT_CFG (0x4038)
  474. #define USB_EP1_OUT_PTR (0x403c)
  475. #define USB_EP1_OUT_VLD (0x4040)
  476. #define USB_EP1_OUT_CUR_MBLK (0x4044)
  477. #define USB_EP1_OUT_LEN (0x4048)
  478. #define USB_EP1_IN_START_MBLK (0x404c)
  479. #define USB_EP1_IN_LAST_MBLK (0x4050)
  480. #define USB_EP1_IN_VLD (0x4054)
  481. #define USB_EP2_PTR (0x405c)
  482. #define USB_EP2_VLD (0x4060)
  483. #define USB_EP2_LEN (0x4064)
  484. #define USB_EP3_OUT_PTR0 (0x4068)
  485. #define USB_EP3_OUT_VLD0 (0x406c)
  486. #define USB_EP3_OUT_LEN0 (0x4070)
  487. #define USB_EP3_OUT_PTR1 (0x4074)
  488. #define USB_EP3_OUT_VLD1 (0x4078)
  489. #define USB_EP3_OUT_LEN1 (0x407c)
  490. #define USB_EP3_IN_PTR0 (0x4080)
  491. #define USB_EP3_IN_VLD0 (0x4084)
  492. #define USB_EP3_IN_LEN0 (0x4088)
  493. #define USB_EP3_IN_PTR1 (0x408c)
  494. #define USB_EP3_IN_VLD1 (0x4090)
  495. #define USB_EP3_IN_LEN1 (0x4094)
  496. #define USB_EP1_OUT_END_MBLK (0x4098)
  497. #define USB_EP0_OUT_SETUP (0x409c)
  498. #define USB_EP0_STALL (0x40a0)
  499. #define USB_EP1_IN_OFFSET (0x40a4)
  500. /* Device Configuration registers*/
  501. #define SOR_CFG (0x0800)
  502. #define ECPU_CTRL (0x0804)
  503. #define HI_CFG (0x0808)
  504. #define EE_START (0x080C)
  505. /* IO Control registers*/
  506. #define SERIAL_HOST_IOCFG0 (0x0894) /* new*/
  507. #define SERIAL_HOST_IOCFG1 (0x0898) /* new*/
  508. #define SERIAL_HOST_IOCFG2 (0x089C) /* new*/
  509. #define SERIAL_HOST_IOCFG3 (0x08A0) /* new*/
  510. #define GPIO_IOCFG0 (0x08F4) /* new*/
  511. #define GPIO_IOCFG1 (0x08F8) /* new*/
  512. #define GPIO_IOCFG2 (0x08FC) /* new*/
  513. #define GPIO_IOCFG3 (0x0900) /* new*/
  514. #define CHIP_ID_B (0x5674) /* new*/
  515. #define CHIP_ID CHIP_ID_B/* Leave for TNETW compatability*/
  516. #define CHIP_ID_1251_PG10 (0x7010101)
  517. #define CHIP_ID_1251_PG11 (0x7020101)
  518. #define CHIP_ID_1251_PG12 (0x7030101)
  519. #define SYSTEM (0x0810)
  520. #define PCI_ARB_CFG (0x0814)
  521. #define BOOT_IRAM_CFG (0x0818)
  522. #define ENABLE (0x5450)
  523. #define MBLK_CFG (0x5460)
  524. #define RS232_BITINTERVAL (0x0824)
  525. #define TEST_PORT (0x096C)
  526. #define DEBUG_PORT (0x0970)
  527. /* GPIO registers*/
  528. #define GPIO_OE (0x082C) /* 22 GPIOs*/
  529. #define GPIO_OUT (0x0834)
  530. #define GPIO_IN (0x0830)
  531. #define GPO_CFG (0x083C)
  532. #define PWRDN_BUS_L (0x0844)
  533. #define PWRDN_BUS_H (0x0848)
  534. #define DIE_ID_L (0x088C)
  535. #define DIE_ID_H (0x0890)
  536. /* Power Management registers*/
  537. /* */
  538. #define ELP_START (0x5800)
  539. #define ELP_CFG_MODE (0x5804)
  540. #define ELP_CMD (0x5808)
  541. #define PLL_CAL_TIME (0x5810)
  542. #define CLK_REQ_TIME (0x5814)
  543. #define CLK_BUF_TIME (0x5818)
  544. #define CFG_PLL_SYNC_CNT (0x5820) /* Points to the CFG_PLL_SYNC_CNT_xx registers set*/
  545. #define CFG_PLL_SYNC_CNT_I (0x5820)
  546. #define CFG_PLL_SYNC_CNT_II (0x5824)
  547. #define CFG_PLL_SYNC_CNT_III (0x5828)
  548. #define CFG_ELP_SLEEP_CNT (0x5830) /* Points to the CFG_ELP_SLEEP_CNT_xx registers set*/
  549. #define CFG_ELP_SLEEP_CNT_I (0x5830)
  550. #define CFG_ELP_SLEEP_CNT_II (0x5834)
  551. #define CFG_ELP_SLEEP_CNT_III (0x5838)
  552. #define CFG_ELP_SLEEP_CNT_IV (0x583c)
  553. #define ELP_SLEEP_CNT (0x5840) /* Points to the ELP_SLEEP_CNT_xx registers set*/
  554. #define ELP_SLEEP_CNT_I (0x5840)
  555. #define ELP_SLEEP_CNT_II (0x5844)
  556. #define ELP_SLEEP_CNT_III (0x5848)
  557. #define ELP_SLEEP_CNT_IV (0x584c)
  558. #define ELP_WAKE_UP_STS (0x5850)
  559. #define CFG_SLP_CLK_SEL (0x5860)
  560. #define CFG_SLP_CLK_EN (0x5870)
  561. #define CFG_WAKE_UP_EN_I (0x5880)
  562. #define CFG_WAKE_UP_EN_II (0x5884)
  563. #define CFG_WAKE_UP_EN_III (0x5888)
  564. #define CFG_ELP_PWRDN_I (0x5890)
  565. #define CFG_ELP_PWRDN_II (0x5894)
  566. #define CFG_ELP_PWRDN_III (0x5898)
  567. #define CFG_POWER_DOWN_I (0x58a0)
  568. #define CFG_POWER_DOWN_II (0x58a4)
  569. #define CFG_POWER_DOWN_III (0x58a8)
  570. #define CFG_BUCK_TESTMODE_I (0x58b0)
  571. #define CFG_BUCK_TESTMODE_II (0x58b4)
  572. #define POWER_STATUS_I (0x58C0)
  573. #define POWER_STATUS_II (0x58C4)
  574. #define DIGLDO_BIAS_PROG_I (0x58d0)
  575. #define DIGLDO_BIAS_PROG_II (0x58d4)
  576. #define LDO2P8_BIAS_PROG_I (0x58e0)
  577. #define LDO2P8_BIAS_PROG_II (0x58e4)
  578. #define ADCLDO_BIAS_PROG (0x58f0)
  579. #define REFSYS_PROG_I (0x5910)
  580. #define REFSYS_PROG_II (0x5914)
  581. #define PM_TEST_I (0x5920)
  582. #define PM_TEST_II (0x5924)
  583. #define POR_PROG (0x5930)
  584. #define TEST_PIN_DIR_I (0x5940)
  585. #define TEST_PIN_DIR_II (0x5944)
  586. #define PROC_CTL (0x5950)
  587. #define ADC_REF_WAKEUP_I (0x5960)
  588. #define ADC_REF_WAKEUP_II (0x5964)
  589. #define ADC_REF_WAKEUP_III (0x5968)
  590. #define ADC_REF_WAKEUP_IV (0x596C)
  591. #define VREG_WAKEUP_I (0x5970)
  592. #define VREG_WAKEUP_II (0x5974)
  593. #define VREG_WAKEUP_III (0x5978)
  594. #define VREG_WAKEUP_IV (0x597C)
  595. #define PLL_WAKEUP_I (0x5980)
  596. #define PLL_WAKEUP_II (0x5984)
  597. #define PLL_WAKEUP_III (0x5988)
  598. #define PLL_WAKEUP_IV (0x598C)
  599. #define XTALOSC_WAKEUP_I (0x5990)
  600. #define XTALOSC_WAKEUP_II (0x5994)
  601. #define XTALOSC_WAKEUP_III (0x5998)
  602. #define XTALOSC_WAKEUP_IV (0x599C)
  603. /* ----------*/
  604. #define POWER_MGMT2 (0x0840)
  605. #define POWER_MGMT (0x5098)
  606. #define MAC_HW_DOZE (0x090c)
  607. #define ECPU_SLEEP (0x0840)
  608. #define DOZE_CFG (0x54bc)
  609. #define DOZE2_CFG (0x081c)
  610. #define WAKEUP_CFG (0x54c0)
  611. #define WAKEUP_TIME_L (0x54c8)
  612. #define WAKEUP_TIME_H (0x54c4)
  613. /**/
  614. /*#define CPU_WAIT_CFG (f0020)*/
  615. /*#define CFG_QOS_ACM (f0046)*/
  616. /* Scratch Pad registers*/
  617. #define SCR_PAD0 (0x5608)
  618. #define SCR_PAD1 (0x560C)
  619. #define SCR_PAD2 (0x5610)
  620. #define SCR_PAD3 (0x5614)
  621. #define SCR_PAD4 (0x5618)
  622. #define SCR_PAD4_SET (0x561C)
  623. #define SCR_PAD4_CLR (0x5620)
  624. #define SCR_PAD5 (0x5624)
  625. #define SCR_PAD5_SET (0x5628)
  626. #define SCR_PAD5_CLR (0x562C)
  627. #define SCR_PAD6 (0x5630)
  628. #define SCR_PAD7 (0x5634)
  629. #define SCR_PAD8 (0x5638)
  630. #define SCR_PAD9 (0x563C)
  631. /* Spare registers*/
  632. #define SPARE_A1 (0x0994)
  633. #define SPARE_A2 (0x0998)
  634. #define SPARE_A3 (0x099C)
  635. #define SPARE_A4 (0x09A0)
  636. #define SPARE_A5 (0x09A4)
  637. #define SPARE_A6 (0x09A8)
  638. #define SPARE_A7 (0x09AC)
  639. #define SPARE_A8 (0x09B0)
  640. #define SPARE_B1 (0x5420)
  641. #define SPARE_B2 (0x5424)
  642. #define SPARE_B3 (0x5428)
  643. #define SPARE_B4 (0x542C)
  644. #define SPARE_B5 (0x5430)
  645. #define SPARE_B6 (0x5434)
  646. #define SPARE_B7 (0x5438)
  647. #define SPARE_B8 (0x543C)
  648. /* RMAC registers (Raleigh MAC)*/
  649. /* Station registers*/
  650. #define DEV_MODE (0x5464)
  651. #define STA_ADDR_L (0x546C)
  652. #define STA_ADDR_H (0x5470)
  653. #define BSSID_L (0x5474)
  654. #define BSSID_H (0x5478)
  655. #define AID_CFG (0x547C)
  656. #define BASIC_RATE_CFG (0x4C6C)
  657. #define BASIC_RATE_TX_CFG (0x55F0)
  658. /* Protocol timers registers*/
  659. #define IFS_CFG0 (0x5494)
  660. #define IFS_CFG1 (0x5498)
  661. #define TIMEOUT_CFG (0x549C)
  662. #define CONT_WIND_CFG (0x54A0)
  663. #define BCN_INT_CFG (0x54A4)
  664. #define RETRY_CFG (0x54A8)
  665. #define DELAY_CFG (0x54B0)
  666. /* Hardware Override registers*/
  667. #define CCA_CFG (0x54CC)
  668. #define CCA_FILTER_CFG (0x5480)
  669. #define RADIO_PLL_CFG (0x555C)
  670. #define CCA_MON (0x54D0)
  671. #define TX_FRM_CTL (0x54D4)
  672. #define CONT_TX_EN (0x50EC)
  673. #define PHY_STANDBY_EN (0x5668)
  674. /* Transmit Setup registers*/
  675. #define TX_PING_PONG (0x5090)
  676. #define TX_CFG0 (0x5000)
  677. #define TX_CFG1 (0x5004)
  678. #define TX_CFG2 (0x5008)
  679. #define MAX_LIFETIME (0x50FC)
  680. #define TX_PANG_SEL (0x50E0)
  681. #define TX_PANG0 (0x50A0)
  682. #define TX_PING0 (0x5010)
  683. #define TX_PONG0 (0x5050)
  684. #define TX_PANG1 (0x50A4)
  685. #define TX_PING1 (0x5014)
  686. #define TX_PONG1 (0x5054)
  687. #define TX_PANG2 (0x50A8)
  688. #define TX_PING2 (0x5018)
  689. #define TX_PONG2 (0x5058)
  690. #define TX_PANG3 (0x50AC)
  691. #define TX_PING3 (0x501C)
  692. #define TX_PONG3 (0x505C)
  693. #define TX_PANG4 (0x50B0)
  694. #define TX_PING4 (0x5020)
  695. #define TX_PONG4 (0x5060)
  696. #define TX_PANG5 (0x50B4)
  697. #define TX_PING5 (0x5024)
  698. #define TX_PONG5 (0x5064)
  699. #define TX_PANG6 (0x50B8)
  700. #define TX_PING6 (0x5028)
  701. #define TX_PONG6 (0x5068)
  702. #define TX_PANG7 (0x50BC)
  703. #define TX_PING7 (0x502C)
  704. #define TX_PONG7 (0x506C)
  705. #define TX_PANG8 (0x50C0)
  706. #define TX_PING8 (0x5030)
  707. #define TX_PONG8 (0x5070)
  708. #define TX_PANG9 (0x50C4)
  709. #define TX_PING9 (0x5034)
  710. #define TX_PONG9 (0x5074)
  711. #define TX_PANG10 (0x50C8)
  712. #define TX_PING10 (0x5038)
  713. #define TX_PONG10 (0x5078)
  714. #define TX_PANG11 (0x50CC)
  715. #define TX_PING11 (0x503C)
  716. #define TX_PONG11 (0x507C)
  717. /* Transmit Status registers*/
  718. #define TX_STATUS (0x509C)
  719. #define TX_PANG_EXCH (0x50D0)
  720. #define TX_PING_EXCH (0x5040)
  721. #define TX_PONG_EXCH (0x5080)
  722. #define TX_PANG_ATT (0x50D4)
  723. #define TX_PING_ATT (0x5044)
  724. #define TX_PONG_ATT (0x5084)
  725. #define TX_PANG_TIMESTAMP (0x50DC)
  726. #define TX_PING_TIMESTAMP (0x504C)
  727. #define TX_PONG_TIMESTAMP (0x508C)
  728. /* Transmit State registers*/
  729. #define TX_STATE (0x5094)
  730. #define TX_PANG_OVRD_CFG (0x50D8)
  731. #define TX_PING_OVRD_CFG (0x5048)
  732. #define TX_PONG_OVRD_CFG (0x5088)
  733. #define TX_HOLD_CFG (0x54D8)
  734. #define TSF_ADJ_CFG1 (0x54DC)
  735. #define TSF_ADJ_CFG2 (0x54E0)
  736. #define TSF_ADJ_CFG3 (0x54E4)
  737. #define TSF_ADJ_CFG4 (0x54E8)
  738. #define CFG_OFDM_TIMES0 (0x5648)
  739. #define CFG_OFDM_TIMES1 (0x564C)
  740. /* Beacon/Probe Response registers*/
  741. #define PRB_ADDR (0x54EC)
  742. #define PRB_LENGTH (0x54F0)
  743. #define BCN_ADDR (0x54F4)
  744. #define BCN_LENGTH (0x54F8)
  745. #define TIM_VALID0 (0x54FC)
  746. #define TIM_ADDR0 (0x5500)
  747. #define TIM_LENGTH0 (0x5504)
  748. #define TIM_VALID1 (0x5654)
  749. #define TIM_ADDR1 (0x5658)
  750. #define TIM_LENGTH1 (0x565C)
  751. #define TIM_SELECT (0x5660)
  752. #define TSF_CFG (0x5508)
  753. /* Other Hardware Generated Frames regi*/
  754. #define CTL_FRM_CFG (0x550C)
  755. #define MGMT_FRM_CFG (0x5510)
  756. #define CFG_ANT_SEL (0x5664)
  757. #define RMAC_ADDR_BASE (0x5680) /* new*/
  758. /* Protocol Interface Read Write Interf*/
  759. #define TXSIFS_TIMER (0x4C00)
  760. #define TXPIFS_TIMER (0x4C04)
  761. #define TXDIFS_TIMER (0x4C08)
  762. #define SLOT_TIMER (0x4C0C)
  763. #define BACKOFF_TIMER (0x4C10)
  764. #define BCN_PSP_TIMER (0x4C14)
  765. #define NAV (0x4C18)
  766. #define TSF_L (0x4C1C)
  767. #define TSF_H (0x4C20)
  768. #define TSF_PREV_L (0x4CC4) /* new */
  769. #define TSF_PREV_H (0x4CC8) /* new */
  770. #define TOUT_TIMER (0x4C2C)
  771. #define NEXT_TBTT_L (0x4C30)
  772. #define NEXT_TBTT_H (0x4C34)
  773. #define DTIM_CNT (0x4C38)
  774. #define CONT_WIND (0x4C3C)
  775. #define PRSP_REQ (0x4C40)
  776. #define PRSP_DA_L (0x4C44)
  777. #define PRSP_DA_H (0x4C48)
  778. #define PRSP_RETRY (0x4C4C)
  779. #define PSPOLL_REQ (0x4C50)
  780. #define NEXT_SEQ_NUM (0x4C54)
  781. #define PRSP_SEQ_NUM (0x4C58)
  782. #define BCN_SEQ_NUM (0x4C5C)
  783. #define MED_USAGE (0x4C24)
  784. #define MED_USAGE_TM (0x4C28)
  785. #define PRB_DLY (0x4C60)
  786. #define STA_SRC (0x4C64)
  787. #define STA_LRC (0x4C68)
  788. #define CFG_ACM (0x4C70)
  789. #define RAND_NUMB (0x4C6C)
  790. #define CFG_ACK_CTS_DOT11A (0x4C74)
  791. #define CFG_ACK_CTS_DOT11B (0x4C78)
  792. #define ACM_IFS_CFG0 (0x4C7C)
  793. #define ACM_IFS_CFG1 (0x4C80)
  794. #define ACM_IFS_CFG2 (0x4C84)
  795. #define ACM_IFS_CFG3 (0x4C88)
  796. #define ACK_CTS_FRM_CFG (0x4C8C)
  797. #define CFG_RX_TSTMP_DLY0 (0x4C90)
  798. #define CFG_RX_TSTMP_DLY1 (0x4C94)
  799. #define CFG_RX_TSTMP_DLY2 (0x4C98)
  800. #define CFG_RX_TSTMP_DLY3 (0x4C9C)
  801. #define CCA_BUSY (0x4CA0)
  802. #define CCA_BUSY_CLR (0x4CA4)
  803. #define CCA_IDLE (0x4CA8)
  804. #define CCA_IDLE_CLR (0x4CAC)
  805. /* Receive Manager registers*/
  806. #define RX_HEAD_PTR (0x567C) /* new*/
  807. #define RX_TAIL_PTR (0x4898) /* new*/
  808. #define RX_CURR_PTR (0x5678) /* new*/
  809. #define RX_RESET (0x4800)
  810. #define RX_MODMODE (0x4838) /* new*/
  811. #define MAC_HEADER_BYTECNT (0x4890)
  812. #define RX_MAC_BYTECNT_INT (0x489C)
  813. #define MAC_HEADER_WORD0 (0x4868)
  814. #define MAC_HEADER_WORD1 (0x486C)
  815. #define MAC_HEADER_WORD2 (0x4870)
  816. #define MAC_HEADER_WORD3 (0x4874)
  817. #define MAC_HEADER_WORD4 (0x4878)
  818. #define MAC_HEADER_WORD5 (0x487C)
  819. #define MAC_HEADER_WORD6 (0x4880)
  820. #define MAC_HEADER_WORD7 (0x4884)
  821. #define MAC_HEADER_WORD8 (0x4888)
  822. #define MAC_HEADER_WORD9 (0x488C)
  823. #define RX_CFG (0x5514)
  824. #define RX_FILTER_CFG (0x55B4)
  825. #define RX_MC0_L (0x5518)
  826. #define RX_MC0_H (0x551C)
  827. #define RX_MC1_L (0x5520)
  828. #define RX_MC1_H (0x5524)
  829. #define STA_SSID0 (0x4804)
  830. #define STA_SSID1 (0x4808)
  831. #define STA_SSID2 (0x480C)
  832. #define STA_SSID3 (0x4810)
  833. #define STA_SSID4 (0x4814)
  834. #define STA_SSID5 (0x4818)
  835. #define STA_SSID6 (0x481C)
  836. #define STA_SSID7 (0x4820)
  837. #define SSID_LEN (0x4824)
  838. #define RX_FREE_MEM (0x5528)
  839. #define RX_CURR_MEM (0x552C)
  840. #define MAC_TIMESTAMP (0x5560) /* Check place*/
  841. #define RX_TIMESTAMP (0x5564)
  842. #define RX_FRM_PTR (0x5568)
  843. #define RX_FRM_LEN (0x556C)
  844. #define RX_PLCP_HDR (0x5570)
  845. #define RX_PLCP_SIGNAL (0x5574)
  846. #define RX_PLCP_SERVICE (0x5578) /* 16 bits ?*/
  847. #define RX_PLCP_LENGTH (0x557C)
  848. #define RX_FRM_CTL (0x5580)
  849. #define RX_DUR_ID (0x5584)
  850. #define RX_ADDR1_L (0x5588)
  851. #define RX_ADDR1_H (0x558C)
  852. #define RX_ADDR2_L (0x5590)
  853. #define RX_ADDR2_H (0x5594)
  854. #define RX_ADDR3_L (0x5598)
  855. #define RX_ADDR3_H (0x559C)
  856. #define RX_SEQ_CTL (0x55A0)
  857. #define RX_WEP_IV (0x55A4)
  858. #define RX_TIME_L (0x55A8)
  859. #define RX_TIME_H (0x55AC)
  860. #define RX_STATUS (0x55B0)
  861. #define PLCP_ERR_CNT (0x4828)
  862. #define FCS_ERR_CNT (0x482C)
  863. #define RX_OVERFLOW_CNT (0x4830)
  864. #define RX_DEBUG1 (0x4858)
  865. #define RX_DEBUG2 (0x485C)
  866. #define RX_QOS_CFG (0x4848)
  867. #define RX_QOS_CTL (0x4844)
  868. #define RX_QOS_STATUS (0x4854) /* new name RX_QOS_STS*/
  869. #define RX_TXOP_HOLDER_L (0x484C)
  870. #define RX_TXOP_HOLDER_H (0x4850)
  871. #define RX_FRM_CNT (0x4834) /* what is RX_FRM_CTR*/
  872. #define CONS_FCS_ERR_CNT (0x483C)
  873. #define CONS_FCS_ERR_CFG (0x4840)
  874. #define RX_QOS_CTL_MASK (0x48A0) /* new*/
  875. #define RX_QOS_ACK_EN (0x48A4) /* new*/
  876. #define RX_QOS_NOACK_EN (0x48A8) /* new*/
  877. #define RX_QOS_ACK_BITMAP (0x48AC) /* new*/
  878. /* Baseband Processor registers*/
  879. #define SBB_CFG (0x55C8)
  880. #define SBB_ADDR (0x55D0)
  881. #define SBB_DATA (0x55D4)
  882. #define SBB_CTL (0x55D8)
  883. /* Radio Control Interface registers*/
  884. #define RCI_CTL (0x55DC)
  885. #define RCI_DATA (0x55E0)
  886. #define RCI_CFG1 (0x55E4)
  887. #define RCI_CFG2 (0x55E8)
  888. #define RCI_CFG3 (0x55EC)
  889. #define TNET1150_LAST_REG_ADDR PCI_CONTROL
  890. /* Missing registers*/
  891. #endif