wl12xx.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * This file is part of wl12xx
  3. *
  4. * Copyright (C) 2011 Texas Instruments Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  18. * 02110-1301 USA
  19. *
  20. */
  21. #ifndef __WL12XX_PRIV_H__
  22. #define __WL12XX_PRIV_H__
  23. #include "conf.h"
  24. /* WiLink 6/7 chip IDs */
  25. #define CHIP_ID_127X_PG10 (0x04030101)
  26. #define CHIP_ID_127X_PG20 (0x04030111)
  27. #define CHIP_ID_128X_PG10 (0x05030101)
  28. #define CHIP_ID_128X_PG20 (0x05030111)
  29. /* FW chip version for wl127x */
  30. #define WL127X_CHIP_VER 6
  31. /* minimum single-role FW version for wl127x */
  32. #define WL127X_IFTYPE_SR_VER 3
  33. #define WL127X_MAJOR_SR_VER 10
  34. #define WL127X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE
  35. #define WL127X_MINOR_SR_VER 115
  36. /* minimum multi-role FW version for wl127x */
  37. #define WL127X_IFTYPE_MR_VER 5
  38. #define WL127X_MAJOR_MR_VER 7
  39. #define WL127X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE
  40. #define WL127X_MINOR_MR_VER 115
  41. /* FW chip version for wl128x */
  42. #define WL128X_CHIP_VER 7
  43. /* minimum single-role FW version for wl128x */
  44. #define WL128X_IFTYPE_SR_VER 3
  45. #define WL128X_MAJOR_SR_VER 10
  46. #define WL128X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE
  47. #define WL128X_MINOR_SR_VER 115
  48. /* minimum multi-role FW version for wl128x */
  49. #define WL128X_IFTYPE_MR_VER 5
  50. #define WL128X_MAJOR_MR_VER 7
  51. #define WL128X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE
  52. #define WL128X_MINOR_MR_VER 42
  53. #define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)
  54. #define WL12XX_NUM_TX_DESCRIPTORS 16
  55. #define WL12XX_NUM_RX_DESCRIPTORS 8
  56. #define WL12XX_NUM_MAC_ADDRESSES 2
  57. #define WL12XX_RX_BA_MAX_SESSIONS 3
  58. struct wl127x_rx_mem_pool_addr {
  59. u32 addr;
  60. u32 addr_extra;
  61. };
  62. struct wl12xx_priv {
  63. struct wl12xx_priv_conf conf;
  64. int ref_clock;
  65. int tcxo_clock;
  66. struct wl127x_rx_mem_pool_addr *rx_mem_addr;
  67. };
  68. #endif /* __WL12XX_PRIV_H__ */