rtl8712_wmac_bitdef.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * 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>
  24. *
  25. ******************************************************************************/
  26. #ifndef __RTL8712_WMAC_BITDEF_H__
  27. #define __RTL8712_WMAC_BITDEF_H__
  28. /*NAVCTRL*/
  29. #define _NAV_UPPER_EN BIT(18)
  30. #define _NAV_MTO_EN BIT(17)
  31. #define _NAV_UPPER BIT(16)
  32. #define _NAV_MTO_MSK 0xFF00
  33. #define _NAV_MTO_SHT 8
  34. #define _RTSRST_MSK 0x00FF
  35. #define _RTSRST_SHT 0
  36. /*BWOPMODE*/
  37. #define _20MHZBW BIT(2)
  38. /*BACAMCMD*/
  39. #define _BACAM_POLL BIT(31)
  40. #define _BACAM_RST BIT(17)
  41. #define _BACAM_RW BIT(16)
  42. #define _BACAM_ADDR_MSK 0x0000007F
  43. #define _BACAM_ADDR_SHT 0
  44. /*LBDLY*/
  45. #define _LBDLY_MSK 0x1F
  46. /*FWDLY*/
  47. #define _FWDLY_MSK 0x0F
  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. #endif /*__RTL8712_WMAC_BITDEF_H__*/