if_ath_misc.h (238931) | if_ath_misc.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_misc.h 238931 2012-07-31 03:09:48Z adrian $ | 29 * $FreeBSD: head/sys/dev/ath/if_ath_misc.h 239204 2012-08-12 00:37:29Z adrian $ |
30 */ 31#ifndef __IF_ATH_MISC_H__ 32#define __IF_ATH_MISC_H__ 33 34/* 35 * This is where definitions for "public things" in if_ath.c 36 * will go for the time being. 37 * --- 53 unchanged lines hidden (view full) --- 91 int ndesc); 92extern int ath_descdma_setup_rx_edma(struct ath_softc *sc, 93 struct ath_descdma *dd, ath_bufhead *head, const char *name, 94 int nbuf, int desclen); 95extern void ath_descdma_cleanup(struct ath_softc *sc, 96 struct ath_descdma *dd, ath_bufhead *head); 97 98extern void ath_legacy_attach_comp_func(struct ath_softc *sc); | 30 */ 31#ifndef __IF_ATH_MISC_H__ 32#define __IF_ATH_MISC_H__ 33 34/* 35 * This is where definitions for "public things" in if_ath.c 36 * will go for the time being. 37 * --- 53 unchanged lines hidden (view full) --- 91 int ndesc); 92extern int ath_descdma_setup_rx_edma(struct ath_softc *sc, 93 struct ath_descdma *dd, ath_bufhead *head, const char *name, 94 int nbuf, int desclen); 95extern void ath_descdma_cleanup(struct ath_softc *sc, 96 struct ath_descdma *dd, ath_bufhead *head); 97 98extern void ath_legacy_attach_comp_func(struct ath_softc *sc); |
99 |
|
99extern void ath_legacy_tx_draintxq(struct ath_softc *sc, struct ath_txq *txq); | 100extern void ath_legacy_tx_draintxq(struct ath_softc *sc, struct ath_txq *txq); |
100extern int ath_legacy_tx_processq(struct ath_softc *sc, struct ath_txq *txq, 101 int dosched); | 101extern void ath_legacy_tx_drain(struct ath_softc *sc, 102 ATH_RESET_TYPE reset_type); |
102 103/* 104 * This is only here so that the RX proc function can call it. 105 * It's very likely that the "start TX after RX" call should be 106 * done via something in if_ath.c, moving "rx tasklet" into 107 * if_ath.c and do the ath_start() call there. Once that's done, 108 * we can kill this. 109 */ 110extern void ath_start(struct ifnet *ifp); 111 112static inline void 113ath_tx_kick(struct ath_softc *sc) 114{ 115 116 ath_start(sc->sc_ifp); 117} 118 119#endif | 103 104/* 105 * This is only here so that the RX proc function can call it. 106 * It's very likely that the "start TX after RX" call should be 107 * done via something in if_ath.c, moving "rx tasklet" into 108 * if_ath.c and do the ath_start() call there. Once that's done, 109 * we can kill this. 110 */ 111extern void ath_start(struct ifnet *ifp); 112 113static inline void 114ath_tx_kick(struct ath_softc *sc) 115{ 116 117 ath_start(sc->sc_ifp); 118} 119 120#endif |