/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2002-2007 Sam Leffler, Errno Consulting4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer,11* without modification.12* 2. Redistributions in binary form must reproduce at minimum a disclaimer13* similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any14* redistribution must be conditioned upon including a substantially15* similar Disclaimer requirement for further binary redistribution.16*17* NO WARRANTY18* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20* LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY21* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL22* THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,23* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF24* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS25* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER26* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)27* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF28* THE POSSIBILITY OF SUCH DAMAGES.29*/3031/*32* Defintions for the Atheros Wireless LAN controller driver.33*/34#ifndef _DEV_ATH_RATE_ONOE_H35#define _DEV_ATH_RATE_ONOE_H3637/* per-device state */38struct onoe_softc {39struct ath_ratectrl arc; /* base state */40};4142/* per-node state */43struct onoe_node {44int on_rix; /* current rate index */45int on_ticks; /* time of last update */46int on_interval; /* update interval (ticks) */4748u_int on_tx_ok; /* tx ok pkt */49u_int on_tx_err; /* tx !ok pkt */50u_int on_tx_retr; /* tx retry count */51int on_tx_upper; /* tx upper rate req cnt */52u_int8_t on_tx_rix0; /* series 0 rate index */53u_int8_t on_tx_try0; /* series 0 try count */54u_int8_t on_tx_rate0; /* series 0 h/w rate */55u_int8_t on_tx_rate1; /* series 1 h/w rate */56u_int8_t on_tx_rate2; /* series 2 h/w rate */57u_int8_t on_tx_rate3; /* series 3 h/w rate */58u_int8_t on_tx_rate0sp; /* series 0 short preamble h/w rate */59u_int8_t on_tx_rate1sp; /* series 1 short preamble h/w rate */60u_int8_t on_tx_rate2sp; /* series 2 short preamble h/w rate */61u_int8_t on_tx_rate3sp; /* series 3 short preamble h/w rate */62};63#define ATH_NODE_ONOE(an) ((struct onoe_node *)&an[1])64#endif /* _DEV_ATH_RATE_ONOE_H */656667