Deleted Added
full compact
if_ath_tx.h (250608) if_ath_tx.h (250665)
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/if_ath_tx.h 250608 2013-05-13 19:02:22Z adrian $
29 * $FreeBSD: head/sys/dev/ath/if_ath_tx.h 250665 2013-05-15 18:33:05Z adrian $
30 */
31#ifndef __IF_ATH_TX_H__
32#define __IF_ATH_TX_H__
33
34/*
35 * some general macros
36 */
37#define INCR(_l, _sz) (_l) ++; (_l) &= ((_sz) - 1)

--- 55 unchanged lines hidden (view full) ---

93 struct mbuf *m0, struct ieee80211_node *ni);
94extern int ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
95 struct ath_buf *bf, struct mbuf *m0);
96extern int ath_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
97 const struct ieee80211_bpf_params *params);
98
99/* software queue stuff */
100extern void ath_tx_swq(struct ath_softc *sc, struct ieee80211_node *ni,
30 */
31#ifndef __IF_ATH_TX_H__
32#define __IF_ATH_TX_H__
33
34/*
35 * some general macros
36 */
37#define INCR(_l, _sz) (_l) ++; (_l) &= ((_sz) - 1)

--- 55 unchanged lines hidden (view full) ---

93 struct mbuf *m0, struct ieee80211_node *ni);
94extern int ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
95 struct ath_buf *bf, struct mbuf *m0);
96extern int ath_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
97 const struct ieee80211_bpf_params *params);
98
99/* software queue stuff */
100extern void ath_tx_swq(struct ath_softc *sc, struct ieee80211_node *ni,
101 struct ath_txq *txq, struct ath_buf *bf);
101 struct ath_txq *txq, int queue_to_head, struct ath_buf *bf);
102extern void ath_tx_tid_init(struct ath_softc *sc, struct ath_node *an);
103extern void ath_tx_tid_hw_queue_aggr(struct ath_softc *sc, struct ath_node *an,
104 struct ath_tid *tid);
105extern void ath_tx_tid_hw_queue_norm(struct ath_softc *sc, struct ath_node *an,
106 struct ath_tid *tid);
107extern void ath_txq_sched(struct ath_softc *sc, struct ath_txq *txq);
108extern void ath_tx_normal_comp(struct ath_softc *sc, struct ath_buf *bf,
109 int fail);
110extern void ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf,
111 int fail);
112extern void ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an,
113 struct ath_tid *tid, struct ath_buf *bf);
114extern struct ieee80211_tx_ampdu * ath_tx_get_tx_tid(struct ath_node *an,
115 int tid);
102extern void ath_tx_tid_init(struct ath_softc *sc, struct ath_node *an);
103extern void ath_tx_tid_hw_queue_aggr(struct ath_softc *sc, struct ath_node *an,
104 struct ath_tid *tid);
105extern void ath_tx_tid_hw_queue_norm(struct ath_softc *sc, struct ath_node *an,
106 struct ath_tid *tid);
107extern void ath_txq_sched(struct ath_softc *sc, struct ath_txq *txq);
108extern void ath_tx_normal_comp(struct ath_softc *sc, struct ath_buf *bf,
109 int fail);
110extern void ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf,
111 int fail);
112extern void ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an,
113 struct ath_tid *tid, struct ath_buf *bf);
114extern struct ieee80211_tx_ampdu * ath_tx_get_tx_tid(struct ath_node *an,
115 int tid);
116extern void ath_tx_tid_sched(struct ath_softc *sc, struct ath_tid *tid);
116
117/* TX addba handling */
118extern int ath_addba_request(struct ieee80211_node *ni,
119 struct ieee80211_tx_ampdu *tap, int dialogtoken,
120 int baparamset, int batimeout);
121extern int ath_addba_response(struct ieee80211_node *ni,
122 struct ieee80211_tx_ampdu *tap, int dialogtoken,
123 int code, int batimeout);

--- 8 unchanged lines hidden (view full) ---

132 * AP mode power save handling (of stations)
133 */
134extern void ath_tx_node_sleep(struct ath_softc *sc, struct ath_node *an);
135extern void ath_tx_node_wakeup(struct ath_softc *sc, struct ath_node *an);
136extern int ath_tx_node_is_asleep(struct ath_softc *sc, struct ath_node *an);
137extern void ath_tx_node_reassoc(struct ath_softc *sc, struct ath_node *an);
138
139/*
117
118/* TX addba handling */
119extern int ath_addba_request(struct ieee80211_node *ni,
120 struct ieee80211_tx_ampdu *tap, int dialogtoken,
121 int baparamset, int batimeout);
122extern int ath_addba_response(struct ieee80211_node *ni,
123 struct ieee80211_tx_ampdu *tap, int dialogtoken,
124 int code, int batimeout);

--- 8 unchanged lines hidden (view full) ---

133 * AP mode power save handling (of stations)
134 */
135extern void ath_tx_node_sleep(struct ath_softc *sc, struct ath_node *an);
136extern void ath_tx_node_wakeup(struct ath_softc *sc, struct ath_node *an);
137extern int ath_tx_node_is_asleep(struct ath_softc *sc, struct ath_node *an);
138extern void ath_tx_node_reassoc(struct ath_softc *sc, struct ath_node *an);
139
140/*
141 * Hardware queue stuff
142 */
143extern void ath_tx_push_pending(struct ath_softc *sc, struct ath_txq *txq);
144
145/*
140 * Misc debugging stuff
141 */
142#ifdef ATH_DEBUG_ALQ
143extern void ath_tx_alq_post(struct ath_softc *sc, struct ath_buf *bf_first);
144#endif /* ATH_DEBUG_ALQ */
145
146/*
147 * Setup path

--- 15 unchanged lines hidden ---
146 * Misc debugging stuff
147 */
148#ifdef ATH_DEBUG_ALQ
149extern void ath_tx_alq_post(struct ath_softc *sc, struct ath_buf *bf_first);
150#endif /* ATH_DEBUG_ALQ */
151
152/*
153 * Setup path

--- 15 unchanged lines hidden ---