wlan_pmo_extwow_cfg.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /*
  2. * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #ifndef WLAN_PMO_EXTWOW_CFG_H__
  19. #define WLAN_PMO_EXTWOW_CFG_H__
  20. #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
  21. /*
  22. * <ini>
  23. * gExtWoWgotoSuspend - Enable/Disable Extended WoW
  24. * @Min: 0
  25. * @Max: 1
  26. * @Default: 1
  27. *
  28. * This ini is used to enable/disable Extended WoW.
  29. *
  30. * Related: None
  31. *
  32. * Supported Feature: Power Save
  33. *
  34. * Usage: External
  35. *
  36. * </ini>
  37. */
  38. #define CFG_EXTWOW_GOTO_SUSPEND CFG_INI_BOOL("gExtWoWgotoSuspend", \
  39. 1, \
  40. "Enable Ext WoW goto support")
  41. /*
  42. * <ini>
  43. * gExtWowApp1WakeupPinNumber - Set wakeup1 PIN number
  44. * @Min: 0
  45. * @Max: 255
  46. * @Default: 12
  47. *
  48. * This ini is used to set EXT WOW APP1 wakeup PIN number
  49. *
  50. * Related: None
  51. *
  52. * Supported Feature: Power Save
  53. *
  54. * Usage: External
  55. *
  56. * </ini>
  57. */
  58. #define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER \
  59. CFG_INI_UINT("gExtWowApp1WakeupPinNumber", \
  60. 0, 255, 12, \
  61. CFG_VALUE_OR_DEFAULT, \
  62. "Set wakeup1 PIN number")
  63. /*
  64. * <ini>
  65. * gExtWowApp2WakeupPinNumber - Set wakeup2 PIN number
  66. * @Min: 0
  67. * @Max: 255
  68. * @Default: 16
  69. *
  70. * This ini is used to set EXT WOW APP2 wakeup PIN number
  71. *
  72. * Related: None
  73. *
  74. * Supported Feature: Power Save
  75. *
  76. * Usage: External
  77. *
  78. * </ini>
  79. */
  80. #define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER \
  81. CFG_INI_UINT("gExtWowApp2WakeupPinNumber", \
  82. 0, 255, 16, \
  83. CFG_VALUE_OR_DEFAULT, \
  84. "Set wakeup2 PIN number")
  85. /*
  86. * <ini>
  87. * gExtWoWApp2KAInitPingInterval - Set Keep Alive Init Ping Interval
  88. * @Min: 0
  89. * @Max: 0xffffffff
  90. * @Default: 240
  91. *
  92. * This ini is used to set Keep Alive Init Ping Interval for EXT WOW
  93. *
  94. * Related: None
  95. *
  96. * Supported Feature: Power Save
  97. *
  98. * Usage: External
  99. *
  100. * </ini>
  101. */
  102. #define CFG_EXTWOW_KA_INIT_PING_INTERVAL \
  103. CFG_INI_UINT("gExtWoWApp2KAInitPingInterval", \
  104. 0, 0xffffffff, 240, \
  105. CFG_VALUE_OR_DEFAULT, \
  106. "Set Keep Alive Init Ping Interval")
  107. /*
  108. * <ini>
  109. * gExtWoWApp2KAMinPingInterval - Set Keep Alive Minimum Ping Interval
  110. * @Min: 0
  111. * @Max: 0xffffffff
  112. * @Default: 240
  113. *
  114. * This ini is used to set Keep Alive Minimum Ping Interval for EXT WOW
  115. *
  116. * Related: None
  117. *
  118. * Supported Feature: Power Save
  119. *
  120. * Usage: External
  121. *
  122. * </ini>
  123. */
  124. #define CFG_EXTWOW_KA_MIN_PING_INTERVAL \
  125. CFG_INI_UINT("gExtWoWApp2KAMinPingInterval", \
  126. 0, 0xffffffff, 240, \
  127. CFG_VALUE_OR_DEFAULT, \
  128. "Set Keep Alive Minimum Ping Interval")
  129. /*
  130. * <ini>
  131. * gExtWoWApp2KAMaxPingInterval - Set Keep Alive Maximum Ping Interval
  132. * @Min: 0
  133. * @Max: 0xffffffff
  134. * @Default: 1280
  135. *
  136. * This ini is used to set Keep Alive Maximum Ping Interval for EXT WOW
  137. *
  138. * Related: None
  139. *
  140. * Supported Feature: Power Save
  141. *
  142. * Usage: External
  143. *
  144. * </ini>
  145. */
  146. #define CFG_EXTWOW_KA_MAX_PING_INTERVAL \
  147. CFG_INI_UINT("gExtWoWApp2KAMaxPingInterval", \
  148. 0, 0xffffffff, 1280, \
  149. CFG_VALUE_OR_DEFAULT, \
  150. "Set Keep Alive Maximum Ping Interval")
  151. /*
  152. * <ini>
  153. * gExtWoWApp2KAIncPingInterval - Set Keep Alive increment of Ping Interval
  154. * @Min: 0
  155. * @Max: 0xffffffff
  156. * @Default: 4
  157. *
  158. * This ini is used to set Keep Alive increment of Ping Interval for EXT WOW
  159. *
  160. * Related: None
  161. *
  162. * Supported Feature: Power Save
  163. *
  164. * Usage: External
  165. *
  166. * </ini>
  167. */
  168. #define CFG_EXTWOW_KA_INC_PING_INTERVAL \
  169. CFG_INI_UINT("gExtWoWApp2KAIncPingInterval", \
  170. 0, 0xffffffff, 4, \
  171. CFG_VALUE_OR_DEFAULT, \
  172. "Set Keep Alive increment of Ping Interval")
  173. /*
  174. * <ini>
  175. * gExtWoWApp2TcpSrcPort - Set TCP source port
  176. * @Min: 0
  177. * @Max: 65535
  178. * @Default: 5000
  179. *
  180. * This ini is used to set TCP source port when EXT WOW is enabled
  181. *
  182. * Related: None
  183. *
  184. * Supported Feature: Power Save
  185. *
  186. * Usage: External
  187. *
  188. * </ini>
  189. */
  190. #define CFG_EXTWOW_TCP_SRC_PORT \
  191. CFG_INI_UINT("gExtWoWApp2TcpSrcPort", \
  192. 0, 65535, 5000, \
  193. CFG_VALUE_OR_DEFAULT, \
  194. "Set TCP source port")
  195. /*
  196. * <ini>
  197. * gExtWoWApp2TcpDstPort - Set TCP Destination port
  198. * @Min: 0
  199. * @Max: 65535
  200. * @Default: 5001
  201. *
  202. * This ini is used to set TCP Destination port when EXT WOW is enabled
  203. *
  204. * Related: None
  205. *
  206. * Supported Feature: Power Save
  207. *
  208. * Usage: External
  209. *
  210. * </ini>
  211. */
  212. #define CFG_EXTWOW_TCP_DST_PORT \
  213. CFG_INI_UINT("gExtWoWApp2TcpDstPort", \
  214. 0, 65535, 5001, \
  215. CFG_VALUE_OR_DEFAULT, \
  216. "Set TCP Destination port")
  217. /*
  218. * <ini>
  219. * gExtWoWApp2TcpTxTimeout - Set TCP tx timeout
  220. * @Min: 0
  221. * @Max: 0xffffffff
  222. * @Default: 200
  223. *
  224. * This ini is used to set TCP Tx timeout when EXT WOW is enabled
  225. *
  226. * Related: None
  227. *
  228. * Supported Feature: Power Save
  229. *
  230. * Usage: External
  231. *
  232. * </ini>
  233. */
  234. #define CFG_EXTWOW_TCP_TX_TIMEOUT \
  235. CFG_INI_UINT("gExtWoWApp2TcpTxTimeout", \
  236. 0, 0xffffffff, 200, \
  237. CFG_VALUE_OR_DEFAULT, \
  238. "Set TCP tx timeout")
  239. /*
  240. * <ini>
  241. * gExtWoWApp2TcpRxTimeout - Set TCP rx timeout
  242. * @Min: 0
  243. * @Max: 0xffffffff
  244. * @Default: 200
  245. *
  246. * This ini is used to set TCP Rx timeout when EXT WOW is enabled
  247. *
  248. * Supported Feature: Power Save
  249. *
  250. * Usage: External
  251. *
  252. * </ini>
  253. */
  254. #define CFG_EXTWOW_TCP_RX_TIMEOUT \
  255. CFG_INI_UINT("gExtWoWApp2TcpRxTimeout", \
  256. 0, 0xffffffff, 200, \
  257. CFG_VALUE_OR_DEFAULT, \
  258. "ExtWow App2 tcp rx timeout")
  259. #define CFG_EXTWOW_ALL \
  260. CFG(CFG_EXTWOW_GOTO_SUSPEND) \
  261. CFG(CFG_EXTWOW_APP1_WAKE_PIN_NUMBER) \
  262. CFG(CFG_EXTWOW_APP2_WAKE_PIN_NUMBER) \
  263. CFG(CFG_EXTWOW_KA_INIT_PING_INTERVAL) \
  264. CFG(CFG_EXTWOW_KA_MIN_PING_INTERVAL) \
  265. CFG(CFG_EXTWOW_KA_MAX_PING_INTERVAL) \
  266. CFG(CFG_EXTWOW_KA_INC_PING_INTERVAL) \
  267. CFG(CFG_EXTWOW_TCP_SRC_PORT) \
  268. CFG(CFG_EXTWOW_TCP_DST_PORT) \
  269. CFG(CFG_EXTWOW_TCP_TX_TIMEOUT) \
  270. CFG(CFG_EXTWOW_TCP_RX_TIMEOUT)
  271. #else
  272. #define CFG_EXTWOW_ALL
  273. #endif /* WLAN_FEATURE_EXTWOW_SUPPORT */
  274. #endif /* WLAN_PMO_EXTWOW_CFG_H_ */