#ident "$Id: xty.h,v 1.1 1995/03/16 17:19:41 garyp 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.
 * 
 *****************************************************************************/



/************************************************************************
 * Copyright (c) 1993-1994 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 copyrighted work of Digi International
 * Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
 * prohibited.
 */


/******************************************************************
 *
 *  SpiderX25 - XTY
 *
 *  Copyright 1991  Spider Systems Limited
 *
 *  XTY.H
 *
 * This module contains all the definitions for the XTY modules
 *
 ******************************************************************/

/*
 *	 /projects/common/PBRAIN/SCCS/pbrainF/dev/src/include/sys/snet/0/s.xty.h
 *	@(#)xty.h	1.12
 *
 *	Last delta created	11:07:09 2/4/92
 *	This file extracted	14:27:40 10/26/92
 *
 */

struct xty {
	queue_t *hiqueue;
	queue_t *loqueue;
	queue_t *blqueue;	/* Queue for blocked connection */
	short	strflags;
	short	below_closed;
	short	pgrp;		/* Process group of non-blocking opener */
	short	w_pgrp;		/* Process group of blocking opener */
};

struct xout {
	queue_t *hiqueue;
	queue_t *ctlqueue;
	mblk_t	*xmbl;
};

struct xin {
	queue_t *hiqueue;
	queue_t *ctlqueue;
	mblk_t	*xmbl;
};


#define WBLOCK		1	/* Block user - daemon is slowing up!	*/
#define O_WAIT		2	/* Slave is waiting for master open	*/
#define CALL_OUT	4	/* Making an outgoing call		*/

#define PREV(q)	(OTHERQ(OTHERQ(q)->q_next))

#define XXX_CLOSE 	'C'	/* M_HANGUP field */
#define XXX_HANGUP 	'H'	/* M_HANGUP field */
#define XXX_IGNBRK	'Z'	/* Ignore Breakin */

#ifdef SVR4
#define	XTY_NONBLOCK	0x8000	/* Non-blocking bit in minor device number */
#define	XTY_DEVMASK	0x7FFF	/* Minor device number mask                */
#else
#define	XTY_NONBLOCK	0x80	/* Non-blocking bit in minor device number */
#define	XTY_DEVMASK	0x7F	/* Minor device number mask                */
#endif /* SVR4 */
