if_ath_tx.h (238931) | if_ath_tx.h (239204) |
---|---|
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 238931 2012-07-31 03:09:48Z adrian $ | 29 * $FreeBSD: head/sys/dev/ath/if_ath_tx.h 239204 2012-08-12 00:37:29Z 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) --- 91 unchanged lines hidden (view full) --- 129#define ath_txdma_setup(_sc) \ 130 (_sc)->sc_tx.xmit_setup(_sc) 131#define ath_txdma_teardown(_sc) \ 132 (_sc)->sc_tx.xmit_teardown(_sc) 133#define ath_txq_restart_dma(_sc, _txq) \ 134 (_sc)->sc_tx.xmit_dma_restart((_sc), (_txq)) 135#define ath_tx_handoff(_sc, _txq, _bf) \ 136 (_sc)->sc_tx.xmit_handoff((_sc), (_txq), (_bf)) | 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) --- 91 unchanged lines hidden (view full) --- 129#define ath_txdma_setup(_sc) \ 130 (_sc)->sc_tx.xmit_setup(_sc) 131#define ath_txdma_teardown(_sc) \ 132 (_sc)->sc_tx.xmit_teardown(_sc) 133#define ath_txq_restart_dma(_sc, _txq) \ 134 (_sc)->sc_tx.xmit_dma_restart((_sc), (_txq)) 135#define ath_tx_handoff(_sc, _txq, _bf) \ 136 (_sc)->sc_tx.xmit_handoff((_sc), (_txq), (_bf)) |
137 |
|
137#define ath_tx_draintxq(_sc, _txq) \ 138 (_sc)->sc_tx.xmit_drainq((_sc), (_txq)) | 138#define ath_tx_draintxq(_sc, _txq) \ 139 (_sc)->sc_tx.xmit_drainq((_sc), (_txq)) |
139#define ath_tx_processq(_sc, _txq, _dosched) \ 140 (_sc)->sc_tx.xmit_processq((_sc), (_txq), (_dosched)) | 140#define ath_draintxq(_sc, _rtype) \ 141 (_sc)->sc_tx.xmit_drain((_sc), (_rtype)) |
141 142extern void ath_xmit_setup_legacy(struct ath_softc *sc); 143 144#endif | 142 143extern void ath_xmit_setup_legacy(struct ath_softc *sc); 144 145#endif |