1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
6 * Modifications for inclusion into the Linux staging tree are
7 * Copyright(c) 2010 Larry Finger. All rights reserved.
10 * WLAN FAE <wlanfae@realtek.com>
11 * Larry Finger <Larry.Finger@lwfinger.net>
13 ******************************************************************************/
14 #ifndef __RTL8712_WMAC_BITDEF_H__
15 #define __RTL8712_WMAC_BITDEF_H__
18 #define _NAV_UPPER_EN BIT(18)
19 #define _NAV_MTO_EN BIT(17)
20 #define _NAV_UPPER BIT(16)
21 #define _NAV_MTO_MSK 0xFF00
22 #define _NAV_MTO_SHT 8
23 #define _RTSRST_MSK 0x00FF
27 #define _20MHZBW BIT(2)
30 #define _BACAM_POLL BIT(31)
31 #define _BACAM_RST BIT(17)
32 #define _BACAM_RW BIT(16)
33 #define _BACAM_ADDR_MSK 0x0000007F
34 #define _BACAM_ADDR_SHT 0
37 #define _LBDLY_MSK 0x1F
40 #define _FWDLY_MSK 0x0F
43 #define _RXERR_RPT_SEL_MSK 0xF0000000
44 #define _RXERR_RPT_SEL_SHT 28
45 #define _RPT_CNT_MSK 0x000FFFFF
46 #define _RPT_CNT_SHT 0
49 #endif /*__RTL8712_WMAC_BITDEF_H__*/