rtl8712_security_bitdef.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_SECURITY_BITDEF_H__
  21. #define __RTL8712_SECURITY_BITDEF_H__
  22. /*CAMCMD*/
  23. #define _SECCAM_POLLING BIT(31)
  24. #define _SECCAM_CLR BIT(30)
  25. #define _SECCAM_WE BIT(16)
  26. #define _SECCAM_ADR_MSK 0x000000FF
  27. #define _SECCAM_ADR_SHT 0
  28. /*CAMDBG*/
  29. #define _SECCAM_INFO BIT(31)
  30. #define _SEC_KEYFOUND BIT(30)
  31. #define _SEC_CONFIG_MSK 0x3F000000
  32. #define _SEC_CONFIG_SHT 24
  33. #define _SEC_KEYCONTENT_MSK 0x00FFFFFF
  34. #define _SEC_KEYCONTENT_SHT 0
  35. /*SECCFG*/
  36. #define _NOSKMC BIT(5)
  37. #define _SKBYA2 BIT(4)
  38. #define _RXDEC BIT(3)
  39. #define _TXENC BIT(2)
  40. #define _RXUSEDK BIT(1)
  41. #define _TXUSEDK BIT(0)
  42. #endif /*__RTL8712_SECURITY_BITDEF_H__*/