rtl8712_powersave_bitdef.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_POWERSAVE_BITDEF_H__
  21. #define __RTL8712_POWERSAVE_BITDEF_H__
  22. /*WOWCTRL*/
  23. #define _UWF BIT(3)
  24. #define _MAGIC BIT(2)
  25. #define _WOW_EN BIT(1)
  26. #define _PMEN BIT(0)
  27. /*PSSTATUS*/
  28. #define _PSSTATUS_SEL_MSK 0x0F
  29. /*PSSWITCH*/
  30. #define _PSSWITCH_ACT BIT(7)
  31. #define _PSSWITCH_SEL_MSK 0x0F
  32. #define _PSSWITCH_SEL_SHT 0
  33. /*LPNAV_CTRL*/
  34. #define _LPNAV_EN BIT(31)
  35. #define _LPNAV_EARLY_MSK 0x7FFF0000
  36. #define _LPNAV_EARLY_SHT 16
  37. #define _LPNAV_TH_MSK 0x0000FFFF
  38. #define _LPNAV_TH_SHT 0
  39. /*RPWM*/
  40. /*CPWM*/
  41. #define _TOGGLING BIT(7)
  42. #define _WWLAN BIT(3)
  43. #define _RPS_ST BIT(2)
  44. #define _WLAN_TRX BIT(1)
  45. #define _SYS_CLK BIT(0)
  46. #endif /* __RTL8712_POWERSAVE_BITDEF_H__*/