xref: /titanic_50/usr/src/uts/common/io/urtw/urtw_reg.h (revision dfa03ef6809f806ad32c097e1f909a56bcaa247e)
126594249SQin Michael Li /*
226594249SQin Michael Li  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
326594249SQin Michael Li  * Use is subject to license terms.
426594249SQin Michael Li  */
526594249SQin Michael Li 
626594249SQin Michael Li /*
726594249SQin Michael Li  * Copyright (c) 2008 Weongyo Jeong
826594249SQin Michael Li  * All rights reserved.
926594249SQin Michael Li  *
1026594249SQin Michael Li  * Redistribution and use in source and binary forms, with or without
1126594249SQin Michael Li  * modification, are permitted provided that the following conditions
1226594249SQin Michael Li  * are met:
1326594249SQin Michael Li  * 1. Redistributions of source code must retain the above copyright
1426594249SQin Michael Li  *    notice, this list of conditions and the following disclaimer,
1526594249SQin Michael Li  *    without modification.
1626594249SQin Michael Li  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1726594249SQin Michael Li  *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
1826594249SQin Michael Li  *    redistribution must be conditioned upon including a substantially
1926594249SQin Michael Li  *    similar Disclaimer requirement for further binary redistribution.
2026594249SQin Michael Li  *
2126594249SQin Michael Li  * NO WARRANTY
2226594249SQin Michael Li  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2326594249SQin Michael Li  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2426594249SQin Michael Li  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
2526594249SQin Michael Li  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
2626594249SQin Michael Li  * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
2726594249SQin Michael Li  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2826594249SQin Michael Li  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2926594249SQin Michael Li  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
3026594249SQin Michael Li  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3126594249SQin Michael Li  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
3226594249SQin Michael Li  * THE POSSIBILITY OF SUCH DAMAGES.
3326594249SQin Michael Li  */
3426594249SQin Michael Li 
3526594249SQin Michael Li #ifndef _URTW_REG_H
3626594249SQin Michael Li #define	_URTW_REG_H
3726594249SQin Michael Li 
3826594249SQin Michael Li #ifdef __cplusplus
3926594249SQin Michael Li extern "C" {
4026594249SQin Michael Li #endif
4126594249SQin Michael Li 
42*dfa03ef6SQin Michael Li /*
43*dfa03ef6SQin Michael Li  * Known hardware revisions.
44*dfa03ef6SQin Michael Li  */
45*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187			0x01
46*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187_B		0x02
47*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187_D		0x04
48*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187B		0x08
49*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187B_B		0x10
50*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187B_D		0x20
51*dfa03ef6SQin Michael Li #define	URTW_HWREV_8187B_E		0x40
52*dfa03ef6SQin Michael Li 
5326594249SQin Michael Li /* for 8187  */
5426594249SQin Michael Li #define	URTW_MAC0			0x0000		/* 1 byte  */
5526594249SQin Michael Li #define	URTW_MAC1			0x0001		/* 1 byte  */
5626594249SQin Michael Li #define	URTW_MAC2			0x0002		/* 1 byte  */
5726594249SQin Michael Li #define	URTW_MAC3			0x0003		/* 1 byte  */
5826594249SQin Michael Li #define	URTW_MAC4			0x0004		/* 1 byte  */
5926594249SQin Michael Li #define	URTW_MAC5			0x0005		/* 1 byte  */
6026594249SQin Michael Li #define	URTW_BRSR			0x002c		/* 2 byte  */
6126594249SQin Michael Li #define	URTW_BRSR_MBR_8185		(0x0fff)
62*dfa03ef6SQin Michael Li #define	URTW_8187B_EIFS			0x002d		/* 1 byte */
6326594249SQin Michael Li #define	URTW_BSSID			0x002e		/* 6 byte  */
6426594249SQin Michael Li #define	URTW_RESP_RATE			0x0034		/* 1 byte  */
65*dfa03ef6SQin Michael Li #define	URTW_8187B_BRSR			0x0034		/* 2 byte */
6626594249SQin Michael Li #define	URTW_RESP_MAX_RATE_SHIFT	(4)
6726594249SQin Michael Li #define	URTW_RESP_MIN_RATE_SHIFT	(0)
6826594249SQin Michael Li #define	URTW_EIFS			0x0035		/* 1 byte  */
6926594249SQin Michael Li #define	URTW_INTR_MASK			0x003c		/* 2 byte  */
7026594249SQin Michael Li #define	URTW_CMD			0x0037		/* 1 byte  */
7126594249SQin Michael Li #define	URTW_CMD_TX_ENABLE		(0x4)
7226594249SQin Michael Li #define	URTW_CMD_RX_ENABLE		(0x8)
7326594249SQin Michael Li #define	URTW_CMD_RST			(0x10)
7426594249SQin Michael Li #define	URTW_TX_CONF			0x0040		/* 4 byte  */
75*dfa03ef6SQin Michael Li 
76*dfa03ef6SQin Michael Li #define	URTW_TX_HWREV_MASK		(7 << 25)
77*dfa03ef6SQin Michael Li #define	URTW_TX_HWREV_8187_D	(5 << 25)
78*dfa03ef6SQin Michael Li #define	URTW_TX_HWREV_8187B_D	(6 << 25)
79*dfa03ef6SQin Michael Li #define	URTW_TX_DURPROCMODE		(1 << 30)
80*dfa03ef6SQin Michael Li #define	URTW_TX_DISREQQSIZE		(1 << 28)
81*dfa03ef6SQin Michael Li #define	URTW_TX_SHORTRETRY		(7 << 8)
82*dfa03ef6SQin Michael Li #define	URTW_TX_LONGRETRY		(7 << 0)
83*dfa03ef6SQin Michael Li 
8426594249SQin Michael Li #define	URTW_TX_LOOPBACK_SHIFT		(17)
8526594249SQin Michael Li #define	URTW_TX_LOOPBACK_NONE		(0 << URTW_TX_LOOPBACK_SHIFT)
8626594249SQin Michael Li #define	URTW_TX_LOOPBACK_MAC		(1 << URTW_TX_LOOPBACK_SHIFT)
8726594249SQin Michael Li #define	URTW_TX_LOOPBACK_BASEBAND	(2 << URTW_TX_LOOPBACK_SHIFT)
8826594249SQin Michael Li #define	URTW_TX_LOOPBACK_CONTINUE	(3 << URTW_TX_LOOPBACK_SHIFT)
8926594249SQin Michael Li #define	URTW_TX_LOOPBACK_MASK		(0x60000)
9026594249SQin Michael Li #define	URTW_TX_DPRETRY_MASK		(0xff00)
9126594249SQin Michael Li #define	URTW_TX_RTSRETRY_MASK		(0xff)
9226594249SQin Michael Li #define	URTW_TX_DPRETRY_SHIFT		(0)
9326594249SQin Michael Li #define	URTW_TX_RTSRETRY_SHIFT		(8)
9426594249SQin Michael Li #define	URTW_TX_NOCRC			(0x10000)
9526594249SQin Michael Li #define	URTW_TX_MXDMA_MASK		(0xe00000)
9626594249SQin Michael Li #define	URTW_TX_MXDMA_1024		(6 << URTW_TX_MXDMA_SHIFT)
9726594249SQin Michael Li #define	URTW_TX_MXDMA_2048		(7 << URTW_TX_MXDMA_SHIFT)
9826594249SQin Michael Li #define	URTW_TX_MXDMA_SHIFT		(21)
99*dfa03ef6SQin Michael Li #define	URTW_TX_CWMIN			(0x80000000)
10026594249SQin Michael Li #define	URTW_TX_DISCW			(1 << 20)
10126594249SQin Michael Li #define	URTW_TX_SWPLCPLEN		(1 << 24)
10226594249SQin Michael Li #define	URTW_TX_NOICV			(0x80000)
10326594249SQin Michael Li #define	URTW_RX				0x0044		/* 4 byte  */
10426594249SQin Michael Li #define	URTW_RX_9356SEL			(1 << 6)
10526594249SQin Michael Li #define	URTW_RX_FILTER_MASK			\
10626594249SQin Michael Li 	(URTW_RX_FILTER_ALLMAC | URTW_RX_FILTER_NICMAC |\
10726594249SQin Michael Li 	URTW_RX_FILTER_MCAST | \
10826594249SQin Michael Li 	URTW_RX_FILTER_BCAST | URTW_RX_FILTER_CRCERR |\
10926594249SQin Michael Li 	URTW_RX_FILTER_ICVERR | \
11026594249SQin Michael Li 	URTW_RX_FILTER_DATA | URTW_RX_FILTER_CTL |\
11126594249SQin Michael Li 	URTW_RX_FILTER_MNG |	\
11226594249SQin Michael Li 	(1 << 21) |\
11326594249SQin Michael Li 	URTW_RX_FILTER_PWR | URTW_RX_CHECK_BSSID)
11426594249SQin Michael Li #define	URTW_RX_FILTER_ALLMAC		(0x00000001)
11526594249SQin Michael Li #define	URTW_RX_FILTER_NICMAC		(0x00000002)
11626594249SQin Michael Li #define	URTW_RX_FILTER_MCAST		(0x00000004)
11726594249SQin Michael Li #define	URTW_RX_FILTER_BCAST		(0x00000008)
11826594249SQin Michael Li #define	URTW_RX_FILTER_CRCERR		(0x00000020)
11926594249SQin Michael Li #define	URTW_RX_FILTER_ICVERR		(0x00001000)
12026594249SQin Michael Li #define	URTW_RX_FILTER_DATA		(0x00040000)
12126594249SQin Michael Li #define	URTW_RX_FILTER_CTL		(0x00080000)
12226594249SQin Michael Li #define	URTW_RX_FILTER_MNG		(0x00100000)
12326594249SQin Michael Li #define	URTW_RX_FILTER_PWR		(0x00400000)
12426594249SQin Michael Li #define	URTW_RX_CHECK_BSSID		(0x00800000)
12526594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_MASK	((1 << 13) | (1 << 14) | (1 << 15))
12626594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_SHIFT	(13)
12726594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_128	(3)
12826594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_256	(4)
12926594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_512	(5)
13026594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_1024	(6)
13126594249SQin Michael Li #define	URTW_RX_FIFO_THRESHOLD_NONE	(7 << URTW_RX_FIFO_THRESHOLD_SHIFT)
13226594249SQin Michael Li #define	URTW_RX_AUTORESETPHY		(1 << URTW_RX_AUTORESETPHY_SHIFT)
13326594249SQin Michael Li #define	URTW_RX_AUTORESETPHY_SHIFT	(28)
13426594249SQin Michael Li #define	URTW_MAX_RX_DMA_MASK		((1<<8) | (1<<9) | (1<<10))
13526594249SQin Michael Li #define	URTW_MAX_RX_DMA_2048		(0x1c00)
13626594249SQin Michael Li #define	URTW_MAX_RX_DMA_1024		(6)
13726594249SQin Michael Li #define	URTW_MAX_RX_DMA_SHIFT		(10)
13826594249SQin Michael Li #define	URTW_RCR_ONLYERLPKT		(0x80000000)
13926594249SQin Michael Li #define	URTW_INT_TIMEOUT		0x0048		/* 4 byte  */
14026594249SQin Michael Li #define	URTW_EPROM_CMD			0x0050		/* 1 byte  */
14126594249SQin Michael Li #define	URTW_EPROM_CMD_NORMAL		(0x0)
14226594249SQin Michael Li #define	URTW_EPROM_CMD_NORMAL_MODE				\
14326594249SQin Michael Li 	(URTW_EPROM_CMD_NORMAL << URTW_EPROM_CMD_SHIFT)
14426594249SQin Michael Li #define	URTW_EPROM_CMD_LOAD		(0x1)
14526594249SQin Michael Li #define	URTW_EPROM_CMD_PROGRAM		(0x2)
14626594249SQin Michael Li #define	URTW_EPROM_CMD_PROGRAM_MODE				\
14726594249SQin Michael Li 	(URTW_EPROM_CMD_PROGRAM << URTW_EPROM_CMD_SHIFT)
14826594249SQin Michael Li #define	URTW_EPROM_CMD_CONFIG		(0x3)
14926594249SQin Michael Li #define	URTW_EPROM_CMD_SHIFT		(6)
15026594249SQin Michael Li #define	URTW_EPROM_CMD_MASK		((1 << 7) | (1 << 6))
15126594249SQin Michael Li #define	URTW_EPROM_READBIT		(0x1)
15226594249SQin Michael Li #define	URTW_EPROM_WRITEBIT		(0x2)
15326594249SQin Michael Li #define	URTW_EPROM_CK			(0x4)
15426594249SQin Michael Li #define	URTW_EPROM_CS			(0x8)
155*dfa03ef6SQin Michael Li 
156*dfa03ef6SQin Michael Li #define	URTW_CONFIG1			0x0052		/* 1 byte */
157*dfa03ef6SQin Michael Li #define	URTW_CONFIG2			0x0053		/* 1 byte */
158*dfa03ef6SQin Michael Li 
15926594249SQin Michael Li #define	URTW_ANAPARAM			0x0054		/* 4 byte  */
160*dfa03ef6SQin Michael Li #define	URTW_8187_8225_ANAPARAM_ON	(0xa0000a59)
161*dfa03ef6SQin Michael Li #define	URTW_8187B_8225_ANAPARAM_ON	(0x45090658)
162*dfa03ef6SQin Michael Li 
16326594249SQin Michael Li #define	URTW_MSR			0x0058		/* 1 byte  */
16426594249SQin Michael Li #define	URTW_MSR_LINK_MASK		((1 << 2) | (1 << 3))
16526594249SQin Michael Li #define	URTW_MSR_LINK_SHIFT		(2)
16626594249SQin Michael Li #define	URTW_MSR_LINK_NONE		(0 << URTW_MSR_LINK_SHIFT)
16726594249SQin Michael Li #define	URTW_MSR_LINK_ADHOC		(1 << URTW_MSR_LINK_SHIFT)
16826594249SQin Michael Li #define	URTW_MSR_LINK_STA		(2 << URTW_MSR_LINK_SHIFT)
16926594249SQin Michael Li #define	URTW_MSR_LINK_HOSTAP	(3 << URTW_MSR_LINK_SHIFT)
170*dfa03ef6SQin Michael Li #define	URTW_MSR_LINK_ENEDCA		(4 << URTW_MSR_LINK_SHIFT)
171*dfa03ef6SQin Michael Li 
172*dfa03ef6SQin Michael Li 
17326594249SQin Michael Li #define	URTW_CONFIG3			0x0059		/* 1 byte  */
17426594249SQin Michael Li #define	URTW_CONFIG3_ANAPARAM_WRITE	(0x40)
17526594249SQin Michael Li #define	URTW_CONFIG3_ANAPARAM_W_SHIFT	(6)
176*dfa03ef6SQin Michael Li #define	URTW_CONFIG3_GNT_SELECT		(0x80)
177*dfa03ef6SQin Michael Li 
17826594249SQin Michael Li #define	URTW_PSR			0x005e		/* 1 byte  */
17926594249SQin Michael Li #define	URTW_ANAPARAM2			0x0060		/* 4 byte  */
180*dfa03ef6SQin Michael Li #define	URTW_8187_8225_ANAPARAM2_ON	(0x860c7312)
181*dfa03ef6SQin Michael Li #define	URTW_8187B_8225_ANAPARAM2_ON	(0x727f3f52)
182*dfa03ef6SQin Michael Li 
18326594249SQin Michael Li #define	URTW_BEACON_INTERVAL		0x0070		/* 2 byte  */
18426594249SQin Michael Li #define	URTW_ATIM_WND			0x0072		/* 2 byte  */
18526594249SQin Michael Li #define	URTW_BEACON_INTERVAL_TIME	0x0074		/* 2 byte  */
18626594249SQin Michael Li #define	URTW_ATIM_TR_ITV		0x0076		/* 2 byte  */
18726594249SQin Michael Li #define	URTW_RF_PINS_OUTPUT		0x0080		/* 2 byte  */
18826594249SQin Michael Li #define	URTW_BB_HOST_BANG_CLK		(1 << 1)
18926594249SQin Michael Li #define	URTW_BB_HOST_BANG_EN		(1 << 2)
19026594249SQin Michael Li #define	URTW_BB_HOST_BANG_RW		(1 << 3)
19126594249SQin Michael Li #define	URTW_RF_PINS_ENABLE		0x0082		/* 2 byte  */
19226594249SQin Michael Li #define	URTW_RF_PINS_SELECT		0x0084		/* 2 byte  */
19326594249SQin Michael Li #define	URTW_RF_PINS_INPUT		0x0086		/* 2 byte  */
19426594249SQin Michael Li #define	URTW_RF_PARA			0x0088		/* 4 byte  */
19526594249SQin Michael Li #define	URTW_RF_TIMING			0x008c		/* 4 byte  */
19626594249SQin Michael Li #define	URTW_GP_ENABLE			0x0090		/* 1 byte  */
19726594249SQin Michael Li #define	URTW_GPIO			0x0091		/* 1 byte  */
198*dfa03ef6SQin Michael Li #define	URTW_HSSI_PARA			0x0094
199*dfa03ef6SQin Michael Li 
20026594249SQin Michael Li #define	URTW_TX_AGC_CTL			0x009c		/* 1 byte  */
20126594249SQin Michael Li #define	URTW_TX_AGC_CTL_PERPACKET_GAIN	(0x1)
20226594249SQin Michael Li #define	URTW_TX_AGC_CTL_PERPACKET_ANTSEL	(0x2)
20326594249SQin Michael Li #define	URTW_TX_AGC_CTL_FEEDBACK_ANT	(0x4)
20426594249SQin Michael Li #define	URTW_TX_GAIN_CCK		0x009d		/* 1 byte  */
20526594249SQin Michael Li #define	URTW_TX_GAIN_OFDM		0x009e		/* 1 byte  */
20626594249SQin Michael Li #define	URTW_TX_ANTENNA			0x009f		/* 1 byte  */
20726594249SQin Michael Li #define	URTW_WPA_CONFIG			0x00b0		/* 1 byte  */
20826594249SQin Michael Li #define	URTW_SIFS			0x00b4		/* 1 byte  */
20926594249SQin Michael Li #define	URTW_DIFS			0x00b5		/* 1 byte  */
21026594249SQin Michael Li #define	URTW_SLOT			0x00b6		/* 1 byte  */
21126594249SQin Michael Li #define	URTW_CW_CONF			0x00bc		/* 1 byte  */
21226594249SQin Michael Li #define	URTW_CW_CONF_PERPACKET_RETRY	(0x2)
21326594249SQin Michael Li #define	URTW_CW_CONF_PERPACKET_CW	(0x1)
21426594249SQin Michael Li #define	URTW_CW_VAL			0x00bd		/* 1 byte  */
21526594249SQin Michael Li #define	URTW_RATE_FALLBACK		0x00be		/* 1 byte  */
216*dfa03ef6SQin Michael Li 
217*dfa03ef6SQin Michael Li #define	URTW_RATE_FALLBACK_ENABLE	(0x80)
218*dfa03ef6SQin Michael Li #define	URTW_ACM_CONTROL		0x00bf		/* 1 byte */
219*dfa03ef6SQin Michael Li #define	URTW_8187B_HWREV		0x00e1		/* 1 byte */
220*dfa03ef6SQin Michael Li #define	URTW_8187B_HWREV_8187B_B	(0x0)
221*dfa03ef6SQin Michael Li #define	URTW_8187B_HWREV_8187B_D	(0x1)
222*dfa03ef6SQin Michael Li #define	URTW_8187B_HWREV_8187B_E	(0x2)
223*dfa03ef6SQin Michael Li #define	URTW_INT_MIG			0x00e2		/* 2 byte */
224*dfa03ef6SQin Michael Li #define	URTW_TID_AC_MAP			0x00e8		/* 2 byte */
225*dfa03ef6SQin Michael Li #define	URTW_ANAPARAM3			0x00ee		/* 4 byte */
226*dfa03ef6SQin Michael Li #define	URTW_8187B_8225_ANAPARAM3_ON	(0x0)
22726594249SQin Michael Li #define	URTW_TALLY_SEL			0x00fc		/* 1 byte */
228*dfa03ef6SQin Michael Li #define	URTW_AC_VO			0x00f0		/* 1 byte */
229*dfa03ef6SQin Michael Li #define	URTW_AC_VI			0x00f4		/* 1 byte */
230*dfa03ef6SQin Michael Li #define	URTW_AC_BE			0x00f8		/* 1 byte */
231*dfa03ef6SQin Michael Li #define	URTW_AC_BK			0x00fc		/* 1 byte */
232*dfa03ef6SQin Michael Li #define	URTW_FEMR			0x01d4		/* 2 byte */
233*dfa03ef6SQin Michael Li #define	URTW_ARFR			0x01e0		/* 2 byte */
234*dfa03ef6SQin Michael Li #define	URTW_RFSW_CTRL			0x0272		/* 2 byte */
23526594249SQin Michael Li 
23626594249SQin Michael Li /* for EEPROM  */
23726594249SQin Michael Li #define	URTW_EPROM_TXPW_BASE		0x05
23826594249SQin Michael Li #define	URTW_EPROM_RFCHIPID		0x06
23926594249SQin Michael Li #define	URTW_EPROM_RFCHIPID_RTL8225U	(5)
24026594249SQin Michael Li #define	URTW_EPROM_MACADDR		0x07
24126594249SQin Michael Li #define	URTW_EPROM_TXPW0		0x16
24226594249SQin Michael Li #define	URTW_EPROM_TXPW2		0x1b
24326594249SQin Michael Li #define	URTW_EPROM_TXPW1		0x3d
24426594249SQin Michael Li #define	URTW_EPROM_SWREV		0x3f
24526594249SQin Michael Li #define	URTW_EPROM_CID_MASK		(0xff)
24626594249SQin Michael Li #define	URTW_EPROM_CID_RSVD0		(0x00)
24726594249SQin Michael Li #define	URTW_EPROM_CID_RSVD1		(0xff)
24826594249SQin Michael Li #define	URTW_EPROM_CID_ALPHA0		(0x01)
24926594249SQin Michael Li #define	URTW_EPROM_CID_SERCOMM_PS	(0x02)
25026594249SQin Michael Li #define	URTW_EPROM_CID_HW_LED		(0x03)
25126594249SQin Michael Li 
25226594249SQin Michael Li /* LED  */
25326594249SQin Michael Li #define	URTW_CID_DEFAULT		0
25426594249SQin Michael Li #define	URTW_CID_8187_ALPHA0		1
25526594249SQin Michael Li #define	URTW_CID_8187_SERCOMM_PS	2
25626594249SQin Michael Li #define	URTW_CID_8187_HW_LED		3
25726594249SQin Michael Li #define	URTW_SW_LED_MODE0		0
25826594249SQin Michael Li #define	URTW_SW_LED_MODE1		1
25926594249SQin Michael Li #define	URTW_SW_LED_MODE2		2
26026594249SQin Michael Li #define	URTW_SW_LED_MODE3		3
26126594249SQin Michael Li #define	URTW_HW_LED			4
26226594249SQin Michael Li #define	URTW_LED_CTL_POWER_ON		0
26326594249SQin Michael Li #define	URTW_LED_CTL_LINK		2
26426594249SQin Michael Li #define	URTW_LED_CTL_TX			4
26526594249SQin Michael Li #define	URTW_LED_PIN_GPIO0		0
26626594249SQin Michael Li #define	URTW_LED_PIN_LED0		1
26726594249SQin Michael Li #define	URTW_LED_PIN_LED1		2
26826594249SQin Michael Li #define	URTW_LED_UNKNOWN		0
26926594249SQin Michael Li #define	URTW_LED_ON			1
27026594249SQin Michael Li #define	URTW_LED_OFF			2
27126594249SQin Michael Li #define	URTW_LED_BLINK_NORMAL		3
27226594249SQin Michael Li #define	URTW_LED_BLINK_SLOWLY		4
27326594249SQin Michael Li #define	URTW_LED_POWER_ON_BLINK		5
27426594249SQin Michael Li #define	URTW_LED_SCAN_BLINK		6
27526594249SQin Michael Li #define	URTW_LED_NO_LINK_BLINK		7
27626594249SQin Michael Li #define	URTW_LED_BLINK_CM3		8
27726594249SQin Michael Li 
27826594249SQin Michael Li /* for extra area  */
27926594249SQin Michael Li #define	URTW_EPROM_DISABLE		0
28026594249SQin Michael Li #define	URTW_EPROM_ENABLE		1
28126594249SQin Michael Li #define	URTW_EPROM_DELAY		10
28226594249SQin Michael Li #define	URTW_8187_GETREGS_REQ		5
28326594249SQin Michael Li #define	URTW_8187_SETREGS_REQ		5
28426594249SQin Michael Li #define	URTW_8225_RF_MAX_SENS		6
28526594249SQin Michael Li #define	URTW_8225_RF_DEF_SENS		4
28626594249SQin Michael Li #define	URTW_DEFAULT_RTS_RETRY		7
28726594249SQin Michael Li #define	URTW_DEFAULT_TX_RETRY		7
28826594249SQin Michael Li #define	URTW_DEFAULT_RTS_THRESHOLD	2342U
28926594249SQin Michael Li 
29026594249SQin Michael Li #ifdef __cplusplus
29126594249SQin Michael Li }
29226594249SQin Michael Li #endif
29326594249SQin Michael Li 
29426594249SQin Michael Li #endif /* _URTW_REG_H */
295