0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef HTC_OPS_H
0018 #define HTC_OPS_H
0019
0020 #include "htc.h"
0021 #include "debug.h"
0022
0023 static inline void *ath6kl_htc_create(struct ath6kl *ar)
0024 {
0025 return ar->htc_ops->create(ar);
0026 }
0027
0028 static inline int ath6kl_htc_wait_target(struct htc_target *target)
0029 {
0030 return target->dev->ar->htc_ops->wait_target(target);
0031 }
0032
0033 static inline int ath6kl_htc_start(struct htc_target *target)
0034 {
0035 return target->dev->ar->htc_ops->start(target);
0036 }
0037
0038 static inline int ath6kl_htc_conn_service(struct htc_target *target,
0039 struct htc_service_connect_req *req,
0040 struct htc_service_connect_resp *resp)
0041 {
0042 return target->dev->ar->htc_ops->conn_service(target, req, resp);
0043 }
0044
0045 static inline int ath6kl_htc_tx(struct htc_target *target,
0046 struct htc_packet *packet)
0047 {
0048 return target->dev->ar->htc_ops->tx(target, packet);
0049 }
0050
0051 static inline void ath6kl_htc_stop(struct htc_target *target)
0052 {
0053 return target->dev->ar->htc_ops->stop(target);
0054 }
0055
0056 static inline void ath6kl_htc_cleanup(struct htc_target *target)
0057 {
0058 return target->dev->ar->htc_ops->cleanup(target);
0059 }
0060
0061 static inline void ath6kl_htc_flush_txep(struct htc_target *target,
0062 enum htc_endpoint_id endpoint,
0063 u16 tag)
0064 {
0065 return target->dev->ar->htc_ops->flush_txep(target, endpoint, tag);
0066 }
0067
0068 static inline void ath6kl_htc_flush_rx_buf(struct htc_target *target)
0069 {
0070 return target->dev->ar->htc_ops->flush_rx_buf(target);
0071 }
0072
0073 static inline void ath6kl_htc_activity_changed(struct htc_target *target,
0074 enum htc_endpoint_id endpoint,
0075 bool active)
0076 {
0077 return target->dev->ar->htc_ops->activity_changed(target, endpoint,
0078 active);
0079 }
0080
0081 static inline int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
0082 enum htc_endpoint_id endpoint)
0083 {
0084 return target->dev->ar->htc_ops->get_rxbuf_num(target, endpoint);
0085 }
0086
0087 static inline int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
0088 struct list_head *pktq)
0089 {
0090 return target->dev->ar->htc_ops->add_rxbuf_multiple(target, pktq);
0091 }
0092
0093 static inline int ath6kl_htc_credit_setup(struct htc_target *target,
0094 struct ath6kl_htc_credit_info *info)
0095 {
0096 return target->dev->ar->htc_ops->credit_setup(target, info);
0097 }
0098
0099 static inline void ath6kl_htc_tx_complete(struct ath6kl *ar,
0100 struct sk_buff *skb)
0101 {
0102 ar->htc_ops->tx_complete(ar, skb);
0103 }
0104
0105
0106 static inline void ath6kl_htc_rx_complete(struct ath6kl *ar,
0107 struct sk_buff *skb, u8 pipe)
0108 {
0109 ar->htc_ops->rx_complete(ar, skb, pipe);
0110 }
0111
0112
0113 #endif