onoe.h revision 138569
1138569Ssam/*- 2138569Ssam * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting 3138569Ssam * All rights reserved. 4138569Ssam * 5138569Ssam * Redistribution and use in source and binary forms, with or without 6138569Ssam * modification, are permitted provided that the following conditions 7138569Ssam * are met: 8138569Ssam * 1. Redistributions of source code must retain the above copyright 9138569Ssam * notice, this list of conditions and the following disclaimer, 10138569Ssam without modification. 11138569Ssam * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12138569Ssam * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13138569Ssam * redistribution must be conditioned upon including a substantially 14138569Ssam * similar Disclaimer requirement for further binary redistribution. 15138569Ssam * 3. Neither the names of the above-listed copyright holders nor the names 16138569Ssam * of any contributors may be used to endorse or promote products derived 17138569Ssam * from this software without specific prior written permission. 18138569Ssam * 19138569Ssam * Alternatively, this software may be distributed under the terms of the 20138569Ssam * GNU General Public License ("GPL") version 2 as published by the Free 21138569Ssam * Software Foundation. 22138569Ssam * 23138569Ssam * NO WARRANTY 24138569Ssam * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25138569Ssam * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26138569Ssam * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 27138569Ssam * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 28138569Ssam * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 29138569Ssam * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 30138569Ssam * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31138569Ssam * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 32138569Ssam * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33138569Ssam * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 34138569Ssam * THE POSSIBILITY OF SUCH DAMAGES. 35138569Ssam * 36138569Ssam * $FreeBSD: head/sys/dev/ath/ath_rate/onoe/onoe.h 138569 2004-12-08 17:32:02Z sam $ 37138569Ssam */ 38138569Ssam 39138569Ssam/* 40138569Ssam * Defintions for the Atheros Wireless LAN controller driver. 41138569Ssam */ 42138569Ssam#ifndef _DEV_ATH_RATE_ONOE_H 43138569Ssam#define _DEV_ATH_RATE_ONOE_H 44138569Ssam 45138569Ssam/* per-device state */ 46138569Ssamstruct onoe_softc { 47138569Ssam struct ath_ratectrl arc; /* base state */ 48138569Ssam struct callout timer; /* periodic timer */ 49138569Ssam}; 50138569Ssam 51138569Ssam/* per-node state */ 52138569Ssamstruct onoe_node { 53138569Ssam u_int on_tx_ok; /* tx ok pkt */ 54138569Ssam u_int on_tx_err; /* tx !ok pkt */ 55138569Ssam u_int on_tx_retr; /* tx retry count */ 56138569Ssam int on_tx_upper; /* tx upper rate req cnt */ 57138569Ssam u_int8_t on_tx_rix0; /* series 0 rate index */ 58138569Ssam u_int8_t on_tx_try0; /* series 0 try count */ 59138569Ssam u_int8_t on_tx_rate0; /* series 0 h/w rate */ 60138569Ssam u_int8_t on_tx_rate1; /* series 1 h/w rate */ 61138569Ssam u_int8_t on_tx_rate2; /* series 2 h/w rate */ 62138569Ssam u_int8_t on_tx_rate3; /* series 3 h/w rate */ 63138569Ssam u_int8_t on_tx_rate0sp; /* series 0 short preamble h/w rate */ 64138569Ssam u_int8_t on_tx_rate1sp; /* series 1 short preamble h/w rate */ 65138569Ssam u_int8_t on_tx_rate2sp; /* series 2 short preamble h/w rate */ 66138569Ssam u_int8_t on_tx_rate3sp; /* series 3 short preamble h/w rate */ 67138569Ssam}; 68138569Ssam#define ATH_NODE_ONOE(an) ((struct onoe_node *)&an[1]) 69138569Ssam#endif /* _DEV_ATH_RATE_ONOE_H */ 70