ia64/linux-2.6.18-xen.hg

diff drivers/char/rio/protsts.h @ 0:831230e53067

Import 2.6.18 from kernel.org tarball.
author Ian Campbell <ian.campbell@xensource.com>
date Wed Apr 11 14:15:44 2007 +0100 (2007-04-11)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/drivers/char/rio/protsts.h	Wed Apr 11 14:15:44 2007 +0100
     1.3 @@ -0,0 +1,117 @@
     1.4 +/****************************************************************************
     1.5 + *******                                                              *******
     1.6 + *******      P R O T O C O L    S T A T U S   S T R U C T U R E      *******
     1.7 + *******                                                              *******
     1.8 + ****************************************************************************
     1.9 +
    1.10 + Author  : Ian Nandhra / Jeremy Rolls
    1.11 + Date    :
    1.12 +
    1.13 + *
    1.14 + *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
    1.15 + *
    1.16 + *      This program is free software; you can redistribute it and/or modify
    1.17 + *      it under the terms of the GNU General Public License as published by
    1.18 + *      the Free Software Foundation; either version 2 of the License, or
    1.19 + *      (at your option) any later version.
    1.20 + *
    1.21 + *      This program is distributed in the hope that it will be useful,
    1.22 + *      but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.23 + *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.24 + *      GNU General Public License for more details.
    1.25 + *
    1.26 + *      You should have received a copy of the GNU General Public License
    1.27 + *      along with this program; if not, write to the Free Software
    1.28 + *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    1.29 +
    1.30 + Version : 0.01
    1.31 +
    1.32 +
    1.33 +                            Mods
    1.34 + ----------------------------------------------------------------------------
    1.35 +  Date     By                Description
    1.36 + ----------------------------------------------------------------------------
    1.37 +
    1.38 + ***************************************************************************/
    1.39 +
    1.40 +#ifndef _protsts_h
    1.41 +#define _protsts_h 1
    1.42 +
    1.43 +
    1.44 +#ifdef SCCS_LABELS
    1.45 +#ifndef lint
    1.46 +/* static char *_rio_protsts_h_sccs = "@(#)protsts.h	1.4"; */
    1.47 +#endif
    1.48 +#endif
    1.49 +
    1.50 +/*************************************************
    1.51 + * ACK bit. Last Packet received OK. Set by
    1.52 + * rxpkt to indicate that the Packet has been
    1.53 + * received OK and that the LTT must set the ACK
    1.54 + * bit in the next outward bound Packet
    1.55 + * and re-set by LTT's after xmit.
    1.56 + *
    1.57 + * Gets shoved into rx_status
    1.58 + ************************************************/
    1.59 +#define PHB_RX_LAST_PKT_ACKED    ((ushort) 0x080)
    1.60 +
    1.61 +/*******************************************************
    1.62 + * The Rx TOGGLE bit.
    1.63 + * Stuffed into rx_status by RXPKT
    1.64 + ******************************************************/
    1.65 +#define PHB_RX_DATA_WNDW         ((ushort) 0x040)
    1.66 +
    1.67 +/*******************************************************
    1.68 + * The Rx TOGGLE bit. Matches the setting in PKT.H
    1.69 + * Stuffed into rx_status
    1.70 + ******************************************************/
    1.71 +#define PHB_RX_TGL               ((ushort) 0x2000)
    1.72 +
    1.73 +
    1.74 +/*************************************************
    1.75 + * This bit is set by the LRT to indicate that
    1.76 + * an ACK (packet) must be returned.
    1.77 + *
    1.78 + * Gets shoved into tx_status
    1.79 + ************************************************/
    1.80 +#define PHB_TX_SEND_PKT_ACK      ((ushort) 0x08)
    1.81 +
    1.82 +/*************************************************
    1.83 + * Set by LTT to indicate that an ACK is required
    1.84 + *************************************************/
    1.85 +#define PHB_TX_ACK_RQRD         ((ushort) 0x01)
    1.86 +
    1.87 +
    1.88 +/*******************************************************
    1.89 + * The Tx TOGGLE bit.
    1.90 + * Stuffed into tx_status by RXPKT from the PKT WndW
    1.91 + * field. Looked by the LTT when the NEXT Packet
    1.92 + * is going to be sent.
    1.93 + ******************************************************/
    1.94 +#define PHB_TX_DATA_WNDW         ((ushort) 0x04)
    1.95 +
    1.96 +
    1.97 +/*******************************************************
    1.98 + * The Tx TOGGLE bit. Matches the setting in PKT.H
    1.99 + * Stuffed into tx_status
   1.100 + ******************************************************/
   1.101 +#define PHB_TX_TGL               ((ushort) 0x02)
   1.102 +
   1.103 +/*******************************************************
   1.104 + * Request intr bit. Set when the queue has gone quiet
   1.105 + * and the PHB has requested an interrupt.
   1.106 + ******************************************************/
   1.107 +#define PHB_TX_INTR             ((ushort) 0x100)
   1.108 +
   1.109 +/*******************************************************
   1.110 + * SET if the PHB cannot send any more data down the
   1.111 + * Link
   1.112 + ******************************************************/
   1.113 +#define PHB_TX_HANDSHAKE         ((ushort) 0x010)
   1.114 +
   1.115 +
   1.116 +#define RUP_SEND_WNDW		 ((ushort) 0x08) ;
   1.117 +
   1.118 +#endif
   1.119 +
   1.120 +/*********** end of file ***********/