/*****************************************************************************
 * Copyright (c) 1988-95 Digi International Inc., All Rights Reserved
 * 
 * This  software  contains  proprietary  and  confidential   information   of
 * Digi International  Inc.   By  accepting  transfer  of this copy, Recipient
 * agrees to retain this software in  confidence,  to  prevent  disclosure  to
 * others,  and  to make no  use of this software other than that for which it
 * was delivered.  This is an unpublished copyright work  Digi   International
 * Inc.    Except   as   permitted   by  federal  law,  17 USC 117, copying is
 * strictly prohibited.
 * 
 * Digi  International  Inc.  CONFIDENTIAL  -   (Digi    International    Inc.
 * Confidential  when   combined   with   the   aggregated  modules  for  this
 * product) OBJECT CODE ONLY SOURCE MATERIALS
 * 
 * (C) COPYRIGHT Digi International Inc. 1995
 * 
 * All Rights Reserved
 * 
 * US   Government   Users   Restricted   Rights   -   Use,   duplication   or
 * disclosure  restricted by GSA ADP Schedule Contract with Digi International
 * Inc.
 * 
 *****************************************************************************/

/*
 * $Id: sxbshare.h,v 1.4 1996/10/30 23:08:41 gary Exp $
 */

/******************************************************************
 *
 *  SpiderNET - Network Board Streams Driver
 *
 *  Copyright 1987  Spider Systems Limited
 *
 *  SXBSHARE.H
 *
 *    Shared transfer control structures
 *
 ******************************************************************/

#define XNPOOLS 8

/* Magic number */
#define IFMAGIC 0x12345678          /* Access check code */

/* Interface version */
#define IFVERSION        3          /* Interface version number */

/* Length of software name field */
#define IFNAMESZ        64          /* Name field length */


/* Root shared structure (length 128 bytes) */
/* Note: 32-bit addresses in the interface are all relative to the */
/*       start of this structure.                                  */
struct shared
{
    /* Identification */
    uint8           if_ifversion;   /* 00: Interface version code */
    uint8           if_swversion;   /* 01: Software version */
    uint8           if_nbslot;      /* 02: Backplane slot number */
    uint8           if_nbident;     /* 03: Board type<<4 | sequence number */

    /* Access check */
    uint32          if_magic;       /* 04: "Magic number" */

    /* Host private info */
    uint32          if_hostbrd;     /* 08: Host's board handle */

    /* Diagnostic address block */
    uint32          if_diagaddr;    /* 0C: Address of diagnostic info */

    /* ASCII software name (padded with blanks) */
    uint8           if_swname[IFNAMESZ];
                                    /* 10: Software name */

    struct xbus_init xbus_init;     /* 50: Xbus structure */
};

#define ROOTOFFSET 0x8000

/*
 * print_args is used by on board cmn_err and strlog to transfer
 * arguments across the bus.
 */
struct print_args {
	int16 mid, sid;
	int8 level;
	uint16 flags;
};

