ol_params.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
  3. *
  4. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  5. *
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for
  8. * any purpose with or without fee is hereby granted, provided that the
  9. * above copyright notice and this permission notice appear in all
  10. * copies.
  11. *
  12. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  13. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  14. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  15. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  16. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  17. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. * PERFORMANCE OF THIS SOFTWARE.
  20. */
  21. /*
  22. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. /*
  27. * Defintions for the Atheros Wireless LAN controller driver.
  28. */
  29. #ifndef _DEV_OL_PARAMS_H
  30. #define _DEV_OL_PARAMS_H
  31. #include "ol_txrx_stats.h"
  32. #include "wlan_defs.h" /* for wlan statst definitions */
  33. /*
  34. ** Enumeration of PDEV Configuration parameter
  35. */
  36. enum ol_ath_param_t {
  37. OL_ATH_PARAM_TXCHAINMASK = 0,
  38. OL_ATH_PARAM_RXCHAINMASK,
  39. OL_ATH_PARAM_TXCHAINMASKLEGACY,
  40. OL_ATH_PARAM_RXCHAINMASKLEGACY,
  41. OL_ATH_PARAM_CHAINMASK_SEL,
  42. OL_ATH_PARAM_AMPDU,
  43. OL_ATH_PARAM_AMPDU_LIMIT,
  44. OL_ATH_PARAM_AMPDU_SUBFRAMES,
  45. OL_ATH_PARAM_LDPC,
  46. OL_ATH_PARAM_NON_AGG_SW_RETRY_TH,
  47. OL_ATH_PARAM_AGG_SW_RETRY_TH,
  48. OL_ATH_PARAM_STA_KICKOUT_TH,
  49. OL_ATH_PARAM_WLAN_PROF_ENABLE,
  50. OL_ATH_PARAM_LTR_ENABLE,
  51. OL_ATH_PARAM_LTR_AC_LATENCY_BE,
  52. OL_ATH_PARAM_LTR_AC_LATENCY_BK,
  53. OL_ATH_PARAM_LTR_AC_LATENCY_VI,
  54. OL_ATH_PARAM_LTR_AC_LATENCY_VO,
  55. OL_ATH_PARAM_LTR_AC_LATENCY_TIMEOUT,
  56. OL_ATH_PARAM_LTR_TX_ACTIVITY_TIMEOUT,
  57. OL_ATH_PARAM_LTR_SLEEP_OVERRIDE,
  58. OL_ATH_PARAM_LTR_RX_OVERRIDE,
  59. OL_ATH_PARAM_L1SS_ENABLE,
  60. OL_ATH_PARAM_DSLEEP_ENABLE,
  61. OL_ATH_PARAM_PCIELP_TXBUF_FLUSH,
  62. OL_ATH_PARAM_PCIELP_TXBUF_WATERMARK,
  63. OL_ATH_PARAM_PCIELP_TXBUF_TMO_EN,
  64. OL_ATH_PARAM_PCIELP_TXBUF_TMO_VALUE,
  65. OL_ATH_PARAM_BCN_BURST,
  66. OL_ATH_PARAM_ARP_AC_OVERRIDE,
  67. OL_ATH_PARAM_TXPOWER_LIMIT2G,
  68. OL_ATH_PARAM_TXPOWER_LIMIT5G,
  69. OL_ATH_PARAM_TXPOWER_SCALE,
  70. OL_ATH_PARAM_DCS,
  71. OL_ATH_PARAM_ANI_ENABLE,
  72. OL_ATH_PARAM_ANI_POLL_PERIOD,
  73. OL_ATH_PARAM_ANI_LISTEN_PERIOD,
  74. OL_ATH_PARAM_ANI_OFDM_LEVEL,
  75. OL_ATH_PARAM_ANI_CCK_LEVEL,
  76. OL_ATH_PARAM_PROXYSTA,
  77. OL_ATH_PARAM_DYN_TX_CHAINMASK,
  78. OL_ATH_PARAM_VOW_EXT_STATS,
  79. OL_ATH_PARAM_PWR_GATING_ENABLE,
  80. OL_ATH_PARAM_CHATTER,
  81. };
  82. /*
  83. ** Enumeration of PDEV Configuration parameter
  84. */
  85. enum ol_hal_param_t {
  86. OL_HAL_CONFIG_DMA_BEACON_RESPONSE_TIME = 0
  87. };
  88. /*
  89. ** structure to hold all stats information
  90. ** for offload device interface
  91. */
  92. struct ol_stats {
  93. int txrx_stats_level;
  94. struct ol_txrx_stats txrx_stats;
  95. struct wlan_dbg_stats stats;
  96. };
  97. #endif /* _DEV_OL_PARAMS_H */