qdf_ipa.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. /*
  2. * Copyright (c) 2017, The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _QDF_IPA_H
  17. #define _QDF_IPA_H
  18. #include <i_qdf_ipa.h>
  19. /**
  20. * qdf_ipa_wdi_meter_evt_type_t - type of event client callback is
  21. * for AP+STA mode metering
  22. * @IPA_GET_WDI_SAP_STATS: get IPA_stats betwen SAP and STA -
  23. * use ipa_get_wdi_sap_stats structure
  24. * @IPA_SET_WIFI_QUOTA: set quota limit on STA -
  25. * use ipa_set_wifi_quota structure
  26. */
  27. typedef __qdf_ipa_wdi_meter_evt_type_t qdf_ipa_wdi_meter_evt_type_t;
  28. typedef __qdf_ipa_get_wdi_sap_stats_t qdf_ipa_get_wdi_sap_stats_t;
  29. /**
  30. * qdf_ipa_set_wifi_quota_t - structure used for
  31. * IPA_SET_WIFI_QUOTA.
  32. */
  33. typedef __qdf_ipa_set_wifi_quota_t qdf_ipa_set_wifi_quota_t;
  34. /**
  35. * qdf_ipa_connect_params_t - low-level client connect input parameters. Either
  36. * client allocates the data and desc FIFO and specifies that in data+desc OR
  37. * specifies sizes and pipe_mem pref and IPA does the allocation.
  38. */
  39. typedef __qdf_ipa_connect_params_t qdf_ipa_connect_params_t;
  40. /**
  41. * qdf_ipa_tx_meta_t - meta-data for the TX packet
  42. */
  43. typedef __qdf_ipa_tx_meta_t qdf_ipa_tx_meta_t;
  44. /**
  45. * __qdf_ipa_sps_params_t - SPS related output parameters resulting from
  46. */
  47. typedef __qdf_ipa_sps_params_t qdf_ipa_sps_params_t;
  48. /**
  49. * qdf_ipa_tx_intf_t - interface tx properties
  50. */
  51. typedef __qdf_ipa_tx_intf_t qdf_ipa_tx_intf_t;
  52. /**
  53. * qdf_ipa_rx_intf_t - interface rx properties
  54. */
  55. typedef __qdf_ipa_rx_intf_t qdf_ipa_rx_intf_t;
  56. /**
  57. * qdf_ipa_ext_intf_t - interface ext properties
  58. */
  59. typedef __qdf_ipa_ext_intf_t qdf_ipa_ext_intf_t;
  60. /**
  61. * qdf_ipa_sys_connect_params_t - information needed to setup an IPA end-point
  62. * in system-BAM mode
  63. */
  64. typedef __qdf_ipa_sys_connect_params_t qdf_ipa_sys_connect_params_t;
  65. /**
  66. * __qdf_pa_rm_event_t - IPA RM events
  67. *
  68. * Indicate the resource state change
  69. */
  70. typedef __qdf_ipa_rm_event_t qdf_ipa_rm_event_t;
  71. /**
  72. * struct qdf_ipa_rm_register_params_t - information needed to
  73. * register IPA RM client with IPA RM
  74. */
  75. typedef __qdf_ipa_rm_register_params_t qdf_ipa_rm_register_params_t;
  76. /**
  77. * struct qdf_ipa_rm_create_params_t - information needed to initialize
  78. * the resource
  79. *
  80. * IPA RM client is expected to perform non blocking operations only
  81. * in request_resource and release_resource functions and
  82. * release notification context as soon as possible.
  83. */
  84. typedef __qdf_ipa_rm_create_params_t qdf_ipa_rm_create_params_t;
  85. /**
  86. * qdf_ipa_rm_perf_profile_t - information regarding IPA RM client performance
  87. * profile
  88. */
  89. typedef __qdf_ipa_rm_perf_profile_t qdf_ipa_rm_perf_profile_t;
  90. /**
  91. * qdf_ipa_tx_data_desc_t - information needed
  92. * to send data packet to HW link: link to data descriptors
  93. * priv: client specific private data
  94. */
  95. typedef __qdf_ipa_tx_data_desc_t qdf_ipa_tx_data_desc_t;
  96. /**
  97. * qdf_ipa_rx_data_t - information needed
  98. * to send to wlan driver on receiving data from ipa hw
  99. */
  100. typedef __qdf_ipa_rx_data_t qdf_ipa_rx_data_t;
  101. /**
  102. * qdf_ipa_wdi_ul_params_t - WDI_RX configuration
  103. */
  104. typedef __qdf_ipa_wdi_ul_params_t qdf_ipa_wdi_ul_params_t;
  105. /**
  106. * qdf_ipa_wdi_ul_params_smmu_t - WDI_RX configuration (with WLAN SMMU)
  107. */
  108. typedef __qdf_ipa_wdi_ul_params_smmu_t qdf_ipa_wdi_ul_params_smmu_t;
  109. /**
  110. * qdf_ipa_wdi_dl_params_t - WDI_TX configuration
  111. */
  112. typedef __qdf_ipa_wdi_dl_params_t qdf_ipa_wdi_dl_params_t;
  113. /**
  114. * qdf_ipa_wdi_dl_params_smmu_t - WDI_TX configuration (with WLAN SMMU)
  115. */
  116. typedef __qdf_ipa_wdi_dl_params_smmu_t qdf_ipa_wdi_dl_params_smmu_t;
  117. /**
  118. * qdf_ipa_wdi_in_params_t - information provided by WDI client
  119. */
  120. typedef __qdf_ipa_wdi_in_params_t qdf_ipa_wdi_in_params_t;
  121. /**
  122. * qdf_ipa_wdi_out_params_t - information provided to WDI client
  123. */
  124. typedef __qdf_ipa_wdi_out_params_t qdf_ipa_wdi_out_params_t;
  125. /**
  126. * qdf_ipa_wdi_db_params_t - information provided to retrieve
  127. * physical address of uC doorbell
  128. */
  129. typedef __qdf_ipa_wdi_db_params_t qdf_ipa_wdi_db_params_t;
  130. /**
  131. * qdf_ipa_wdi_uc_ready_params_t - uC ready CB parameters
  132. */
  133. typedef void (*qdf_ipa_uc_ready_cb)(void *priv);
  134. typedef __qdf_ipa_wdi_uc_ready_params_t qdf_ipa_wdi_uc_ready_params_t;
  135. /**
  136. * qdf_ipa_wdi_buffer_info_t - address info of a WLAN allocated buffer
  137. *
  138. * IPA driver will create/release IOMMU mapping in IPA SMMU from iova->pa
  139. */
  140. typedef __qdf_ipa_wdi_buffer_info_t qdf_ipa_wdi_buffer_info_t;
  141. /**
  142. * qdf_ipa_gsi_ep_config_t - IPA GSI endpoint configurations
  143. */
  144. typedef __qdf_ipa_gsi_ep_config_t qdf_ipa_gsi_ep_config_t;
  145. /**
  146. * qdf_ipa_dp_evt_type_t - type of event client callback is
  147. * invoked for on data path
  148. * @IPA_RECEIVE: data is struct sk_buff
  149. * @IPA_WRITE_DONE: data is struct sk_buff
  150. */
  151. typedef __qdf_ipa_dp_evt_type_t qdf_ipa_dp_evt_type_t;
  152. typedef __qdf_ipa_hdr_add_t qdf_ipa_hdr_add_t;
  153. typedef __qdf_ipa_hdr_del_t qdf_ipa_hdr_del_t;
  154. typedef __qdf_ipa_ioc_add_hdr_t qdf_ipa_ioc_add_hdr_t;
  155. typedef __qdf_ipa_ioc_del_hdr_t qdf_ipa_ioc_del_hdr_t;
  156. typedef __qdf_ipa_ioc_get_hdr_t qdf_ipa_ioc_get_hdr_t;
  157. typedef __qdf_ipa_ioc_copy_hdr_t qdf_ipa_ioc_copy_hdr_t;
  158. typedef __qdf_ipa_ioc_add_hdr_proc_ctx_t qdf_ipa_ioc_add_hdr_proc_ctx_t;
  159. typedef __qdf_ipa_ioc_del_hdr_proc_ctx_t qdf_ipa_ioc_del_hdr_proc_ctx_t;
  160. typedef __qdf_ipa_msg_meta_t qdf_ipa_msg_meta_t;
  161. typedef __qdf_ipa_client_type_t qdf_ipa_client_type_t;
  162. typedef __qdf_ipa_hw_stats_wdi_info_data_t qdf_ipa_hw_stats_wdi_info_data_t;
  163. typedef __qdf_ipa_rm_resource_name_t qdf_ipa_rm_resource_name_t;
  164. typedef __qdf_ipa_wlan_event_t qdf_ipa_wlan_event_t;
  165. typedef __qdf_ipa_wlan_msg_t qdf_ipa_wlan_msg_t;
  166. typedef __qdf_ipa_wlan_msg_ex_t qdf_ipa_wlan_msg_ex_t;
  167. typedef __qdf_ipa_ioc_tx_intf_prop_t qdf_ipa_ioc_tx_intf_prop_t;
  168. typedef __qdf_ipa_ioc_rx_intf_prop_t qdf_ipa_ioc_rx_intf_prop_t;
  169. typedef __qdf_ipa_wlan_hdr_attrib_val_t qdf_ipa_wlan_hdr_attrib_val_t;
  170. typedef int (*qdf_ipa_msg_pull_fn)(void *buff, u32 len, u32 type);
  171. typedef void (*qdf_ipa_ready_cb)(void *user_data);
  172. /*
  173. * Connect / Disconnect
  174. */
  175. static inline int qdf_ipa_connect(const __qdf_ipa_connect_params_t *in,
  176. qdf_ipa_sps_params_t *sps, u32 *clnt_hdl)
  177. {
  178. return __qdf_ipa_connect(in, sps, clnt_hdl);
  179. }
  180. static inline int qdf_ipa_disconnect(u32 clnt_hdl)
  181. {
  182. return __qdf_ipa_disconnect(clnt_hdl);
  183. }
  184. /*
  185. * Resume / Suspend
  186. */
  187. static inline int qdf_ipa_reset_endpoint(u32 clnt_hdl)
  188. {
  189. return __qdf_ipa_reset_endpoint(clnt_hdl);
  190. }
  191. /*
  192. * Remove ep delay
  193. */
  194. static inline int qdf_ipa_clear_endpoint_delay(u32 clnt_hdl)
  195. {
  196. return __qdf_ipa_clear_endpoint_delay(clnt_hdl);
  197. }
  198. /*
  199. * Header removal / addition
  200. */
  201. static inline int qdf_ipa_add_hdr(qdf_ipa_ioc_add_hdr_t *hdrs)
  202. {
  203. return __qdf_ipa_add_hdr(hdrs);
  204. }
  205. static inline int qdf_ipa_del_hdr(qdf_ipa_ioc_del_hdr_t *hdls)
  206. {
  207. return __qdf_ipa_del_hdr(hdls);
  208. }
  209. static inline int qdf_ipa_commit_hdr(void)
  210. {
  211. return __qdf_ipa_commit_hdr();
  212. }
  213. static inline int qdf_ipa_reset_hdr(void)
  214. {
  215. return __qdf_ipa_reset_hdr();
  216. }
  217. static inline int qdf_ipa_get_hdr(qdf_ipa_ioc_get_hdr_t *lookup)
  218. {
  219. return __qdf_ipa_get_hdr(lookup);
  220. }
  221. static inline int qdf_ipa_put_hdr(u32 hdr_hdl)
  222. {
  223. return __qdf_ipa_put_hdr(hdr_hdl);
  224. }
  225. static inline int qdf_ipa_copy_hdr(qdf_ipa_ioc_copy_hdr_t *copy)
  226. {
  227. return __qdf_ipa_copy_hdr(copy);
  228. }
  229. /*
  230. * Header Processing Context
  231. */
  232. static inline int qdf_ipa_add_hdr_proc_ctx(
  233. qdf_ipa_ioc_add_hdr_proc_ctx_t *proc_ctxs)
  234. {
  235. return __qdf_ipa_add_hdr_proc_ctx(proc_ctxs);
  236. }
  237. static inline int qdf_ipa_del_hdr_proc_ctx(qdf_ipa_ioc_del_hdr_proc_ctx_t *hdls)
  238. {
  239. return __qdf_ipa_del_hdr_proc_ctx(hdls);
  240. }
  241. /*
  242. * Messaging
  243. */
  244. static inline int qdf_ipa_send_msg(qdf_ipa_msg_meta_t *meta, void *buff,
  245. ipa_msg_free_fn callback)
  246. {
  247. return __qdf_ipa_send_msg(meta, buff, callback);
  248. }
  249. static inline int qdf_ipa_register_pull_msg(qdf_ipa_msg_meta_t *meta,
  250. qdf_ipa_msg_pull_fn callback)
  251. {
  252. return __qdf_ipa_register_pull_msg(meta, callback);
  253. }
  254. static inline int qdf_ipa_deregister_pull_msg(qdf_ipa_msg_meta_t *meta)
  255. {
  256. return __qdf_ipa_deregister_pull_msg(meta);
  257. }
  258. /*
  259. * Interface
  260. */
  261. static inline int qdf_ipa_register_intf(const char *name,
  262. const qdf_ipa_tx_intf_t *tx,
  263. const qdf_ipa_rx_intf_t *rx)
  264. {
  265. return __qdf_ipa_register_intf(name, tx, rx);
  266. }
  267. static inline int qdf_ipa_register_intf_ext(const char *name,
  268. const qdf_ipa_tx_intf_t *tx,
  269. const qdf_ipa_rx_intf_t *rx,
  270. const qdf_ipa_ext_intf_t *ext)
  271. {
  272. return __qdf_ipa_register_intf_ext(name, tx, rx, ext);
  273. }
  274. static inline int qdf_ipa_deregister_intf(const char *name)
  275. {
  276. return __qdf_ipa_deregister_intf(name);
  277. }
  278. /*
  279. * Data path
  280. */
  281. static inline int qdf_ipa_tx_dp(qdf_ipa_client_type_t dst, struct sk_buff *skb,
  282. qdf_ipa_tx_meta_t *metadata)
  283. {
  284. return __qdf_ipa_tx_dp(dst, skb, metadata);
  285. }
  286. /*
  287. * To transfer multiple data packets
  288. */
  289. static inline int qdf_ipa_tx_dp_mul(
  290. qdf_ipa_client_type_t dst,
  291. qdf_ipa_tx_data_desc_t *data_desc)
  292. {
  293. return __qdf_ipa_tx_dp_mul(dst, data_desc);
  294. }
  295. static inline void qdf_ipa_free_skb(qdf_ipa_rx_data_t *rx_in)
  296. {
  297. return __qdf_ipa_free_skb(rx_in);;
  298. }
  299. /*
  300. * System pipes
  301. */
  302. static inline u16 qdf_ipa_get_smem_restr_bytes(void)
  303. {
  304. return __qdf_ipa_get_smem_restr_bytes();
  305. }
  306. static inline int qdf_ipa_setup_sys_pipe(qdf_ipa_sys_connect_params_t *sys_in,
  307. u32 *clnt_hdl)
  308. {
  309. return __qdf_ipa_setup_sys_pipe(sys_in, clnt_hdl);
  310. }
  311. static inline int qdf_ipa_teardown_sys_pipe(u32 clnt_hdl)
  312. {
  313. return __qdf_ipa_teardown_sys_pipe(clnt_hdl);
  314. }
  315. static inline int qdf_ipa_connect_wdi_pipe(qdf_ipa_wdi_in_params_t *in,
  316. qdf_ipa_wdi_out_params_t *out)
  317. {
  318. return __qdf_ipa_connect_wdi_pipe(in, out);
  319. }
  320. static inline int qdf_ipa_disconnect_wdi_pipe(u32 clnt_hdl)
  321. {
  322. return __qdf_ipa_disconnect_wdi_pipe(clnt_hdl);
  323. }
  324. static inline int qdf_ipa_enable_wdi_pipe(u32 clnt_hdl)
  325. {
  326. return __qdf_ipa_enable_wdi_pipe(clnt_hdl);
  327. }
  328. static inline int qdf_ipa_disable_wdi_pipe(u32 clnt_hdl)
  329. {
  330. return __qdf_ipa_disable_wdi_pipe(clnt_hdl);
  331. }
  332. static inline int qdf_ipa_resume_wdi_pipe(u32 clnt_hdl)
  333. {
  334. return __qdf_ipa_resume_wdi_pipe(clnt_hdl);
  335. }
  336. static inline int qdf_ipa_suspend_wdi_pipe(u32 clnt_hdl)
  337. {
  338. return __qdf_ipa_suspend_wdi_pipe(clnt_hdl);
  339. }
  340. static inline int qdf_ipa_uc_wdi_get_dbpa(
  341. qdf_ipa_wdi_db_params_t *out)
  342. {
  343. return __qdf_ipa_uc_wdi_get_dbpa(out);
  344. }
  345. static inline int qdf_ipa_uc_reg_rdyCB(
  346. qdf_ipa_wdi_uc_ready_params_t *param)
  347. {
  348. return __qdf_ipa_uc_reg_rdyCB(param);
  349. }
  350. static inline int qdf_ipa_uc_dereg_rdyCB(void)
  351. {
  352. return __qdf_ipa_uc_dereg_rdyCB();
  353. }
  354. /*
  355. * Resource manager
  356. */
  357. static inline int qdf_ipa_rm_create_resource(
  358. qdf_ipa_rm_create_params_t *create_params)
  359. {
  360. return __qdf_ipa_rm_create_resource(create_params);
  361. }
  362. static inline int qdf_ipa_rm_delete_resource(
  363. qdf_ipa_rm_resource_name_t resource_name)
  364. {
  365. return __qdf_ipa_rm_delete_resource(resource_name);
  366. }
  367. static inline int qdf_ipa_rm_register(qdf_ipa_rm_resource_name_t resource_name,
  368. qdf_ipa_rm_register_params_t *reg_params)
  369. {
  370. return __qdf_ipa_rm_register(resource_name, reg_params);
  371. }
  372. static inline int qdf_ipa_rm_set_perf_profile(
  373. qdf_ipa_rm_resource_name_t resource_name,
  374. qdf_ipa_rm_perf_profile_t *profile)
  375. {
  376. return __qdf_ipa_rm_set_perf_profile(resource_name, profile);
  377. }
  378. static inline int qdf_ipa_rm_deregister(qdf_ipa_rm_resource_name_t resource_name,
  379. qdf_ipa_rm_register_params_t *reg_params)
  380. {
  381. return __qdf_ipa_rm_deregister(resource_name, reg_params);
  382. }
  383. static inline int qdf_ipa_rm_add_dependency(
  384. qdf_ipa_rm_resource_name_t resource_name,
  385. qdf_ipa_rm_resource_name_t depends_on_name)
  386. {
  387. return __qdf_ipa_rm_add_dependency(resource_name, depends_on_name);
  388. }
  389. static inline int qdf_ipa_rm_add_dependency_sync(
  390. qdf_ipa_rm_resource_name_t resource_name,
  391. qdf_ipa_rm_resource_name_t depends_on_name)
  392. {
  393. return __qdf_ipa_rm_add_dependency_sync(resource_name, depends_on_name);
  394. }
  395. static inline int qdf_ipa_rm_delete_dependency(
  396. qdf_ipa_rm_resource_name_t resource_name,
  397. qdf_ipa_rm_resource_name_t depends_on_name)
  398. {
  399. return __qdf_ipa_rm_delete_dependency(resource_name, depends_on_name);
  400. }
  401. static inline int qdf_ipa_rm_request_resource(
  402. qdf_ipa_rm_resource_name_t resource_name)
  403. {
  404. return __qdf_ipa_rm_request_resource(resource_name);
  405. }
  406. static inline int qdf_ipa_rm_release_resource(
  407. qdf_ipa_rm_resource_name_t resource_name)
  408. {
  409. return __qdf_ipa_rm_release_resource(resource_name);
  410. }
  411. static inline int qdf_ipa_rm_notify_completion(qdf_ipa_rm_event_t event,
  412. qdf_ipa_rm_resource_name_t resource_name)
  413. {
  414. return __qdf_ipa_rm_notify_completion(event, resource_name);
  415. }
  416. static inline int qdf_ipa_rm_inactivity_timer_init(
  417. qdf_ipa_rm_resource_name_t resource_name,
  418. unsigned long msecs)
  419. {
  420. return __qdf_ipa_rm_inactivity_timer_init(resource_name, msecs);
  421. }
  422. static inline int qdf_ipa_rm_inactivity_timer_destroy(
  423. qdf_ipa_rm_resource_name_t resource_name)
  424. {
  425. return __qdf_ipa_rm_inactivity_timer_destroy(resource_name);
  426. }
  427. static inline int qdf_ipa_rm_inactivity_timer_request_resource(
  428. qdf_ipa_rm_resource_name_t resource_name)
  429. {
  430. return __qdf_ipa_rm_inactivity_timer_request_resource(resource_name);
  431. }
  432. static inline int qdf_ipa_rm_inactivity_timer_release_resource(
  433. qdf_ipa_rm_resource_name_t resource_name)
  434. {
  435. return __qdf_ipa_rm_inactivity_timer_release_resource(resource_name);
  436. }
  437. /*
  438. * Miscellaneous
  439. */
  440. static inline void qdf_ipa_bam_reg_dump(void)
  441. {
  442. return __qdf_ipa_bam_reg_dump();
  443. }
  444. static inline int qdf_ipa_get_wdi_stats(qdf_ipa_hw_stats_wdi_info_data_t *stats)
  445. {
  446. return __qdf_ipa_get_wdi_stats(stats);
  447. }
  448. static inline int qdf_ipa_get_ep_mapping(qdf_ipa_client_type_t client)
  449. {
  450. return __qdf_ipa_get_ep_mapping(client);
  451. }
  452. static inline bool qdf_ipa_is_ready(void)
  453. {
  454. return __qdf_ipa_is_ready();
  455. }
  456. static inline void qdf_ipa_proxy_clk_vote(void)
  457. {
  458. return __qdf_ipa_proxy_clk_vote();
  459. }
  460. static inline void qdf_ipa_proxy_clk_unvote(void)
  461. {
  462. return __qdf_ipa_proxy_clk_unvote();
  463. }
  464. static inline bool qdf_ipa_is_client_handle_valid(u32 clnt_hdl)
  465. {
  466. return __qdf_ipa_is_client_handle_valid(clnt_hdl);
  467. }
  468. static inline qdf_ipa_client_type_t qdf_ipa_get_client_mapping(int pipe_idx)
  469. {
  470. return __qdf_ipa_get_client_mapping(pipe_idx);
  471. }
  472. static inline qdf_ipa_rm_resource_name_t qdf_ipa_get_rm_resource_from_ep(
  473. int pipe_idx)
  474. {
  475. return __qdf_ipa_get_rm_resource_from_ep(pipe_idx);
  476. }
  477. static inline bool qdf_ipa_get_modem_cfg_emb_pipe_flt(void)
  478. {
  479. return __qdf_ipa_get_modem_cfg_emb_pipe_flt();
  480. }
  481. static inline int qdf_ipa_create_wdi_mapping(u32 num_buffers,
  482. __qdf_ipa_wdi_buffer_info_t *info)
  483. {
  484. return __qdf_ipa_create_wdi_mapping(num_buffers, info);
  485. }
  486. static inline int qdf_ipa_release_wdi_mapping(u32 num_buffers,
  487. qdf_ipa_wdi_buffer_info_t *info)
  488. {
  489. return __qdf_ipa_release_wdi_mapping(num_buffers, info);
  490. }
  491. static inline int qdf_ipa_disable_apps_wan_cons_deaggr(uint32_t agg_size,
  492. uint32_t agg_count)
  493. {
  494. return __qdf_ipa_disable_apps_wan_cons_deaggr(agg_size, agg_count);
  495. }
  496. static inline const qdf_ipa_gsi_ep_config_t *qdf_ipa_get_gsi_ep_info(qdf_ipa_client_type_t client)
  497. {
  498. return __qdf_ipa_get_gsi_ep_info(client);
  499. }
  500. static inline int qdf_ipa_stop_gsi_channel(u32 clnt_hdl)
  501. {
  502. return __qdf_ipa_stop_gsi_channel(clnt_hdl);
  503. }
  504. static inline int qdf_ipa_register_ipa_ready_cb(
  505. void (*qdf_ipa_ready_cb)(void *user_data),
  506. void *user_data)
  507. {
  508. return __qdf_ipa_register_ipa_ready_cb(qdf_ipa_ready_cb, user_data);
  509. }
  510. #endif /* _QDF_IPA_H */