1572ff6f6SMatthew Dillon /*- 2572ff6f6SMatthew Dillon * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting 3572ff6f6SMatthew Dillon * All rights reserved. 4572ff6f6SMatthew Dillon * 5572ff6f6SMatthew Dillon * Redistribution and use in source and binary forms, with or without 6572ff6f6SMatthew Dillon * modification, are permitted provided that the following conditions 7572ff6f6SMatthew Dillon * are met: 8572ff6f6SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 9572ff6f6SMatthew Dillon * notice, this list of conditions and the following disclaimer, 10572ff6f6SMatthew Dillon * without modification. 11572ff6f6SMatthew Dillon * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12572ff6f6SMatthew Dillon * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13572ff6f6SMatthew Dillon * redistribution must be conditioned upon including a substantially 14572ff6f6SMatthew Dillon * similar Disclaimer requirement for further binary redistribution. 15572ff6f6SMatthew Dillon * 16572ff6f6SMatthew Dillon * NO WARRANTY 17572ff6f6SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18572ff6f6SMatthew Dillon * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19*df052c2aSSascha Wildner * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY 20572ff6f6SMatthew Dillon * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 21572ff6f6SMatthew Dillon * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22572ff6f6SMatthew Dillon * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23572ff6f6SMatthew Dillon * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24572ff6f6SMatthew Dillon * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25572ff6f6SMatthew Dillon * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26572ff6f6SMatthew Dillon * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27572ff6f6SMatthew Dillon * THE POSSIBILITY OF SUCH DAMAGES. 28572ff6f6SMatthew Dillon * 29572ff6f6SMatthew Dillon * $FreeBSD$ 30572ff6f6SMatthew Dillon */ 31572ff6f6SMatthew Dillon 32572ff6f6SMatthew Dillon /* 33572ff6f6SMatthew Dillon * Defintions for the Atheros Wireless LAN controller driver. 34572ff6f6SMatthew Dillon */ 35572ff6f6SMatthew Dillon #ifndef _DEV_ATH_RATE_ONOE_H 36572ff6f6SMatthew Dillon #define _DEV_ATH_RATE_ONOE_H 37572ff6f6SMatthew Dillon 38572ff6f6SMatthew Dillon /* per-device state */ 39572ff6f6SMatthew Dillon struct onoe_softc { 40572ff6f6SMatthew Dillon struct ath_ratectrl arc; /* base state */ 41572ff6f6SMatthew Dillon }; 42572ff6f6SMatthew Dillon 43572ff6f6SMatthew Dillon /* per-node state */ 44572ff6f6SMatthew Dillon struct onoe_node { 45572ff6f6SMatthew Dillon int on_rix; /* current rate index */ 46572ff6f6SMatthew Dillon int on_ticks; /* time of last update */ 47572ff6f6SMatthew Dillon int on_interval; /* update interval (ticks) */ 48572ff6f6SMatthew Dillon 49572ff6f6SMatthew Dillon u_int on_tx_ok; /* tx ok pkt */ 50572ff6f6SMatthew Dillon u_int on_tx_err; /* tx !ok pkt */ 51572ff6f6SMatthew Dillon u_int on_tx_retr; /* tx retry count */ 52572ff6f6SMatthew Dillon int on_tx_upper; /* tx upper rate req cnt */ 53572ff6f6SMatthew Dillon u_int8_t on_tx_rix0; /* series 0 rate index */ 54572ff6f6SMatthew Dillon u_int8_t on_tx_try0; /* series 0 try count */ 55572ff6f6SMatthew Dillon u_int8_t on_tx_rate0; /* series 0 h/w rate */ 56572ff6f6SMatthew Dillon u_int8_t on_tx_rate1; /* series 1 h/w rate */ 57572ff6f6SMatthew Dillon u_int8_t on_tx_rate2; /* series 2 h/w rate */ 58572ff6f6SMatthew Dillon u_int8_t on_tx_rate3; /* series 3 h/w rate */ 59572ff6f6SMatthew Dillon u_int8_t on_tx_rate0sp; /* series 0 short preamble h/w rate */ 60572ff6f6SMatthew Dillon u_int8_t on_tx_rate1sp; /* series 1 short preamble h/w rate */ 61572ff6f6SMatthew Dillon u_int8_t on_tx_rate2sp; /* series 2 short preamble h/w rate */ 62572ff6f6SMatthew Dillon u_int8_t on_tx_rate3sp; /* series 3 short preamble h/w rate */ 63572ff6f6SMatthew Dillon }; 64572ff6f6SMatthew Dillon #define ATH_NODE_ONOE(an) ((struct onoe_node *)&an[1]) 65572ff6f6SMatthew Dillon #endif /* _DEV_ATH_RATE_ONOE_H */ 66