wlan_utility.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. /*
  2. * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /**
  18. * DOC: Contains mandatory API from legacy
  19. */
  20. #ifndef _WLAN_UTILITY_H_
  21. #define _WLAN_UTILITY_H_
  22. #include <qdf_types.h>
  23. #include <wlan_objmgr_psoc_obj.h>
  24. #include <wlan_objmgr_pdev_obj.h>
  25. #include <wlan_objmgr_vdev_obj.h>
  26. #define TGT_INVALID_SNR (0)
  27. #define TGT_MAX_SNR (TGT_NOISE_FLOOR_DBM * (-1))
  28. #define TGT_NOISE_FLOOR_DBM (-96)
  29. #define TGT_IS_VALID_SNR(x) ((x) >= 0 && (x) < TGT_MAX_SNR)
  30. #define TGT_IS_VALID_RSSI(x) ((x) != 0xFF)
  31. /**
  32. * struct wlan_vdev_ch_check_filter - vdev chan check filter object
  33. * @flag: matches or not
  34. * @vdev: vdev to be checked against all the active vdevs
  35. */
  36. struct wlan_vdev_ch_check_filter {
  37. uint8_t flag;
  38. struct wlan_objmgr_vdev *vdev;
  39. };
  40. /**
  41. * struct wlan_peer_count- vdev connected peer count
  42. * @opmode: QDF mode
  43. * @peer_count: peer count
  44. **/
  45. struct wlan_op_mode_peer_count {
  46. enum QDF_OPMODE opmode;
  47. uint16_t peer_count;
  48. };
  49. /**
  50. * wlan_construct_shortssid() - construct the short ssid with the help of
  51. * shortssid table
  52. * @ssid: pointer to ssid
  53. * @ssid_len: ssid length
  54. *
  55. * return: short ssid length
  56. */
  57. uint32_t wlan_construct_shortssid(uint8_t *ssid, uint8_t ssid_len);
  58. /**
  59. * wlan_chan_to_freq() - converts channel to frequency
  60. * @chan: channel number
  61. *
  62. * @return frequency of the channel
  63. */
  64. uint32_t wlan_chan_to_freq(uint8_t chan);
  65. /**
  66. * wlan_get_320_center_freq() - find center frequencies for 320Mhz channel
  67. * @freq: Primary frequency
  68. * @center_freq1: possible 1st center frequency
  69. * @center_freq2: possible 2nd center frequency
  70. *
  71. * return: void
  72. **/
  73. void
  74. wlan_get_320_center_freq(qdf_freq_t freq,
  75. qdf_freq_t *center_freq1,
  76. qdf_freq_t *center_freq2);
  77. /**
  78. * wlan_freq_to_chan() - converts frequency to channel
  79. * @freq: frequency
  80. *
  81. * Return: channel of frequency
  82. */
  83. uint8_t wlan_freq_to_chan(uint32_t freq);
  84. /**
  85. * wlan_is_ie_valid() - Determine if an IE sequence is valid
  86. * @ie: Pointer to the IE buffer
  87. * @ie_len: Length of the IE buffer @ie
  88. *
  89. * This function validates that the IE sequence is valid by verifying
  90. * that the sum of the lengths of the embedded elements match the
  91. * length of the sequence.
  92. *
  93. * Note well that a 0-length IE sequence is considered valid.
  94. *
  95. * Return: true if the IE sequence is valid, false if it is invalid
  96. */
  97. bool wlan_is_ie_valid(const uint8_t *ie, size_t ie_len);
  98. /**
  99. * wlan_get_ie_ptr_from_eid() - Find out ie from eid
  100. * @eid: element id
  101. * @ie: source ie address
  102. * @ie_len: source ie length
  103. *
  104. * Return: vendor ie address - success
  105. * NULL - failure
  106. */
  107. const uint8_t *wlan_get_ie_ptr_from_eid(uint8_t eid,
  108. const uint8_t *ie,
  109. int ie_len);
  110. /**
  111. * wlan_get_vendor_ie_ptr_from_oui() - Find out vendor ie
  112. * @oui: oui buffer
  113. * @oui_size: oui size
  114. * @ie: source ie address
  115. * @ie_len: source ie length
  116. *
  117. * This function find out vendor ie by pass source ie and vendor oui.
  118. *
  119. * Return: vendor ie address - success
  120. * NULL - failure
  121. */
  122. const uint8_t *wlan_get_vendor_ie_ptr_from_oui(const uint8_t *oui,
  123. uint8_t oui_size,
  124. const uint8_t *ie,
  125. uint16_t ie_len);
  126. /**
  127. * wlan_get_ext_ie_ptr_from_ext_id() - Find out ext ie
  128. * @oui: oui buffer
  129. * @oui_size: oui size
  130. * @ie: source ie address
  131. * @ie_len: source ie length
  132. *
  133. * This function find out ext ie from ext id (passed oui)
  134. *
  135. * Return: vendor ie address - success
  136. * NULL - failure
  137. */
  138. const uint8_t *wlan_get_ext_ie_ptr_from_ext_id(const uint8_t *oui,
  139. uint8_t oui_size,
  140. const uint8_t *ie,
  141. uint16_t ie_len);
  142. /**
  143. * wlan_is_emulation_platform() - check if platform is emulation based
  144. * @phy_version - psoc nif phy_version
  145. *
  146. * Return: boolean value based on platform type
  147. */
  148. bool wlan_is_emulation_platform(uint32_t phy_version);
  149. /**
  150. * wlan_get_pdev_id_from_vdev_id() - Helper func to derive pdev id from vdev_id
  151. * @psoc: psoc object
  152. * @vdev_id: vdev identifier
  153. * @dbg_id: object manager debug id
  154. *
  155. * This function is used to derive the pdev id from vdev id for a psoc
  156. *
  157. * Return : pdev_id - +ve integer for success and WLAN_INVALID_PDEV_ID
  158. * for failure
  159. */
  160. uint32_t wlan_get_pdev_id_from_vdev_id(struct wlan_objmgr_psoc *psoc,
  161. uint8_t vdev_id,
  162. wlan_objmgr_ref_dbgid dbg_id);
  163. /**
  164. * wlan_util_is_vdev_active() - Check for vdev active
  165. * @pdev: pdev pointer
  166. * @dbg_id: debug id for ref counting
  167. *
  168. * Return: QDF_STATUS_SUCCESS in case of vdev active
  169. * QDF_STATUS_E_INVAL, if dev is not active
  170. */
  171. QDF_STATUS wlan_util_is_vdev_active(struct wlan_objmgr_pdev *pdev,
  172. wlan_objmgr_ref_dbgid dbg_id);
  173. /**
  174. * wlan_vdev_is_up() - Check for vdev is in UP state
  175. * @vdev: vdev pointer
  176. *
  177. * Return: QDF_STATUS_SUCCESS, if vdev is in up, otherwise QDF_STATUS_E_FAILURE
  178. */
  179. QDF_STATUS wlan_vdev_is_up(struct wlan_objmgr_vdev *vdev);
  180. /**
  181. * wlan_util_pdev_vdevs_deschan_match() - function to check des channel matches
  182. * with other vdevs in pdev
  183. * @pdev: pdev object
  184. * @vdev: vdev object
  185. * @ref_id: object manager ref id
  186. *
  187. * This function checks the vdev desired channel with other vdev channels
  188. *
  189. * Return: QDF_STATUS_SUCCESS, if it matches, otherwise QDF_STATUS_E_FAILURE
  190. */
  191. QDF_STATUS wlan_util_pdev_vdevs_deschan_match(struct wlan_objmgr_pdev *pdev,
  192. struct wlan_objmgr_vdev *vdev,
  193. wlan_objmgr_ref_dbgid dbg_id);
  194. /**
  195. * wlan_util_change_map_index() - function to set/reset given index bit
  196. * @map: bitmpap
  197. * @id: bit index
  198. * @set: 1 for set, 0 of reset
  199. *
  200. * This function set/reset given index bit
  201. *
  202. * Return: void
  203. */
  204. void wlan_util_change_map_index(unsigned long *map, uint8_t id, uint8_t set);
  205. /**
  206. * wlan_util_map_index_is_set() - function to check whether given index bit is
  207. * set
  208. * @map: bitmpap
  209. * @id: bit index
  210. *
  211. * This function checks the given index bit is set
  212. *
  213. * Return: true, if bit is set, otherwise false
  214. */
  215. bool wlan_util_map_index_is_set(unsigned long *map, uint8_t id);
  216. /**
  217. * wlan_util_map_is_any_index_set() - Check if any bit is set in given bitmap
  218. * @map: bitmap
  219. * @nbytes: number of bytes in bitmap
  220. *
  221. * Return: true, if any of the bit is set, otherwise false
  222. */
  223. bool wlan_util_map_is_any_index_set(unsigned long *map, unsigned long nbytes);
  224. /**
  225. * wlan_pdev_chan_change_pending_vdevs() - function to test/set channel change
  226. * pending flag
  227. * @pdev: pdev object
  228. * @vdev_id_map: bitmap to derive channel change vdevs
  229. * @ref_id: object manager ref id
  230. *
  231. * This function test/set channel change pending flag
  232. *
  233. * Return: QDF_STATUS_SUCCESS, if it iterates through all vdevs,
  234. * otherwise QDF_STATUS_E_FAILURE
  235. */
  236. QDF_STATUS wlan_pdev_chan_change_pending_vdevs(struct wlan_objmgr_pdev *pdev,
  237. unsigned long *vdev_id_map,
  238. wlan_objmgr_ref_dbgid dbg_id);
  239. /**
  240. * wlan_pdev_chan_change_pending_vdevs_down() - function to test/set down
  241. * change pending flag
  242. * @pdev: pdev object
  243. * @vdev_id_map: bitmap to derive channel change vdevs
  244. * @ref_id: object manager ref id
  245. *
  246. * This function test/set channel change pending flag
  247. *
  248. * Return: QDF_STATUS_SUCCESS, if it iterates through all vdevs,
  249. * otherwise QDF_STATUS_E_FAILURE
  250. */
  251. QDF_STATUS wlan_pdev_chan_change_pending_vdevs_down(
  252. struct wlan_objmgr_pdev *pdev,
  253. unsigned long *vdev_id_map,
  254. wlan_objmgr_ref_dbgid dbg_id);
  255. /**
  256. * wlan_pdev_chan_change_pending_ap_vdevs_down() - function to test/set channel
  257. * change pending flag for AP VDEVs
  258. * @pdev: pdev object
  259. * @vdev_id_map: bitmap to derive channel change AP vdevs
  260. * @ref_id: object manager ref id
  261. *
  262. * This function test/set channel change pending flag for AP vdevs
  263. *
  264. * Return: QDF_STATUS_SUCCESS, if it iterates through all vdevs,
  265. * otherwise QDF_STATUS_E_FAILURE
  266. */
  267. QDF_STATUS wlan_pdev_chan_change_pending_ap_vdevs_down(
  268. struct wlan_objmgr_pdev *pdev,
  269. unsigned long *vdev_id_map,
  270. wlan_objmgr_ref_dbgid dbg_id);
  271. /**
  272. * wlan_chan_eq() - function to check whether both channels are same
  273. * @chan1: channel1 object
  274. * @chan2: channel2 object
  275. *
  276. * This function checks the chan1 and chan2 are same
  277. *
  278. * Return: QDF_STATUS_SUCCESS, if it matches, otherwise QDF_STATUS_E_FAILURE
  279. */
  280. QDF_STATUS wlan_chan_eq(struct wlan_channel *chan1, struct wlan_channel *chan2);
  281. /**
  282. * wlan_chan_copy() - function to copy channel
  283. * @tgt: target channel object
  284. * @src: src achannel object
  285. *
  286. * This function copies channel data from src to tgt
  287. *
  288. * Return: void
  289. */
  290. void wlan_chan_copy(struct wlan_channel *tgt, struct wlan_channel *src);
  291. /**
  292. * wlan_vdev_get_active_channel() - derives the vdev operating channel
  293. * @vdev: VDEV object
  294. *
  295. * This function checks vdev state and return the channel pointer accordingly
  296. *
  297. * Return: active channel, if vdev chan config is valid
  298. * NULL, if VDEV is in INIT or STOP state
  299. */
  300. struct wlan_channel *wlan_vdev_get_active_channel
  301. (struct wlan_objmgr_vdev *vdev);
  302. /**
  303. * wlan_get_connected_vdev_by_bssid() - check/get any vdev connected on bssid
  304. * @pdev: pdev object
  305. * @bssid: bssid to be checked
  306. * @vdev_id: vdev id
  307. *
  308. * This function will loop through all the vdev in psoc and find/return the
  309. * vdev which is connected to bssid provided.
  310. *
  311. * Return: bool
  312. */
  313. bool wlan_get_connected_vdev_by_bssid(struct wlan_objmgr_pdev *pdev,
  314. uint8_t *bssid, uint8_t *vdev_id);
  315. /**
  316. * wlan_get_connected_vdev_from_psoc_by_bssid() - check/get any vdev
  317. * connected on bssid
  318. * @psoc: psoc object
  319. * @bssid: bssid to be checked
  320. * @vdev_id: vdev id
  321. *
  322. * This function will loop through all the vdev in psoc and find/return the
  323. * vdev which is connected to bssid provided.
  324. *
  325. * Return: bool
  326. */
  327. bool wlan_get_connected_vdev_from_psoc_by_bssid(struct wlan_objmgr_psoc *psoc,
  328. uint8_t *bssid,
  329. uint8_t *vdev_id);
  330. #ifdef WLAN_FEATURE_11BE_MLO
  331. /**
  332. * wlan_get_connected_vdev_by_mld_addr() - check/get any vdev
  333. * connected on mld mac
  334. * @psoc: psoc object
  335. * @mld_mac: mld mac to be checked
  336. * @vdev_id: vdev id
  337. *
  338. * This function will loop through all the vdev in psoc and find/return the
  339. * first vdev which is connected to mld mac provided.
  340. *
  341. * Return: bool
  342. */
  343. bool wlan_get_connected_vdev_by_mld_addr(struct wlan_objmgr_psoc *psoc,
  344. uint8_t *mld_mac, uint8_t *vdev_id);
  345. #endif
  346. /**
  347. * wlan_util_stats_get_rssi() - API to get rssi in dbm
  348. * @db2dbm_enabled: If db2dbm capability is enabled
  349. * @bcn_snr: beacon snr
  350. * @dat_snr: data snr
  351. * @rssi: rssi
  352. *
  353. * This function gets the rssi based on db2dbm support. If this feature is
  354. * present in hw then it means firmware directly sends rssi and no converstion
  355. * is required. If this capablity is not present then host needs to convert
  356. * snr to rssi
  357. *
  358. * Return: None
  359. */
  360. void
  361. wlan_util_stats_get_rssi(bool db2dbm_enabled, int32_t bcn_snr, int32_t dat_snr,
  362. int8_t *rssi);
  363. /**
  364. * wlan_util_is_pdev_restart_progress() - Check if any vdev is in restart state
  365. * @pdev: pdev pointer
  366. * @dbg_id: module id
  367. *
  368. * Iterates through all vdevs, checks if any VDEV is in RESTART_PROGRESS
  369. * substate
  370. *
  371. * Return: QDF_STATUS_SUCCESS,if any vdev is in RESTART_PROGRESS substate
  372. * otherwise QDF_STATUS_E_FAILURE
  373. */
  374. QDF_STATUS wlan_util_is_pdev_restart_progress(struct wlan_objmgr_pdev *pdev,
  375. wlan_objmgr_ref_dbgid dbg_id);
  376. /**
  377. * wlan_util_is_pdev_scan_allowed() - Check for vdev is allowed to scan
  378. * @pdev: pdev pointer
  379. * @dbg_id: module id
  380. *
  381. * Iterates through all vdevs, checks if any VDEV is not either in S_INIT or in
  382. * S_UP state
  383. *
  384. * Return: QDF_STATUS_SUCCESS,if scan is allowed, otherwise QDF_STATUS_E_FAILURE
  385. */
  386. QDF_STATUS wlan_util_is_pdev_scan_allowed(struct wlan_objmgr_pdev *pdev,
  387. wlan_objmgr_ref_dbgid dbg_id);
  388. /**
  389. * wlan_util_get_peer_count_for_mode - This api gives vdev mode specific
  390. * peer count`
  391. * @pdev: PDEV object
  392. * @mode: Operation mode.
  393. *
  394. * Return: int- peer count for operating mode
  395. */
  396. uint16_t wlan_util_get_peer_count_for_mode(struct wlan_objmgr_pdev *pdev,
  397. enum QDF_OPMODE mode);
  398. /**
  399. * wlan_minidump_host_data - Data structure type logged in Minidump
  400. * @WLAN_MD_CP_EXT_PDEV - ol_ath_softc_net80211
  401. * @WLAN_MD_CP_EXT_PSOC - ol_ath_soc_softc
  402. * @WLAN_MD_CP_EXT_VDEV - ieee80211vap
  403. * @WLAN_MD_CP_EXT_PEER - ieee80211_node
  404. * @WLAN_MD_DP_SOC - dp_soc
  405. * @WLAN_MD_DP_PDEV - dp_pdev
  406. * @WLAN_MD_DP_VDEV - dp_vdev
  407. * @WLAN_MD_DP_PEER - dp_peer
  408. * @WLAN_MD_DP_SRNG_REO_DEST - dp_srng type for reo dest
  409. * @WLAN_MD_DP_SRNG_REO_EXCEPTION - dp_srng type for reo exception
  410. * @WLAN_MD_DP_SRNG_REO_CMD - dp_srng type for reo cmd
  411. * @WLAN_MD_DP_SRNG_RX_REL - dp_srng type for reo release
  412. * @WLAN_MD_DP_SRNG_REO_REINJECT - dp_srng type for reo reinject
  413. * @WLAN_MD_DP_SRNG_REO_STATUS - dp_srng type for reo status
  414. * @WLAN_MD_DP_SRNG_TCL_DATA - dp_srng type for tcl data
  415. * @WLAN_MD_DP_SRNG_TCL_STATUS - dp_srng type for tcl status
  416. * @WLAN_MD_DP_SRNG_TX_COMP - dp_srng type for tcl comp
  417. * @WLAN_MD_DP_SRNG_WBM_DESC_REL - dp_srng_type for wbm desc rel
  418. * @WLAN_MD_DP_SRNG_WBM_IDLE_LINK - dp_srng type for wbm idle link
  419. * @WLAN_MD_DP_LINK_DESC_BANK - Wbm link_desc_bank
  420. * @WLAN_MD_DP_SRNG_RXDMA_MON_STATUS - dp_srng type for rxdma mon status
  421. * @WLAN_MD_DP_SRNG_RXDMA_MON_BUF - dp_srng type for rxdma mon buf
  422. * @WLAN_MD_DP_SRNG_RXDMA_MON_DST - dp_srng type for rxdma mon dest
  423. * @WLAN_MD_DP_SRNG_RXDMA_MON_DESC - dp_srng type for rxdma mon desc
  424. * @WLAN_MD_DP_SRNG_RXDMA_ERR_DST - dp_srng type for rxdma err dst
  425. * @WLAN_MD_DP_HAL_SOC - hal_soc
  426. * @WLAN_MD_OBJMGR_PSOC - wlan_objmgr_psoc
  427. * @WLAN_MD_OBJMGR_PSOC_TGT_INFO - wlan_objmgr_tgt_psoc_info
  428. * @WLAN_MD_OBJMGR_PDEV - wlan_objmgr_pdev
  429. * @WLAN_MD_OBJMGR_PDEV_MLME - pdev_mlme
  430. * @WLAN_MD_OBJMGR_VDEV - wlan_objmgr_vdev
  431. * @WLAN_MD_OBJMGR_VDEV_MLME -vdev mlme
  432. * @WLAN_MD_OBJMGR_VDEV_SM - wlan_sm
  433. * @WLAN_MD_DP_SRNG_REO2PPE- dp_srng type PPE rx ring
  434. * @WLAN_MD_DP_SRNG_PPE2TCL - dp_srng type for PPE tx ring
  435. * @WLAN_MD_DP_SRNG_PPE_RELEASE - dp_srng type for PPE tx com ring
  436. * @WLAN_MD_MAX - Max value
  437. */
  438. enum wlan_minidump_host_data {
  439. WLAN_MD_CP_EXT_PDEV,
  440. WLAN_MD_CP_EXT_PSOC,
  441. WLAN_MD_CP_EXT_VDEV,
  442. WLAN_MD_CP_EXT_PEER,
  443. WLAN_MD_DP_SOC,
  444. WLAN_MD_DP_PDEV,
  445. WLAN_MD_DP_VDEV,
  446. WLAN_MD_DP_PEER,
  447. WLAN_MD_DP_SRNG_REO_DEST,
  448. WLAN_MD_DP_SRNG_REO_EXCEPTION,
  449. WLAN_MD_DP_SRNG_REO_CMD,
  450. WLAN_MD_DP_SRNG_RX_REL,
  451. WLAN_MD_DP_SRNG_REO_REINJECT,
  452. WLAN_MD_DP_SRNG_REO_STATUS,
  453. WLAN_MD_DP_SRNG_TCL_DATA,
  454. WLAN_MD_DP_SRNG_TCL_CMD,
  455. WLAN_MD_DP_SRNG_TCL_STATUS,
  456. WLAN_MD_DP_SRNG_TX_COMP,
  457. WLAN_MD_DP_SRNG_WBM_DESC_REL,
  458. WLAN_MD_DP_SRNG_WBM_IDLE_LINK,
  459. WLAN_MD_DP_LINK_DESC_BANK,
  460. WLAN_MD_DP_SRNG_RXDMA_MON_STATUS,
  461. WLAN_MD_DP_SRNG_RXDMA_MON_BUF,
  462. WLAN_MD_DP_SRNG_RXDMA_MON_DST,
  463. WLAN_MD_DP_SRNG_RXDMA_MON_DESC,
  464. WLAN_MD_DP_SRNG_RXDMA_ERR_DST,
  465. WLAN_MD_DP_HAL_SOC,
  466. WLAN_MD_OBJMGR_PSOC,
  467. WLAN_MD_OBJMGR_PSOC_TGT_INFO,
  468. WLAN_MD_OBJMGR_PDEV,
  469. WLAN_MD_OBJMGR_PDEV_MLME,
  470. WLAN_MD_OBJMGR_VDEV,
  471. WLAN_MD_OBJMGR_VDEV_MLME,
  472. WLAN_MD_OBJMGR_VDEV_SM,
  473. WLAN_MD_DP_SRNG_REO2PPE,
  474. WLAN_MD_DP_SRNG_PPE2TCL,
  475. WLAN_MD_DP_SRNG_PPE_RELEASE,
  476. WLAN_MD_MAX
  477. };
  478. /**
  479. * wlan_minidump_log() - Log memory address to be included in minidump
  480. * @start_addr: Start address of the memory to be dumped
  481. * @size: Size in bytes
  482. * @psoc_obj: Psoc Object
  483. * @type: Type of data structure
  484. * @name: String to identify this entry
  485. */
  486. void wlan_minidump_log(void *start_addr, const size_t size,
  487. void *psoc_obj,
  488. enum wlan_minidump_host_data type,
  489. const char *name);
  490. /**
  491. * wlan_minidump_remove() - Remove memory address from minidump
  492. * @start_addr: Start address of the memory previously added
  493. * @size: Size in bytes
  494. * @psoc_obj: Psoc Object
  495. * @type: Type of data structure
  496. * @name: String to identify this entry
  497. */
  498. void wlan_minidump_remove(void *start_addr, const size_t size,
  499. void *psoc_obj,
  500. enum wlan_minidump_host_data type,
  501. const char *name);
  502. #endif /* _WLAN_UTILITY_H_ */