if_athrate.h (144347) | if_athrate.h (144546) |
---|---|
1/*- 2 * Copyright (c) 2004-2005 Sam Leffler, Errno Consulting 3 * Copyright (c) 2004 Video54 Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 20 unchanged lines hidden (view full) --- 29 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 30 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 33 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 35 * THE POSSIBILITY OF SUCH DAMAGES. 36 * | 1/*- 2 * Copyright (c) 2004-2005 Sam Leffler, Errno Consulting 3 * Copyright (c) 2004 Video54 Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 20 unchanged lines hidden (view full) --- 29 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 30 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 33 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 35 * THE POSSIBILITY OF SUCH DAMAGES. 36 * |
37 * $FreeBSD: head/sys/dev/ath/if_athrate.h 144347 2005-03-30 20:17:18Z sam $ | 37 * $FreeBSD: head/sys/dev/ath/if_athrate.h 144546 2005-04-02 18:54:30Z sam $ |
38 */ 39#ifndef _ATH_RATECTRL_H_ 40#define _ATH_RATECTRL_H_ 41 42/* 43 * Interface definitions for transmit rate control modules for the 44 * Atheros driver. 45 * --- 70 unchanged lines hidden (view full) --- 116 */ 117/* 118 * Return the transmit info for a data packet. If multi-rate state 119 * is to be setup then try0 should contain a value other than ATH_TXMATRY 120 * and ath_rate_setupxtxdesc will be called after deciding if the frame 121 * can be transmitted with multi-rate retry. 122 */ 123void ath_rate_findrate(struct ath_softc *, struct ath_node *, | 38 */ 39#ifndef _ATH_RATECTRL_H_ 40#define _ATH_RATECTRL_H_ 41 42/* 43 * Interface definitions for transmit rate control modules for the 44 * Atheros driver. 45 * --- 70 unchanged lines hidden (view full) --- 116 */ 117/* 118 * Return the transmit info for a data packet. If multi-rate state 119 * is to be setup then try0 should contain a value other than ATH_TXMATRY 120 * and ath_rate_setupxtxdesc will be called after deciding if the frame 121 * can be transmitted with multi-rate retry. 122 */ 123void ath_rate_findrate(struct ath_softc *, struct ath_node *, |
124 HAL_BOOL shortPreamble, size_t frameLen, | 124 int shortPreamble, size_t frameLen, |
125 u_int8_t *rix, int *try0, u_int8_t *txrate); 126/* 127 * Setup any extended (multi-rate) descriptor state for a data packet. 128 * The rate index returned by ath_rate_findrate is passed back in. 129 */ 130void ath_rate_setupxtxdesc(struct ath_softc *, struct ath_node *, | 125 u_int8_t *rix, int *try0, u_int8_t *txrate); 126/* 127 * Setup any extended (multi-rate) descriptor state for a data packet. 128 * The rate index returned by ath_rate_findrate is passed back in. 129 */ 130void ath_rate_setupxtxdesc(struct ath_softc *, struct ath_node *, |
131 struct ath_desc *, HAL_BOOL shortPreamble, u_int8_t rix); | 131 struct ath_desc *, int shortPreamble, u_int8_t rix); |
132/* 133 * Update rate control state for a packet associated with the 134 * supplied transmit descriptor. The routine is invoked both 135 * for packets that were successfully sent and for those that 136 * failed (consult the descriptor for details). 137 */ 138void ath_rate_tx_complete(struct ath_softc *, struct ath_node *, 139 const struct ath_desc *last, const struct ath_desc *first); 140#endif /* _ATH_RATECTRL_H_ */ | 132/* 133 * Update rate control state for a packet associated with the 134 * supplied transmit descriptor. The routine is invoked both 135 * for packets that were successfully sent and for those that 136 * failed (consult the descriptor for details). 137 */ 138void ath_rate_tx_complete(struct ath_softc *, struct ath_node *, 139 const struct ath_desc *last, const struct ath_desc *first); 140#endif /* _ATH_RATECTRL_H_ */ |