#ident "$Id: x25pti.h,v 1.1 1995/03/16 17:18:26 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.
 * 
 *****************************************************************************/

/*******************************************************************
 *
 *  SpiderX25 X25 PLP Driver
 *
 *  Copyright 1991 Spider Systems Limited
 *
 *  X25PTI.H
 *
 *
 *******************************************************************/

/*
 *	x25pti.h
 *	 /projects/common/PBRAIN/SCCS/pbrainF/dev/sys/x25/0/s.x25pti.h
 *	@(#)x25pti.h	1.5
 *
 *	Last delta created	15:13:26 1/30/91
 *	This file extracted	18:33:03 11/19/92
 *
 */

/* ----------------------------------------------------------------------
   Packet type identifiers and routines available from pti.c
   ---------------------------------------------------------------------- */

/* X25 packet type identifiers */

#define		CALL_PTI	0X0B	/* Call request Incoming call */
#define		CAA_PTI		0X0F	/* Call accepted confirmed    */
#define		CLR_PTI		0X13	/* Clear Request              */
#define		CLC_PTI		0X17	/* Clear confirmation         */
#define		INT_PTI		0X23	/* Interrupt                  */
#define		INC_PTI		0X27	/* Interrupt confirmation     */
#define		RR_PTI		0X01	/* Receive ready (less NR)    */
#define		RNR_PTI		0X05	/* Receive not ready          */
#define		REJ_PTI		0X09	/* Reject                     */
#define		RST_PTI		0X1B	/* Reset Request              */
#define		RSC_PTI		0X1F	/* Reset confirmation         */
#define		RES_PTI		0XFB	/* Restart request            */
#define		REC_PTI		0XFF	/* Restart confirmation       */
#define		REG_PTI		0XF3	/* Registration request       */
#define		REGC_PTI	0XF7	/* Registration confirmation  */
#define		DIAG_PTI	0XF1	/* Diagnostic                 */

/* Internal codes for the X25 packet types.  The types appropriate to
   a VC (non zero LCI) must be assigned values less than X_VCNOT0  */

#define		X_DATA		0	/* DATA */
#define		X_RR		1	/* RR   */
#define		X_RNR		2	/* RNR  */
#define		X_REJ		3	/* REJ  */
#define		X_CALL		4	/* CALL */
#define		X_CAA		5	/* CAA  */
#define		X_CLR		6	/* CLR  */
#define		X_CLC		7	/* CLC  */
#define		X_INT		8	/* INT  */
#define		X_INC		9	/* INC  */
#define		X_RST		10	/* RST  */
#define		X_RSC		11	/* RSC  */
#define		X_nnSHORT	12	/* Frame < 3 bytes on non-zero LCI */
#define		X_BADnnPTI	13	/* Undefined or Unsupported PTI    */
#define		X_VCNOT0	14	/* Frame which is recognised as
					   belonging to LCI 0, but LCI#0   */

#define		X_RES		15	/* RES  */
#define		X_REC		16	/* REC  */
#define		X_REG		17	/* REG  */
#define		X_REGC		18	/* REGC */
#define		X_DIAG		19	/* DIAG */

#define		X_BADGFI	20	/* Invalid GFI                  */
#define		X_BADDIAG	21	/* Diagnostic format error
					   including non-zero LCI       */
#define		X_BAD00PTI	22	/* Bad PTI for zero LCI         */

/* ------ The Internal Usr_Req Event ------*/

#define		Usr_Req		23
#define		PVC_RSC		24
#define		PVC_RES		25

#ifndef		PTIDECLARED

extern	int	IDnnPkt();
extern	int	ID00Pkt();

#endif
