1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2010 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 __RTL8712_WMAC_BITDEF_H__
21 #define __RTL8712_WMAC_BITDEF_H__
22 
23 /*NAVCTRL*/
24 #define	_NAV_UPPER_EN			BIT(18)
25 #define	_NAV_MTO_EN				BIT(17)
26 #define	_NAV_UPPER				BIT(16)
27 #define	_NAV_MTO_MSK			0xFF00
28 #define	_NAV_MTO_SHT			8
29 #define	_RTSRST_MSK				0x00FF
30 #define	_RTSRST_SHT				0
31 
32 /*BWOPMODE*/
33 #define	_20MHZBW				BIT(2)
34 
35 /*BACAMCMD*/
36 #define	_BACAM_POLL				BIT(31)
37 #define	_BACAM_RST				BIT(17)
38 #define	_BACAM_RW				BIT(16)
39 #define	_BACAM_ADDR_MSK			0x0000007F
40 #define	_BACAM_ADDR_SHT			0
41 
42 /*LBDLY*/
43 #define	_LBDLY_MSK				0x1F
44 
45 /*FWDLY*/
46 #define	_FWDLY_MSK				0x0F
47 
48 /*RXERR_RPT*/
49 #define	_RXERR_RPT_SEL_MSK		0xF0000000
50 #define	_RXERR_RPT_SEL_SHT		28
51 #define	_RPT_CNT_MSK			0x000FFFFF
52 #define	_RPT_CNT_SHT			0
53 
54 
55 #endif	/*__RTL8712_WMAC_BITDEF_H__*/
56 
57