Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Arun Khandavalli | cc544b3 | 2017-01-30 19:52:16 +0530 | [diff] [blame] | 2 | * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 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 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
| 28 | #ifndef HDD_IPA_H__ |
| 29 | #define HDD_IPA_H__ |
| 30 | |
| 31 | /** |
| 32 | * DOC: wlan_hdd_ipa.h |
| 33 | * |
| 34 | * WLAN IPA interface module headers |
| 35 | * Originally written by Qualcomm Atheros, Inc |
| 36 | */ |
| 37 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 38 | struct hdd_context; |
| 39 | |
Mohit Khanna | fa99aea | 2016-05-12 21:43:13 -0700 | [diff] [blame] | 40 | /** |
| 41 | * enum hdd_ipa_wlan_event - HDD IPA events |
| 42 | * @HDD_IPA_CLIENT_CONNECT: Client Connects |
| 43 | * @HDD_IPA_CLIENT_DISCONNECT: Client Disconnects |
| 44 | * @HDD_IPA_AP_CONNECT: SoftAP is started |
| 45 | * @HDD_IPA_AP_DISCONNECT: SoftAP is stopped |
| 46 | * @HDD_IPA_STA_CONNECT: STA associates to AP |
| 47 | * @HDD_IPA_STA_DISCONNECT: STA dissociates from AP |
| 48 | * @HDD_IPA_CLIENT_CONNECT_EX: Peer associates/re-associates to softap |
| 49 | * @HDD_IPA_WLAN_EVENT_MAX: Max value for the enum |
| 50 | */ |
| 51 | enum hdd_ipa_wlan_event { |
| 52 | HDD_IPA_CLIENT_CONNECT, |
| 53 | HDD_IPA_CLIENT_DISCONNECT, |
| 54 | HDD_IPA_AP_CONNECT, |
| 55 | HDD_IPA_AP_DISCONNECT, |
| 56 | HDD_IPA_STA_CONNECT, |
| 57 | HDD_IPA_STA_DISCONNECT, |
| 58 | HDD_IPA_CLIENT_CONNECT_EX, |
| 59 | HDD_IPA_WLAN_EVENT_MAX |
| 60 | }; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 61 | |
| 62 | #ifdef IPA_OFFLOAD |
Houston Hoffman | 43d47fa | 2016-02-24 16:34:30 -0800 | [diff] [blame] | 63 | |
| 64 | /** |
Prakash Dhavali | 87b38e3 | 2016-11-14 16:22:53 -0800 | [diff] [blame] | 65 | * enum hdd_ipa_forward_type: Type of forward packet received from IPA |
| 66 | * @HDD_IPA_FORWARD_PKT_NONE: No forward packet |
| 67 | * @HDD_IPA_FORWARD_PKT_LOCAL_STACK: Packet forwarded to kernel network stack |
| 68 | * @HDD_IPA_FORWARD_PKT_DISCARD: Discarded packet before sending to kernel stack |
| 69 | */ |
| 70 | enum hdd_ipa_forward_type { |
| 71 | HDD_IPA_FORWARD_PKT_NONE = 0, |
| 72 | HDD_IPA_FORWARD_PKT_LOCAL_STACK = 1, |
| 73 | HDD_IPA_FORWARD_PKT_DISCARD = 2 |
| 74 | }; |
| 75 | |
| 76 | /** |
Houston Hoffman | 43d47fa | 2016-02-24 16:34:30 -0800 | [diff] [blame] | 77 | * FIXME: Temporary hack - until IPA functionality gets restored |
| 78 | * |
| 79 | */ |
Nirav Shah | cbc6d72 | 2016-03-01 16:24:53 +0530 | [diff] [blame] | 80 | typedef void (*hdd_ipa_nbuf_cb_fn)(qdf_nbuf_t); |
| 81 | void hdd_ipa_nbuf_cb(qdf_nbuf_t skb); /* Fwd declare */ |
Houston Hoffman | 43d47fa | 2016-02-24 16:34:30 -0800 | [diff] [blame] | 82 | static inline hdd_ipa_nbuf_cb_fn wlan_hdd_stub_ipa_fn(void) |
| 83 | { |
| 84 | return hdd_ipa_nbuf_cb; |
| 85 | }; |
| 86 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 87 | QDF_STATUS hdd_ipa_init(struct hdd_context *hdd_ctx); |
| 88 | QDF_STATUS hdd_ipa_cleanup(struct hdd_context *hdd_ctx); |
Govind Singh | 1dab23b | 2017-08-12 13:31:00 +0530 | [diff] [blame] | 89 | void hdd_ipa_flush(struct hdd_context *hdd_ctx); |
Nirav Shah | cbc6d72 | 2016-03-01 16:24:53 +0530 | [diff] [blame] | 90 | QDF_STATUS hdd_ipa_process_rxt(void *cds_context, qdf_nbuf_t rxBuf, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 91 | uint8_t sta_id); |
Jeff Johnson | 49d45e6 | 2017-08-29 14:30:42 -0700 | [diff] [blame] | 92 | int hdd_ipa_wlan_evt(struct hdd_adapter *adapter, uint8_t sta_id, |
Mohit Khanna | fa99aea | 2016-05-12 21:43:13 -0700 | [diff] [blame] | 93 | enum hdd_ipa_wlan_event type, uint8_t *mac_addr); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 94 | int hdd_ipa_set_perf_level(struct hdd_context *hdd_ctx, uint64_t tx_packets, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 95 | uint64_t rx_packets); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 96 | int hdd_ipa_suspend(struct hdd_context *hdd_ctx); |
| 97 | int hdd_ipa_resume(struct hdd_context *hdd_ctx); |
| 98 | void hdd_ipa_uc_stat_query(struct hdd_context *hdd_ctx, uint32_t *ipa_tx_diff, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 99 | uint32_t *ipa_rx_diff); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 100 | void hdd_ipa_uc_rt_debug_host_dump(struct hdd_context *hdd_ctx); |
Jeff Johnson | 49d45e6 | 2017-08-29 14:30:42 -0700 | [diff] [blame] | 101 | void hdd_ipa_uc_stat_request(struct hdd_adapter *adapter, uint8_t reason); |
| 102 | void hdd_ipa_uc_sharing_stats_request(struct hdd_adapter *adapter, |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 103 | uint8_t reset_stats); |
Jeff Johnson | 49d45e6 | 2017-08-29 14:30:42 -0700 | [diff] [blame] | 104 | void hdd_ipa_uc_set_quota(struct hdd_adapter *adapter, uint8_t set_quota, |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 105 | uint64_t quota_bytes); |
Jeff Johnson | 2c4a93f | 2017-09-03 08:51:14 -0700 | [diff] [blame] | 106 | bool hdd_ipa_is_enabled(struct hdd_context *hdd_ctx); |
| 107 | bool hdd_ipa_uc_is_enabled(struct hdd_context *hdd_ctx); |
Yun Park | a27049a | 2016-10-11 12:30:49 -0700 | [diff] [blame] | 108 | #ifndef QCA_LL_TX_FLOW_CONTROL_V2 |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 109 | int hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx, bool mcc_mode); |
Yun Park | a27049a | 2016-10-11 12:30:49 -0700 | [diff] [blame] | 110 | #else |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 111 | static inline int hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx, |
Yun Park | a27049a | 2016-10-11 12:30:49 -0700 | [diff] [blame] | 112 | bool mcc_mode) |
| 113 | { |
| 114 | return 0; |
| 115 | } |
| 116 | #endif |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 117 | int hdd_ipa_uc_ssr_reinit(struct hdd_context *hdd_ctx); |
Leo Chang | e3e4944 | 2015-10-26 20:07:13 -0700 | [diff] [blame] | 118 | int hdd_ipa_uc_ssr_deinit(void); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 119 | void hdd_ipa_uc_force_pipe_shutdown(struct hdd_context *hdd_ctx); |
| 120 | struct sk_buff *hdd_ipa_tx_packet_ipa(struct hdd_context *hdd_ctx, |
Leo Chang | 3bc8fed | 2015-11-13 10:59:47 -0800 | [diff] [blame] | 121 | struct sk_buff *skb, uint8_t session_id); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 122 | bool hdd_ipa_is_present(struct hdd_context *hdd_ctx); |
| 123 | void hdd_ipa_dump_info(struct hdd_context *hdd_ctx); |
| 124 | QDF_STATUS hdd_ipa_uc_ol_init(struct hdd_context *hdd_ctx); |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 125 | void hdd_ipa_set_tx_flow_info(void); |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 126 | int hdd_ipa_uc_ol_deinit(struct hdd_context *hdd_ctx); |
Yun Park | 4625568 | 2017-10-09 15:56:34 -0700 | [diff] [blame^] | 127 | |
| 128 | /** |
| 129 | * hdd_ipa_uc_stat() - Print IPA uC stats |
| 130 | * @adapter: network adapter |
| 131 | * |
| 132 | * Return: None |
| 133 | */ |
| 134 | void hdd_ipa_uc_stat(struct hdd_adapter *adapter); |
| 135 | |
| 136 | /** |
| 137 | * hdd_ipa_uc_info() - Print IPA uC resource and session information |
| 138 | * @adapter: network adapter |
| 139 | * |
| 140 | * Return: None |
| 141 | */ |
| 142 | void hdd_ipa_uc_info(struct hdd_context *hdd_ctx); |
| 143 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 144 | #else |
Yun Park | 4625568 | 2017-10-09 15:56:34 -0700 | [diff] [blame^] | 145 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 146 | static inline QDF_STATUS hdd_ipa_init(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 147 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 148 | return QDF_STATUS_SUCCESS; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 149 | } |
| 150 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 151 | static inline QDF_STATUS hdd_ipa_cleanup(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 152 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 153 | return QDF_STATUS_SUCCESS; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 154 | } |
| 155 | |
Govind Singh | 1dab23b | 2017-08-12 13:31:00 +0530 | [diff] [blame] | 156 | static inline void hdd_ipa_flush(struct hdd_context *hdd_ctx) |
| 157 | { |
| 158 | } |
| 159 | |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 160 | static inline QDF_STATUS hdd_ipa_process_rxt(void *cds_context, |
Nirav Shah | cbc6d72 | 2016-03-01 16:24:53 +0530 | [diff] [blame] | 161 | qdf_nbuf_t rxBuf, uint8_t sta_id) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 162 | { |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 163 | return QDF_STATUS_SUCCESS; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 164 | } |
| 165 | |
Jeff Johnson | 49d45e6 | 2017-08-29 14:30:42 -0700 | [diff] [blame] | 166 | static inline int hdd_ipa_wlan_evt(struct hdd_adapter *adapter, uint8_t sta_id, |
Mohit Khanna | fa99aea | 2016-05-12 21:43:13 -0700 | [diff] [blame] | 167 | enum hdd_ipa_wlan_event type, uint8_t *mac_addr) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 168 | { |
| 169 | return 0; |
| 170 | } |
| 171 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 172 | static inline int hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 173 | bool mcc_mode) |
| 174 | { |
| 175 | return 0; |
| 176 | } |
| 177 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 178 | static inline int hdd_ipa_set_perf_level(struct hdd_context *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 179 | uint64_t tx_packets, |
| 180 | uint64_t rx_packets) |
| 181 | { |
| 182 | return 0; |
| 183 | } |
| 184 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 185 | static inline int hdd_ipa_suspend(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 186 | { |
| 187 | return 0; |
| 188 | } |
| 189 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 190 | static inline int hdd_ipa_resume(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 191 | { |
| 192 | return 0; |
| 193 | } |
| 194 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 195 | static inline void hdd_ipa_uc_stat_query(struct hdd_context *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 196 | uint32_t *ipa_tx_diff, |
| 197 | uint32_t *ipa_rx_diff) |
| 198 | { |
| 199 | *ipa_tx_diff = 0; |
| 200 | *ipa_rx_diff = 0; |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 201 | } |
| 202 | |
Jeff Johnson | 49d45e6 | 2017-08-29 14:30:42 -0700 | [diff] [blame] | 203 | static inline void hdd_ipa_uc_stat_request(struct hdd_adapter *adapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 204 | uint8_t reason) |
| 205 | { |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 206 | } |
| 207 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 208 | static inline void hdd_ipa_uc_rt_debug_host_dump(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 209 | { |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 210 | } |
| 211 | |
Jeff Johnson | 2c4a93f | 2017-09-03 08:51:14 -0700 | [diff] [blame] | 212 | static inline bool hdd_ipa_is_enabled(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 213 | { |
| 214 | return false; |
| 215 | } |
| 216 | |
Jeff Johnson | 2c4a93f | 2017-09-03 08:51:14 -0700 | [diff] [blame] | 217 | static inline bool hdd_ipa_uc_is_enabled(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 218 | { |
| 219 | return false; |
| 220 | } |
Yun Park | b187d54 | 2016-11-14 18:10:04 -0800 | [diff] [blame] | 221 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 222 | static inline void hdd_ipa_dump_info(struct hdd_context *hdd_ctx) |
Yun Park | b187d54 | 2016-11-14 18:10:04 -0800 | [diff] [blame] | 223 | { |
Yun Park | b187d54 | 2016-11-14 18:10:04 -0800 | [diff] [blame] | 224 | } |
| 225 | |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 226 | static inline int hdd_ipa_uc_ssr_reinit(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 227 | { |
| 228 | return false; |
| 229 | } |
| 230 | |
| 231 | static inline int hdd_ipa_uc_ssr_deinit(void) |
| 232 | { |
| 233 | return false; |
| 234 | } |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 235 | static inline void hdd_ipa_uc_force_pipe_shutdown(struct hdd_context *hdd_ctx) |
Leo Chang | e3e4944 | 2015-10-26 20:07:13 -0700 | [diff] [blame] | 236 | { |
Leo Chang | e3e4944 | 2015-10-26 20:07:13 -0700 | [diff] [blame] | 237 | } |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 238 | |
Leo Chang | 3bc8fed | 2015-11-13 10:59:47 -0800 | [diff] [blame] | 239 | /** |
| 240 | * hdd_ipa_tx_packet_ipa() - send packet to IPA |
| 241 | * @hdd_ctx: Global HDD context |
| 242 | * @skb: skb sent to IPA |
| 243 | * @session_id: send packet instance session id |
| 244 | * |
| 245 | * Send TX packet which generated by system to IPA. |
| 246 | * This routine only will be used for function verification |
| 247 | * |
| 248 | * Return: NULL packet sent to IPA properly |
| 249 | * skb packet not sent to IPA. legacy data path should handle |
| 250 | */ |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 251 | static inline struct sk_buff *hdd_ipa_tx_packet_ipa(struct hdd_context *hdd_ctx, |
Leo Chang | 3bc8fed | 2015-11-13 10:59:47 -0800 | [diff] [blame] | 252 | struct sk_buff *skb, uint8_t session_id) |
| 253 | { |
| 254 | return skb; |
| 255 | } |
Leo Chang | 11545d6 | 2016-10-17 14:53:50 -0700 | [diff] [blame] | 256 | |
| 257 | /** |
| 258 | * hdd_ipa_is_present() - get IPA hw status |
| 259 | * @hdd_ctx: pointer to hdd context |
| 260 | * |
| 261 | * ipa_uc_reg_rdyCB is not directly designed to check |
| 262 | * ipa hw status. This is an undocumented function which |
| 263 | * has confirmed with IPA team. |
| 264 | * |
| 265 | * Return: true - ipa hw present |
| 266 | * false - ipa hw not present |
| 267 | */ |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 268 | static inline bool hdd_ipa_is_present(struct hdd_context *hdd_ctx) |
Leo Chang | 11545d6 | 2016-10-17 14:53:50 -0700 | [diff] [blame] | 269 | { |
| 270 | return false; |
| 271 | } |
Manikandan Mohan | bb8a7ee | 2017-02-09 11:26:53 -0800 | [diff] [blame] | 272 | |
| 273 | /** |
| 274 | * hdd_ipa_uc_ol_init() - Initialize IPA uC offload |
| 275 | * @hdd_ctx: Global HDD context |
| 276 | * |
| 277 | * Return: QDF_STATUS |
| 278 | */ |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 279 | static inline QDF_STATUS hdd_ipa_uc_ol_init(struct hdd_context *hdd_ctx) |
Manikandan Mohan | bb8a7ee | 2017-02-09 11:26:53 -0800 | [diff] [blame] | 280 | { |
| 281 | return QDF_STATUS_SUCCESS; |
| 282 | } |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 283 | |
| 284 | static inline void hdd_ipa_set_tx_flow_info(void) |
| 285 | { |
Tushnim Bhattacharyya | 9e81b4c | 2017-02-15 17:11:14 -0800 | [diff] [blame] | 286 | } |
| 287 | |
Sravan Kumar Kairam | 7112171 | 2017-04-15 00:34:42 +0530 | [diff] [blame] | 288 | /** |
| 289 | * hdd_ipa_uc_ol_deinit() - Disconnect IPA TX and RX pipes |
| 290 | * @hdd_ctx: Global HDD context |
| 291 | * |
| 292 | * Return: 0 on success, negativer errno on error |
| 293 | */ |
Jeff Johnson | dd595cb | 2017-08-28 11:58:09 -0700 | [diff] [blame] | 294 | static inline int hdd_ipa_uc_ol_deinit(struct hdd_context *hdd_ctx) |
Sravan Kumar Kairam | 7112171 | 2017-04-15 00:34:42 +0530 | [diff] [blame] | 295 | { |
| 296 | return 0; |
| 297 | } |
Yun Park | 4625568 | 2017-10-09 15:56:34 -0700 | [diff] [blame^] | 298 | |
| 299 | /** |
| 300 | * hdd_ipa_uc_stat() - Print IPA uC stats |
| 301 | * @adapter: network adapter |
| 302 | * |
| 303 | * Return: None |
| 304 | */ |
| 305 | static inline void hdd_ipa_uc_stat(struct hdd_adapter *adapter) |
| 306 | { |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * hdd_ipa_uc_info() - Print IPA uC resource and session information |
| 311 | * @adapter: network adapter |
| 312 | * |
| 313 | * Return: None |
| 314 | */ |
| 315 | static inline void hdd_ipa_uc_info(struct hdd_context *hdd_ctx) |
| 316 | { |
| 317 | } |
| 318 | |
Leo Chang | 3bc8fed | 2015-11-13 10:59:47 -0800 | [diff] [blame] | 319 | #endif /* IPA_OFFLOAD */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 320 | #endif /* #ifndef HDD_IPA_H__ */ |