net: ptp: do not reimplement PTP/BPF classifier
[linux/fpc-iii.git] / drivers / net / wireless / ath / ath6kl / htc-ops.h
blob2d4eed55cfd1865c31abba93302082ce987be440
1 /*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
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.
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.
17 #ifndef HTC_OPS_H
18 #define HTC_OPS_H
20 #include "htc.h"
21 #include "debug.h"
23 static inline void *ath6kl_htc_create(struct ath6kl *ar)
25 return ar->htc_ops->create(ar);
28 static inline int ath6kl_htc_wait_target(struct htc_target *target)
30 return target->dev->ar->htc_ops->wait_target(target);
33 static inline int ath6kl_htc_start(struct htc_target *target)
35 return target->dev->ar->htc_ops->start(target);
38 static inline int ath6kl_htc_conn_service(struct htc_target *target,
39 struct htc_service_connect_req *req,
40 struct htc_service_connect_resp *resp)
42 return target->dev->ar->htc_ops->conn_service(target, req, resp);
45 static inline int ath6kl_htc_tx(struct htc_target *target,
46 struct htc_packet *packet)
48 return target->dev->ar->htc_ops->tx(target, packet);
51 static inline void ath6kl_htc_stop(struct htc_target *target)
53 return target->dev->ar->htc_ops->stop(target);
56 static inline void ath6kl_htc_cleanup(struct htc_target *target)
58 return target->dev->ar->htc_ops->cleanup(target);
61 static inline void ath6kl_htc_flush_txep(struct htc_target *target,
62 enum htc_endpoint_id endpoint,
63 u16 tag)
65 return target->dev->ar->htc_ops->flush_txep(target, endpoint, tag);
68 static inline void ath6kl_htc_flush_rx_buf(struct htc_target *target)
70 return target->dev->ar->htc_ops->flush_rx_buf(target);
73 static inline void ath6kl_htc_activity_changed(struct htc_target *target,
74 enum htc_endpoint_id endpoint,
75 bool active)
77 return target->dev->ar->htc_ops->activity_changed(target, endpoint,
78 active);
81 static inline int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
82 enum htc_endpoint_id endpoint)
84 return target->dev->ar->htc_ops->get_rxbuf_num(target, endpoint);
87 static inline int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
88 struct list_head *pktq)
90 return target->dev->ar->htc_ops->add_rxbuf_multiple(target, pktq);
93 static inline int ath6kl_htc_credit_setup(struct htc_target *target,
94 struct ath6kl_htc_credit_info *info)
96 return target->dev->ar->htc_ops->credit_setup(target, info);
99 static inline void ath6kl_htc_tx_complete(struct ath6kl *ar,
100 struct sk_buff *skb)
102 ar->htc_ops->tx_complete(ar, skb);
106 static inline void ath6kl_htc_rx_complete(struct ath6kl *ar,
107 struct sk_buff *skb, u8 pipe)
109 ar->htc_ops->rx_complete(ar, skb, pipe);
113 #endif