[NET_SCHED]: Fix endless loops caused by inaccurate qlen counters (part 1)
[hh.org.git] / drivers / char / rio / protsts.h
blob69fc4bc34153602f2738af08582ac1c189b0d3af
1 /****************************************************************************
2 ******* *******
3 ******* P R O T O C O L S T A T U S S T R U C T U R E *******
4 ******* *******
5 ****************************************************************************
7 Author : Ian Nandhra / Jeremy Rolls
8 Date :
11 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 Version : 0.01
30 Mods
31 ----------------------------------------------------------------------------
32 Date By Description
33 ----------------------------------------------------------------------------
35 ***************************************************************************/
37 #ifndef _protsts_h
38 #define _protsts_h 1
41 #ifdef SCCS_LABELS
42 #ifndef lint
43 /* static char *_rio_protsts_h_sccs = "@(#)protsts.h 1.4"; */
44 #endif
45 #endif
47 /*************************************************
48 * ACK bit. Last Packet received OK. Set by
49 * rxpkt to indicate that the Packet has been
50 * received OK and that the LTT must set the ACK
51 * bit in the next outward bound Packet
52 * and re-set by LTT's after xmit.
54 * Gets shoved into rx_status
55 ************************************************/
56 #define PHB_RX_LAST_PKT_ACKED ((ushort) 0x080)
58 /*******************************************************
59 * The Rx TOGGLE bit.
60 * Stuffed into rx_status by RXPKT
61 ******************************************************/
62 #define PHB_RX_DATA_WNDW ((ushort) 0x040)
64 /*******************************************************
65 * The Rx TOGGLE bit. Matches the setting in PKT.H
66 * Stuffed into rx_status
67 ******************************************************/
68 #define PHB_RX_TGL ((ushort) 0x2000)
71 /*************************************************
72 * This bit is set by the LRT to indicate that
73 * an ACK (packet) must be returned.
75 * Gets shoved into tx_status
76 ************************************************/
77 #define PHB_TX_SEND_PKT_ACK ((ushort) 0x08)
79 /*************************************************
80 * Set by LTT to indicate that an ACK is required
81 *************************************************/
82 #define PHB_TX_ACK_RQRD ((ushort) 0x01)
85 /*******************************************************
86 * The Tx TOGGLE bit.
87 * Stuffed into tx_status by RXPKT from the PKT WndW
88 * field. Looked by the LTT when the NEXT Packet
89 * is going to be sent.
90 ******************************************************/
91 #define PHB_TX_DATA_WNDW ((ushort) 0x04)
94 /*******************************************************
95 * The Tx TOGGLE bit. Matches the setting in PKT.H
96 * Stuffed into tx_status
97 ******************************************************/
98 #define PHB_TX_TGL ((ushort) 0x02)
100 /*******************************************************
101 * Request intr bit. Set when the queue has gone quiet
102 * and the PHB has requested an interrupt.
103 ******************************************************/
104 #define PHB_TX_INTR ((ushort) 0x100)
106 /*******************************************************
107 * SET if the PHB cannot send any more data down the
108 * Link
109 ******************************************************/
110 #define PHB_TX_HANDSHAKE ((ushort) 0x010)
113 #define RUP_SEND_WNDW ((ushort) 0x08) ;
115 #endif
117 /*********** end of file ***********/