rtl8712_debugctrl_bitdef.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_DEBUGCTRL_BITDEF_H__
  21. #define __RTL8712_DEBUGCTRL_BITDEF_H__
  22. /*BIST*/
  23. #define _BIST_RST BIT(0)
  24. /*LMS*/
  25. #define _LMS_MSK 0x03
  26. /*WDG_CTRL*/
  27. #define _OVSEL_MSK 0x0600
  28. #define _OVSEL_SHT 9
  29. #define _WDGCLR BIT(8)
  30. #define _WDGEN_MSK 0x00FF
  31. #define _WDGEN_SHT 0
  32. /*INTM*/
  33. #define _TXTIMER_MSK 0xF000
  34. #define _TXTIMER_SHT 12
  35. #define _TXNUM_MSK 0x0F00
  36. #define _TXNUM_SHT 8
  37. #define _RXTIMER_MSK 0x00F0
  38. #define _RXTIMER_SHT 4
  39. #define _RXNUM_MSK 0x000F
  40. #define _RXNUM_SHT 0
  41. /*FDLOCKTURN0*/
  42. /*FDLOCKTURN1*/
  43. #define _TURN1 BIT(0)
  44. /*FDLOCKFLAG0*/
  45. /*FDLOCKFLAG1*/
  46. #define _LOCKFLAG1_MSK 0x03
  47. #endif /* __RTL8712_DEBUGCTRL_BITDEF_H__ */