Lines Matching +full:0 +full:x8030

28 #define	PCI_VENDOR_ATHEROS		0x168c
30 #define PCI_PRODUCT_ATHEROS_AR5210 0x0007
31 #define PCI_PRODUCT_ATHEROS_AR5210_OLD 0x0004
34 #define AR_TXDP0 0x0000 /* TX queue pointer 0 register */
35 #define AR_TXDP1 0x0004 /* TX queue pointer 1 register */
36 #define AR_CR 0x0008 /* Command register */
37 #define AR_RXDP 0x000c /* RX queue descriptor ptr register */
38 #define AR_CFG 0x0014 /* Configuration and status register */
39 #define AR_ISR 0x001c /* Interrupt status register */
40 #define AR_IMR 0x0020 /* Interrupt mask register */
41 #define AR_IER 0x0024 /* Interrupt global enable register */
42 #define AR_BCR 0x0028 /* Beacon control register */
43 #define AR_BSR 0x002c /* Beacon status register */
44 #define AR_TXCFG 0x0030 /* TX configuration register */
45 #define AR_RXCFG 0x0034 /* RX configuration register */
46 #define AR_MIBC 0x0040 /* MIB control register */
47 #define AR_TOPS 0x0044 /* Timeout prescale register */
48 #define AR_RXNOFRM 0x0048 /* RX no frame timeout register */
49 #define AR_TXNOFRM 0x004c /* TX no frame timeout register */
50 #define AR_RPGTO 0x0050 /* RX frame gap timeout register */
51 #define AR_RFCNT 0x0054 /* RX frame count limit register */
52 #define AR_MISC 0x0058 /* Misc control and status register */
53 #define AR_RC 0x4000 /* Reset control */
54 #define AR_SCR 0x4004 /* Sleep control */
55 #define AR_INTPEND 0x4008 /* Interrupt pending */
56 #define AR_SFR 0x400c /* Force sleep */
57 #define AR_PCICFG 0x4010 /* PCI configuration */
58 #define AR_GPIOCR 0x4014 /* GPIO configuration */
59 #define AR_GPIODO 0x4018 /* GPIO data output */
60 #define AR_GPIODI 0x401c /* GPIO data input */
61 #define AR_SREV 0x4020 /* Silicon revision */
63 #define AR_EP_AIR_BASE 0x6000 /* EEPROM access initiation regs base */
65 #define AR_EP_RDATA 0x6800 /* EEPROM read data register */
66 #define AR_EP_STA 0x6c00 /* EEPROM access status register */
68 #define AR_STA_ID0 0x8000 /* Lower 32bits of MAC address */
69 #define AR_STA_ID1 0x8004 /* Upper 16bits of MAC address */
70 #define AR_BSS_ID0 0x8008 /* Lower 32bits of BSSID */
71 #define AR_BSS_ID1 0x800c /* Upper 16bits of BSSID */
72 #define AR_SLOT_TIME 0x8010 /* Length of a back-off */
73 #define AR_TIME_OUT 0x8014 /* Timeout to wait for ACK and CTS */
74 #define AR_RSSI_THR 0x8018 /* Beacon RSSI warning threshold */
75 #define AR_RETRY_LMT 0x801c /* Short and long frame retry limit */
76 #define AR_USEC 0x8020 /* Transmit latency */
77 #define AR_BEACON 0x8024 /* Beacon control */
78 #define AR_CFP_PERIOD 0x8028 /* CFP period */
79 #define AR_TIMER0 0x802c /* Next beacon time */
80 #define AR_TIMER1 0x8030 /* Next DMA beacon alert time */
81 #define AR_TIMER2 0x8034 /* Next software beacon alert time */
82 #define AR_TIMER3 0x8038 /* Next ATIM window time */
83 #define AR_IFS0 0x8040 /* Protocol timers */
84 #define AR_IFS1 0x8044 /* Protocol time and control */
85 #define AR_CFP_DUR 0x8048 /* Maximum CFP duration */
86 #define AR_RX_FILTER 0x804c /* Receive filter */
87 #define AR_MCAST_FIL0 0x8050 /* Lower 32bits of mcast filter mask */
88 #define AR_MCAST_FIL1 0x8054 /* Upper 16bits of mcast filter mask */
89 #define AR_TX_MASK0 0x8058 /* Lower 32bits of TX mask */
90 #define AR_TX_MASK1 0x805c /* Upper 16bits of TX mask */
91 #define AR_CLR_TMASK 0x8060 /* Clear TX mask */
92 #define AR_TRIG_LEV 0x8064 /* Minimum FIFO fill level before TX */
93 #define AR_DIAG_SW 0x8068 /* PCU control */
94 #define AR_TSF_L32 0x806c /* Lower 32bits of local clock */
95 #define AR_TSF_U32 0x8070 /* Upper 32bits of local clock */
96 #define AR_LAST_TSTP 0x8080 /* Lower 32bits of last beacon tstamp */
97 #define AR_RETRY_CNT 0x8084 /* Current short or long retry cnt */
98 #define AR_BACKOFF 0x8088 /* Back-off status */
99 #define AR_NAV 0x808c /* Current NAV value */
100 #define AR_RTS_OK 0x8090 /* RTS success counter */
101 #define AR_RTS_FAIL 0x8094 /* RTS failure counter */
102 #define AR_ACK_FAIL 0x8098 /* ACK failure counter */
103 #define AR_FCS_FAIL 0x809c /* FCS failure counter */
104 #define AR_BEACON_CNT 0x80a0 /* Valid beacon counter */
105 #define AR_KEYTABLE_0 0x9000 /* Encryption key table */
108 #define AR_CR_TXE0 0x00000001 /* TX queue 0 enable */
109 #define AR_CR_TXE1 0x00000002 /* TX queue 1 enable */
110 #define AR_CR_RXE 0x00000004 /* RX enable */
111 #define AR_CR_TXD0 0x00000008 /* TX queue 0 disable */
112 #define AR_CR_TXD1 0x00000010 /* TX queue 1 disable */
113 #define AR_CR_RXD 0x00000020 /* RX disable */
114 #define AR_CR_SWI 0x00000040 /* software interrupt */
118 #define AR_CFG_SWTD 0x00000001 /* BE for TX desc */
119 #define AR_CFG_SWTB 0x00000002 /* BE for TX data */
120 #define AR_CFG_SWRD 0x00000004 /* BE for RX desc */
121 #define AR_CFG_SWRB 0x00000008 /* BE for RX data */
122 #define AR_CFG_SWRG 0x00000010 /* BE for registers */
123 #define AR_CFG_EEBS 0x00000200 /* EEPROM busy */
124 #define AR_CFG_TXCNT 0x00007800 /* number of TX desc in Q */
126 #define AR_CFG_TXFSTAT 0x00008000 /* TX DMA status */
127 #define AR_CFG_TXFSTRT 0x00010000 /* re-enable TX DMA */
131 #define AR_ISR_RXOK_INT 0x00000001 /* RX frame OK */
132 #define AR_ISR_RXDESC_INT 0x00000002 /* RX intr request */
133 #define AR_ISR_RXERR_INT 0x00000004 /* RX error */
134 #define AR_ISR_RXNOFRM_INT 0x00000008 /* no frame received */
135 #define AR_ISR_RXEOL_INT 0x00000010 /* RX desc empty */
136 #define AR_ISR_RXORN_INT 0x00000020 /* RX fifo overrun */
137 #define AR_ISR_TXOK_INT 0x00000040 /* TX frame OK */
138 #define AR_ISR_TXDESC_INT 0x00000080 /* TX intr request */
139 #define AR_ISR_TXERR_INT 0x00000100 /* TX error */
140 #define AR_ISR_TXNOFRM_INT 0x00000200 /* no frame transmitted */
141 #define AR_ISR_TXEOL_INT 0x00000400 /* TX desc empty */
142 #define AR_ISR_TXURN_INT 0x00000800 /* TX fifo underrun */
143 #define AR_ISR_MIB_INT 0x00001000 /* MIB interrupt */
144 #define AR_ISR_SWI_INT 0x00002000 /* software interrupt */
145 #define AR_ISR_RXPHY_INT 0x00004000 /* PHY RX error */
146 #define AR_ISR_RXKCM_INT 0x00008000 /* Key cache miss */
147 #define AR_ISR_SWBA_INT 0x00010000 /* software beacon alert */
148 #define AR_ISR_BRSSI_INT 0x00020000 /* beacon threshold */
149 #define AR_ISR_BMISS_INT 0x00040000 /* beacon missed */
150 #define AR_ISR_MCABT_INT 0x00100000 /* master cycle abort */
151 #define AR_ISR_SSERR_INT 0x00200000 /* SERR on PCI */
152 #define AR_ISR_DPERR_INT 0x00400000 /* Parity error on PCI */
153 #define AR_ISR_GPIO_INT 0x01000000 /* GPIO interrupt */
159 #define AR_IMR_RXOK_INT 0x00000001 /* RX frame OK */
160 #define AR_IMR_RXDESC_INT 0x00000002 /* RX intr request */
161 #define AR_IMR_RXERR_INT 0x00000004 /* RX error */
162 #define AR_IMR_RXNOFRM_INT 0x00000008 /* no frame received */
163 #define AR_IMR_RXEOL_INT 0x00000010 /* RX desc empty */
164 #define AR_IMR_RXORN_INT 0x00000020 /* RX fifo overrun */
165 #define AR_IMR_TXOK_INT 0x00000040 /* TX frame OK */
166 #define AR_IMR_TXDESC_INT 0x00000080 /* TX intr request */
167 #define AR_IMR_TXERR_INT 0x00000100 /* TX error */
168 #define AR_IMR_TXNOFRM_INT 0x00000200 /* no frame transmitted */
169 #define AR_IMR_TXEOL_INT 0x00000400 /* TX desc empty */
170 #define AR_IMR_TXURN_INT 0x00000800 /* TX fifo underrun */
171 #define AR_IMR_MIB_INT 0x00001000 /* MIB interrupt */
172 #define AR_IMR_SWI_INT 0x00002000 /* software interrupt */
173 #define AR_IMR_RXPHY_INT 0x00004000 /* PHY RX error */
174 #define AR_IMR_RXKCM_INT 0x00008000 /* Key cache miss */
175 #define AR_IMR_SWBA_INT 0x00010000 /* software beacon alert */
176 #define AR_IMR_BRSSI_INT 0x00020000 /* beacon threshold */
177 #define AR_IMR_BMISS_INT 0x00040000 /* beacon missed */
178 #define AR_IMR_MCABT_INT 0x00100000 /* master cycle abort */
179 #define AR_IMR_SSERR_INT 0x00200000 /* SERR on PCI */
180 #define AR_IMR_DPERR_INT 0x00400000 /* Parity error on PCI */
181 #define AR_IMR_GPIO_INT 0x01000000 /* GPIO interrupt */
184 #define AR_IER_DISABLE 0x00000000 /* pseudo-flag */
185 #define AR_IER_ENABLE 0x00000001 /* global interrupt enable */
188 #define AR_BCR_BCMD 0x00000001 /* ad hoc beacon mode */
189 #define AR_BCR_BDMAE 0x00000002 /* beacon DMA enable */
190 #define AR_BCR_TQ1FV 0x00000004 /* use TXQ1 for non-beacon */
191 #define AR_BCR_TQ1V 0x00000008 /* TXQ1 valid for beacon */
192 #define AR_BCR_BCGET 0x00000010 /* force a beacon fetch */
195 #define AR_BSR_BDLYSW 0x00000001 /* software beacon delay */
196 #define AR_BSR_BDLYDMA 0x00000002 /* DMA beacon delay */
197 #define AR_BSR_TXQ1F 0x00000004 /* TXQ1 fetch */
198 #define AR_BSR_ATIMDLY 0x00000008 /* ATIM delay */
199 #define AR_BSR_SNPBCMD 0x00000100 /* snapshot of BCMD */
200 #define AR_BSR_SNPBDMAE 0x00000200 /* snapshot of BDMAE */
201 #define AR_BSR_SNPTQ1FV 0x00000400 /* snapshot of TQ1FV */
202 #define AR_BSR_SNPTQ1V 0x00000800 /* snapshot of TQ1V */
203 #define AR_BSR_SNAPPEDBCRVALID 0x00001000 /* snapshot of BCR are valid */
204 #define AR_BSR_SWBA_CNT 0x00ff0000 /* software beacon alert cnt */
209 #define AR_TXCFG_SDMAMR 0x00000007 /* DMA burst size 2^(2+x) */
210 #define AR_TXCFG_TXFSTP 0x00000008 /* Stop TX DMA on filtered */
211 #define AR_TXCFG_TXFULL 0x00000070 /* TX DMA desc Q full thresh */
212 #define AR_TXCFG_TXCONT_EN 0x00000080 /* Enable continuous TX mode */
215 #define AR_RXCFG_SDMAMW 0x00000007 /* DMA burst size 2^(2+x) */
216 #define AR_RXCFG_ZLFDMA 0x00000010 /* enable zero length DMA */
219 #define AR_DMASIZE_4B 0 /* DMA size 4 bytes */
228 #define AR_MIBC_COW 0x00000001 /* counter overflow warning */
229 #define AR_MIBC_FMC 0x00000002 /* freeze MIB counters */
230 #define AR_MIBC_CMC 0x00000004 /* clear MIB counters */
231 #define AR_MIBC_MCS 0x00000008 /* MIB counter strobe */
233 #define AR_RFCNT_RFCL 0x0000000f /* RX frame count limit */
235 #define AR_MISC_LED_DECAY 0x001c0000 /* LED decay rate */
236 #define AR_MISC_LED_BLINK 0x00e00000 /* LED blink rate */
238 #define AR_RC_RPCU 0x00000001 /* PCU Warm Reset */
239 #define AR_RC_RDMA 0x00000002 /* DMA Warm Reset */
240 #define AR_RC_RMAC 0x00000004 /* MAC Warm Reset */
241 #define AR_RC_RPHY 0x00000008 /* PHY Warm Reset */
242 #define AR_RC_RPCI 0x00000010 /* PCI Core Warm Reset */
245 #define AR_SCR_SLDUR 0x0000ffff /* sleep duration */
246 #define AR_SCR_SLE 0x00030000 /* sleep enable */
251 * AR_SCR_SLE_WAKE 0x00000000
252 * AR_SCR_SLE_SLP 0x00010000
253 * AR_SCR_SLE_ALLOW 0x00020000
259 #define AR_SCR_SLE_WAKE 0 /* force wake */
264 #define AR_INTPEND_IP 0x00000001 /* interrupt pending */
267 #define AR_SFR_SF 0x00000001 /* force sleep immediately */
269 #define AR_PCICFG_EEPROMSEL 0x00000001 /* EEPROM access enable */
270 #define AR_PCICFG_CLKRUNEN 0x00000004 /* CLKRUN enable */
271 #define AR_PCICFG_LED_PEND 0x00000020 /* LED for assoc pending */
272 #define AR_PCICFG_LED_ACT 0x00000040 /* LED for assoc active */
273 #define AR_PCICFG_SL_INTEN 0x00000800 /* Enable sleep intr */
274 #define AR_PCICFG_LED_BCTL 0x00001000 /* LED blink for local act */
275 #define AR_PCICFG_SL_INPEN 0x00002800 /* sleep even intr pending */
276 #define AR_PCICFG_SPWR_DN 0x00010000 /* sleep indication */
281 #define AR_GPIOCR_IN(n) (0<<((n)*2)) /* input-only */
282 #define AR_GPIOCR_OUT0(n) (1<<((n)*2)) /* output-only if GPIODO = 0 */
287 #define AR_GPIOCR_INT_ENA 0x00008000 /* Enable GPIO interrupt */
288 #define AR_GPIOCR_INT_SELL 0x00000000 /* Interrupt if pin is low */
289 #define AR_GPIOCR_INT_SELH 0x00010000 /* Interrupt if pin is high */
295 #define AR_EP_STA_RDERR 0x00000001 /* read error */
296 #define AR_EP_STA_RDCMPLT 0x00000002 /* read complete */
297 #define AR_EP_STA_WRERR 0x00000004 /* write error */
298 #define AR_EP_STA_WRCMPLT 0x00000008 /* write complete */
302 #define AR_STA_ID1_AP 0x00010000 /* Access Point Operation */
303 #define AR_STA_ID1_ADHOC 0x00020000 /* ad hoc Operation */
304 #define AR_STA_ID1_PWR_SV 0x00040000 /* power save report enable */
305 #define AR_STA_ID1_NO_KEYSRCH 0x00080000 /* key table search disable */
306 #define AR_STA_ID1_NO_PSPOLL 0x00100000 /* auto PS-POLL disable */
307 #define AR_STA_ID1_PCF 0x00200000 /* PCF observation enable */
308 #define AR_STA_ID1_DESC_ANTENNA 0x00400000 /* use antenna in TX desc */
309 #define AR_STA_ID1_DEFAULT_ANTENNA 0x00800000 /* toggle default antenna */
310 #define AR_STA_ID1_ACKCTS_6MB 0x01000000 /* use 6Mbps for ACK/CTS */
315 #define AR_BSS_ID1_AID 0xffff0000 /* association ID */
318 #define AR_TIME_OUT_ACK 0x00001fff /* ACK timeout */
319 #define AR_TIME_OUT_ACK_S 0
320 #define AR_TIME_OUT_CTS 0x1fff0000 /* CTS timeout */
323 #define AR_RSSI_THR_BM_THR 0x00000700 /* missed beacon threshold */
326 #define AR_RETRY_LMT_SH_RETRY 0x0000000f /* short frame retry limit */
327 #define AR_RETRY_LMT_SH_RETRY_S 0
328 #define AR_RETRY_LMT_LG_RETRY 0x000000f0 /* long frame retry limit */
330 #define AR_RETRY_LMT_SSH_RETRY 0x00003f00 /* short station retry limit */
332 #define AR_RETRY_LMT_SLG_RETRY 0x000fc000 /* long station retry limit */
334 #define AR_RETRY_LMT_CW_MIN 0x3ff00000 /* minimum contention window */
337 #define AR_USEC_1 0x0000007f /* number of clk in 1us */
338 #define AR_USEC_1_S 0
339 #define AR_USEC_32 0x00003f80 /* number of 32MHz clk in 1us */
341 #define AR_USEC_TX_LATENCY 0x000fc000 /* transmit latency in us */
343 #define AR_USEC_RX_LATENCY 0x03f00000 /* receive latency in us */
346 #define AR_BEACON_PERIOD 0x0000ffff /* beacon period in TU/ms */
347 #define AR_BEACON_PERIOD_S 0
348 #define AR_BEACON_TIM 0x007f0000 /* byte offset */
350 #define AR_BEACON_EN 0x00800000 /* beacon transmission enable */
351 #define AR_BEACON_RESET_TSF 0x01000000 /* TSF reset oneshot */
354 #define AR_IFS0_SIFS 0x000007ff /* SIFS in core clock cycles */
355 #define AR_IFS0_SIFS_S 0
356 #define AR_IFS0_DIFS 0x007ff800 /* DIFS in core clock cycles */
359 #define AR_IFS1_PIFS 0x00000fff /* Programmable IFS */
360 #define AR_IFS1_PIFS_S 0
361 #define AR_IFS1_EIFS 0x03fff000 /* EIFS in core clock cycles */
363 #define AR_IFS1_CS_EN 0x04000000 /* carrier sense enable */
365 #define AR_RX_FILTER_UNICAST 0x00000001 /* unicast frame enable */
366 #define AR_RX_FILTER_MULTICAST 0x00000002 /* multicast frame enable */
367 #define AR_RX_FILTER_BROADCAST 0x00000004 /* broadcast frame enable */
368 #define AR_RX_FILTER_CONTROL 0x00000008 /* control frame enable */
369 #define AR_RX_FILTER_BEACON 0x00000010 /* beacon frame enable */
370 #define AR_RX_FILTER_PROMISCUOUS 0x00000020 /* promiscuous receive enable */
374 #define AR_DIAG_SW_DIS_WEP_ACK 0x00000001 /* disable ACK if no key found*/
375 #define AR_DIAG_SW_DIS_ACK 0x00000002 /* disable ACK generation */
376 #define AR_DIAG_SW_DIS_CTS 0x00000004 /* disable CTS generation */
377 #define AR_DIAG_SW_DIS_ENC 0x00000008 /* encryption disable */
378 #define AR_DIAG_SW_DIS_DEC 0x00000010 /* decryption disable */
379 #define AR_DIAG_SW_DIS_TX 0x00000020 /* TX disable */
380 #define AR_DIAG_SW_DIS_RX 0x00000040 /* RX disable */
381 #define AR_DIAG_SW_LOOP_BACK 0x00000080 /* TX data loopback enable */
382 #define AR_DIAG_SW_CORR_FCS 0x00000100 /* corrupt FCS enable */
383 #define AR_DIAG_SW_CHAN_INFO 0x00000200 /* channel information enable */
384 #define AR_DIAG_SW_EN_SCRAM_SEED 0x00000400 /* use fixed scrambler seed */
385 #define AR_DIAG_SW_SCVRAM_SEED 0x0003f800 /* fixed scrambler seed */
386 #define AR_DIAG_SW_DIS_SEQ_INC 0x00040000 /* seq increment disable */
387 #define AR_DIAG_SW_FRAME_NV0 0x00080000 /* accept frame vers != 0 */
394 #define AR_RETRY_CNT_SSH 0x0000003f /* current short retry count */
395 #define AR_RETRY_CNT_SLG 0x00000fc0 /* current long retry count */
397 #define AR_BACKOFF_CW 0x000003ff /* current contention window */
398 #define AR_BACKOFF_CNT 0x03ff0000 /* backoff count */
400 #define AR_KEYTABLE_KEY0(n) (AR_KEYTABLE(n) + 0) /* key bit 0-31 */
406 #define AR_KEYTABLE_TYPE_40 0x00000000 /* 40 bit key */
407 #define AR_KEYTABLE_TYPE_104 0x00000001 /* 104 bit key */
408 #define AR_KEYTABLE_TYPE_128 0x00000003 /* 128 bit key */
411 #define AR_KEYTABLE_VALID 0x00008000 /* key and MAC address valid */