rtl8712_timectrl_bitdef.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_TIMECTRL_BITDEF_H__
  21. #define __RTL8712_TIMECTRL_BITDEF_H__
  22. /*TSFTR*/
  23. /*SLOT*/
  24. /*USTIME*/
  25. /*TUBASE*/
  26. #define _TUBASE_MSK 0x07FF
  27. /*SIFS_CCK*/
  28. #define _SIFS_CCK_TRX_MSK 0xFF00
  29. #define _SIFS_CCK_TRX_SHT 0x8
  30. #define _SIFS_CCK_CTX_MSK 0x00FF
  31. #define _SIFS_CCK_CTX_SHT 0
  32. /*SIFS_OFDM*/
  33. #define _SIFS_OFDM_TRX_MSK 0xFF00
  34. #define _SIFS_OFDM_TRX_SHT 0x8
  35. #define _SIFS_OFDM_CTX_MSK 0x00FF
  36. #define _SIFS_OFDM_CTX_SHT 0
  37. /*PIFS*/
  38. /*ACKTO*/
  39. /*EIFS*/
  40. /*BCNITV*/
  41. /*ATIMWND*/
  42. /*DRVERLYINT*/
  43. #define _ENSWBCN BIT(15)
  44. #define _DRVERLY_TU_MSK 0x0FF0
  45. #define _DRVERLY_TU_SHT 4
  46. #define _DRVERLY_US_MSK 0x000F
  47. #define _DRVERLY_US_SHT 0
  48. /*BCNDMATIM*/
  49. #define _BCNDMATIM_MSK 0x03FF
  50. /*BCNERRTH*/
  51. /*MLT*/
  52. #endif /* __RTL8712_TIMECTRL_BITDEF_H__*/