Merge tag 'multiplatform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / drivers / staging / rtl8712 / rtl8712_wmac_bitdef.h
CommitLineData
0e54f609
AB
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 *
b4f6209d
AB
18 * Modifications for inclusion into the Linux staging tree are
19 * Copyright(c) 2010 Larry Finger. All rights reserved.
20 *
21 * Contact information:
22 * WLAN FAE <wlanfae@realtek.com>
23 * Larry Finger <Larry.Finger@lwfinger.net>
0e54f609
AB
24 *
25 ******************************************************************************/
2865d42c
LF
26#ifndef __RTL8712_WMAC_BITDEF_H__
27#define __RTL8712_WMAC_BITDEF_H__
28
29/*NAVCTRL*/
30#define _NAV_UPPER_EN BIT(18)
31#define _NAV_MTO_EN BIT(17)
32#define _NAV_UPPER BIT(16)
33#define _NAV_MTO_MSK 0xFF00
34#define _NAV_MTO_SHT 8
35#define _RTSRST_MSK 0x00FF
36#define _RTSRST_SHT 0
37
38/*BWOPMODE*/
39#define _20MHZBW BIT(2)
40
41/*BACAMCMD*/
42#define _BACAM_POLL BIT(31)
43#define _BACAM_RST BIT(17)
44#define _BACAM_RW BIT(16)
45#define _BACAM_ADDR_MSK 0x0000007F
46#define _BACAM_ADDR_SHT 0
47
48/*LBDLY*/
49#define _LBDLY_MSK 0x1F
50
51/*FWDLY*/
52#define _FWDLY_MSK 0x0F
53
54/*RXERR_RPT*/
55#define _RXERR_RPT_SEL_MSK 0xF0000000
56#define _RXERR_RPT_SEL_SHT 28
57#define _RPT_CNT_MSK 0x000FFFFF
58#define _RPT_CNT_SHT 0
59
60
61#endif /*__RTL8712_WMAC_BITDEF_H__*/
62