1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
5  *
6  ******************************************************************************/
7 #ifndef __RTL8712_POWERSAVE_BITDEF_H__
8 #define __RTL8712_POWERSAVE_BITDEF_H__
9 
10 /*WOWCTRL*/
11 #define	_UWF			BIT(3)
12 #define	_MAGIC			BIT(2)
13 #define	_WOW_EN			BIT(1)
14 #define	_PMEN			BIT(0)
15 
16 /*PSSTATUS*/
17 #define	_PSSTATUS_SEL_MSK		0x0F
18 
19 /*PSSWITCH*/
20 #define	_PSSWITCH_ACT			BIT(7)
21 #define	_PSSWITCH_SEL_MSK		0x0F
22 #define	_PSSWITCH_SEL_SHT		0
23 
24 /*LPNAV_CTRL*/
25 #define	_LPNAV_EN			BIT(31)
26 #define	_LPNAV_EARLY_MSK		0x7FFF0000
27 #define	_LPNAV_EARLY_SHT		16
28 #define	_LPNAV_TH_MSK			0x0000FFFF
29 #define	_LPNAV_TH_SHT			0
30 
31 /*RPWM*/
32 /*CPWM*/
33 #define	_TOGGLING			BIT(7)
34 #define	_WWLAN				BIT(3)
35 #define	_RPS_ST				BIT(2)
36 #define	_WLAN_TRX			BIT(1)
37 #define	_SYS_CLK			BIT(0)
38 
39 #endif /* __RTL8712_POWERSAVE_BITDEF_H__*/
40