aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/rio/rup.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/rio/rup.h')
-rw-r--r--drivers/char/rio/rup.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/drivers/char/rio/rup.h b/drivers/char/rio/rup.h
index b9d2bc03d14b..8d44fec91dd5 100644
--- a/drivers/char/rio/rup.h
+++ b/drivers/char/rio/rup.h
@@ -44,39 +44,38 @@
44#endif 44#endif
45 45
46#if defined( HOST ) || defined( INKERNEL ) 46#if defined( HOST ) || defined( INKERNEL )
47#define MAX_RUP ((short) 16) 47#define MAX_RUP ((short) 16)
48#endif 48#endif
49#ifdef RTA 49#ifdef RTA
50#define MAX_RUP ((short) 1) 50#define MAX_RUP ((short) 1)
51#endif 51#endif
52 52
53#define PKTS_PER_RUP ((short) 2) /* They are always used in pairs */ 53#define PKTS_PER_RUP ((short) 2) /* They are always used in pairs */
54 54
55/************************************************* 55/*************************************************
56 * Define all the packet request stuff 56 * Define all the packet request stuff
57 ************************************************/ 57 ************************************************/
58#define TX_RUP_INACTIVE 0 /* Nothing to transmit */ 58#define TX_RUP_INACTIVE 0 /* Nothing to transmit */
59#define TX_PACKET_READY 1 /* Transmit packet ready */ 59#define TX_PACKET_READY 1 /* Transmit packet ready */
60#define TX_LOCK_RUP 2 /* Transmit side locked */ 60#define TX_LOCK_RUP 2 /* Transmit side locked */
61 61
62#define RX_RUP_INACTIVE 0 /* Nothing received */ 62#define RX_RUP_INACTIVE 0 /* Nothing received */
63#define RX_PACKET_READY 1 /* Packet received */ 63#define RX_PACKET_READY 1 /* Packet received */
64 64
65#define RUP_NO_OWNER 0xff /* RUP not owned by any process */ 65#define RUP_NO_OWNER 0xff /* RUP not owned by any process */
66 66
67struct RUP { 67struct RUP {
68 PKT_ptr txpkt; /* Outgoing packet */ 68 PKT_ptr txpkt; /* Outgoing packet */
69 PKT_ptr rxpkt; /* Incoming packet */ 69 PKT_ptr rxpkt; /* Incoming packet */
70 WORD link; /* Which link to send down? */ 70 WORD link; /* Which link to send down? */
71 BYTE rup_dest_unit[2]; /* Destination unit */ 71 BYTE rup_dest_unit[2]; /* Destination unit */
72 WORD handshake; /* For handshaking */ 72 WORD handshake; /* For handshaking */
73 WORD timeout; /* Timeout */ 73 WORD timeout; /* Timeout */
74 WORD status; /* Status */ 74 WORD status; /* Status */
75 WORD txcontrol; /* Transmit control */ 75 WORD txcontrol; /* Transmit control */
76 WORD rxcontrol; /* Receive control */ 76 WORD rxcontrol; /* Receive control */
77 }; 77};
78 78
79#endif 79#endif
80 80
81/*********** end of file ***********/ 81/*********** end of file ***********/
82