2005-04-17 00:20:36 +02:00
|
|
|
/****************************************************************************
|
|
|
|
******* *******
|
|
|
|
******* L I N K
|
|
|
|
******* *******
|
|
|
|
****************************************************************************
|
|
|
|
|
|
|
|
Author : Ian Nandhra / Jeremy Rolls
|
|
|
|
Date :
|
|
|
|
|
|
|
|
*
|
|
|
|
* (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
Version : 0.01
|
|
|
|
|
|
|
|
|
|
|
|
Mods
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
Date By Description
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _link_h
|
|
|
|
#define _link_h 1
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
* Define the Link Status stuff
|
|
|
|
************************************************/
|
|
|
|
/* Boot request stuff */
|
2006-01-11 21:17:49 +01:00
|
|
|
#define BOOT_REQUEST ((ushort) 0) /* Request for a boot */
|
|
|
|
#define BOOT_ABORT ((ushort) 1) /* Abort a boot */
|
|
|
|
#define BOOT_SEQUENCE ((ushort) 2) /* Packet with the number of packets
|
|
|
|
and load address */
|
|
|
|
#define BOOT_COMPLETED ((ushort) 3) /* Boot completed */
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
struct LPB {
|
2006-03-24 12:18:24 +01:00
|
|
|
u16 link_number; /* Link Number */
|
2006-03-24 12:18:31 +01:00
|
|
|
u16 in_ch; /* Link In Channel */
|
|
|
|
u16 out_ch; /* Link Out Channel */
|
2006-03-24 12:18:24 +01:00
|
|
|
u8 attached_serial[4]; /* Attached serial number */
|
|
|
|
u8 attached_host_serial[4];
|
2006-01-11 21:17:49 +01:00
|
|
|
/* Serial number of Host who
|
|
|
|
booted the other end */
|
2006-03-24 12:18:24 +01:00
|
|
|
u16 descheduled; /* Currently Descheduled */
|
|
|
|
u16 state; /* Current state */
|
|
|
|
u16 send_poll; /* Send a Poll Packet */
|
2006-03-24 12:18:31 +01:00
|
|
|
u16 ltt_p; /* Process Descriptor */
|
|
|
|
u16 lrt_p; /* Process Descriptor */
|
2006-03-24 12:18:24 +01:00
|
|
|
u16 lrt_status; /* Current lrt status */
|
|
|
|
u16 ltt_status; /* Current ltt status */
|
|
|
|
u16 timeout; /* Timeout value */
|
|
|
|
u16 topology; /* Topology bits */
|
|
|
|
u16 mon_ltt;
|
|
|
|
u16 mon_lrt;
|
|
|
|
u16 WaitNoBoot; /* Secs to hold off booting */
|
2006-03-24 12:18:26 +01:00
|
|
|
u16 add_packet_list; /* Add packets to here */
|
|
|
|
u16 remove_packet_list; /* Send packets from here */
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-03-24 12:18:31 +01:00
|
|
|
u16 lrt_fail_chan; /* Lrt's failure channel */
|
|
|
|
u16 ltt_fail_chan; /* Ltt's failure channel */
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-01-11 21:17:49 +01:00
|
|
|
/* RUP structure for HOST to driver communications */
|
|
|
|
struct RUP rup;
|
|
|
|
struct RUP link_rup; /* RUP for the link (POLL,
|
|
|
|
topology etc.) */
|
2006-03-24 12:18:24 +01:00
|
|
|
u16 attached_link; /* Number of attached link */
|
|
|
|
u16 csum_errors; /* csum errors */
|
|
|
|
u16 num_disconnects; /* number of disconnects */
|
|
|
|
u16 num_sync_rcvd; /* # sync's received */
|
|
|
|
u16 num_sync_rqst; /* # sync requests */
|
|
|
|
u16 num_tx; /* Num pkts sent */
|
|
|
|
u16 num_rx; /* Num pkts received */
|
|
|
|
u16 module_attached; /* Module tpyes of attached */
|
|
|
|
u16 led_timeout; /* LED timeout */
|
|
|
|
u16 first_port; /* First port to service */
|
|
|
|
u16 last_port; /* Last port to service */
|
2006-01-11 21:17:49 +01:00
|
|
|
};
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********** end of file ***********/
|