blob: 69fc4bc34153602f2738af08582ac1c189b0d3af [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/****************************************************************************
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 ****************************************************************************
6
7 Author : Ian Nandhra / Jeremy Rolls
8 Date :
9
10 *
11 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
12 *
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.
17 *
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.
22 *
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.
26
27 Version : 0.01
28
29
30 Mods
31 ----------------------------------------------------------------------------
32 Date By Description
33 ----------------------------------------------------------------------------
34
35 ***************************************************************************/
36
37#ifndef _protsts_h
38#define _protsts_h 1
39
40
41#ifdef SCCS_LABELS
42#ifndef lint
43/* static char *_rio_protsts_h_sccs = "@(#)protsts.h 1.4"; */
44#endif
45#endif
46
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.
53 *
54 * Gets shoved into rx_status
55 ************************************************/
56#define PHB_RX_LAST_PKT_ACKED ((ushort) 0x080)
57
58/*******************************************************
59 * The Rx TOGGLE bit.
60 * Stuffed into rx_status by RXPKT
61 ******************************************************/
62#define PHB_RX_DATA_WNDW ((ushort) 0x040)
63
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)
69
70
71/*************************************************
72 * This bit is set by the LRT to indicate that
73 * an ACK (packet) must be returned.
74 *
75 * Gets shoved into tx_status
76 ************************************************/
77#define PHB_TX_SEND_PKT_ACK ((ushort) 0x08)
78
79/*************************************************
80 * Set by LTT to indicate that an ACK is required
81 *************************************************/
82#define PHB_TX_ACK_RQRD ((ushort) 0x01)
83
84
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)
92
93
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)
99
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)
105
106/*******************************************************
107 * SET if the PHB cannot send any more data down the
108 * Link
109 ******************************************************/
110#define PHB_TX_HANDSHAKE ((ushort) 0x010)
111
112
113#define RUP_SEND_WNDW ((ushort) 0x08) ;
114
115#endif
116
117/*********** end of file ***********/