#ident "$Id: emul.h,v 1.3 1997/10/21 20:48:00 gary Exp $"
/*****************************************************************************
 * 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.
 * 
 *****************************************************************************/


/******************************************************************
 *
 *  SpiderNET - Network Board Streams Driver
 *
 *  Copyright 1990  Spider Systems Limited
 *
 *  EMUL.H
 *
 *    Board end code: streams emulator headers.
 *
 ******************************************************************/

/*
 *	 /projects/common/PBRAIN/SCCS/pbrainF/dev/embed/sxbus/0/s.emul.h
 *	@(#)emul.h	1.1
 *
 *	Last delta created	17:39:06 6/25/92
 *	This file extracted	12:44:36 10/29/92
 *
 *	Modifications:
 *
 *	GSA	15 Oct 90	New file created
 *
 *
 */

#ifndef SOH
struct devtab {
	char *name;
	int dev;
};
#endif

struct nrdy {
    struct nrdy *next;
    int ctllen;
    int datalen;
    int hipri;
    int seq;
    int slotid;
    int repmsg;
};

struct putwait {
        struct putwait *next;
        mblk_t *mp;
        int strm;
        int seq;
        int repmsg;
};

struct timeo {
        struct timeo *next;
        PFI	fun;
        caddr_t arg;
        int     seq;
        time_t  tim;
};

struct bcall
{
    struct bcall   *bc_next;
    int           (*bc_func)();
    caddr_t         bc_arg;
    int             bc_sz;
    int             bc_pri;
};

/* typedef struct bcall bcall_t;*/

#ifdef	SQUEEZE
#define mslot mslt FAR
#endif

struct pollq_t {
	struct mslot *slot;
	struct pollq_t FAR *next_slot;
};

#define MSA_LINK	1	/* Expecting link return */

#define CLOSE_PEND      1
#define UNLINK_PEND     2
#define CALL_CLOSE      3
#define CLOSE_TIMED_OUT 4


