/*****************************************************************************
* Copyright (c) 1990-97 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.
* 
* Restricted Rights Legend
*
* Use, duplication, or disclosure by the Government is subject to
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
* Technical Data and Computer Software clause at DFARS 252.227-7031 or
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -
* Restricted Rights at 48 CFR 52.227-19, as applicable.
*
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
*
*****************************************************************************/

/*
 * $Id: config.h,v 1.2 1997/10/22 23:16:46 gary Exp $
 */

#ifndef _CONFIG_H
#define	_CONFIG_H

/* Shared devices */
#define SLOOP	1
#define STAC	1

/* SyncPort-specific devices */
#if (EPC|POWERPC)
#define X25		1
#define WANS	1
#define WAN		1
#define IXE		1
#define XXX		1
#define SLD		1
#define LAPB	1
#define FR		1
#define IFRE	1
#define FSTF	1
#endif

/* PRI-specific devices */
#if PRI
#define IWAN	1
#define T1E1	1
#define IL3		1
#define LAPD	1
#define FR		1
#define IFRE	1
#define MP		1
#undef	X25
#undef	IXE
#undef	XXX
#endif

/* Streams-on-Host-specific devices */
#if SOH
#define	XWAN	1
#define	WANS	1
#define	LAPB	1
#define	X25		1
#define	FR		1 
#undef	STAC
#endif

/*
 * Device/module major numbers
 * ---------------------------
 *
 * The entries in the cdevs and fmods tables must be ordered according to
 * the device/module numbers defined below.
 */
#define ETHDEV   0
#define IPDEV    1
#define TCPDEV   2
#define UDPDEV   3
#define SLIPDEV  4
#define X250DEV  5
#define LLC2DEV  6
#define LAPB0DEV 7
#define WANDEV   8
#define XPCDEV   9
#define IXEDEV   10
#define CXEDEV   11
#define UDSDEV	 12
#define LOOPDEV	 13
#define SIODEV	 14
#define SLOOPDEV 15
#define SCSKDEV  16
#define	FRDEV    17
#define	IFREDEV  18
#define	IL3DEV   19
#define	LAPDDEV  20
#define	IWANDEV  21
#define	T1DEV    22
#define MPDEV    23
#define XWANDEV  24

#define ARPMOD  0
#define ECHOMOD 1
#define TNMOD   2
#define TIMOD   3
#define MCMOD   4
#define XXXMOD  5
#define SLDMOD  6
#define NPIMOD  7
#define STACMOD 8
#define	FSTFMOD 9

/*
 * STREAMS driver/module tables
 */
extern struct streamtab headinfo;

#ifdef ETH
extern struct streamtab ethinfo;
#endif

#ifdef TCP

extern struct streamtab ipinfo, tcpinfo, udpinfo;
extern struct streamtab arpinfo, echoinfo;

#ifdef SLIP
extern struct streamtab slipinfo;
#endif

#ifdef LOOP
extern struct streamtab	loopinfo;
#endif
#endif /* TCP */

#ifdef ECHO
extern struct streamtab echoinfo;
#endif

#ifdef X25
extern struct streamtab x25info;
#endif

#ifdef LLC2
extern struct streamtab llc2info;
#endif

#ifdef LAPB
extern struct streamtab lapbinfo;
#endif

#ifdef WAN
extern struct streamtab waninfo;
#endif

#ifdef	XPC
extern struct streamtab xpcinfo;
#endif

#ifdef	XXX
extern struct streamtab xxxinfo;
#endif

#ifdef	SLD
extern struct streamtab sldinfo;
#endif

#ifdef	NPI
extern struct streamtab npiinfo;
#endif

#ifdef SLOOP
extern struct streamtab sloopinfo;
#endif

#ifdef UDS
extern struct streamtab udsinfo;
#endif

#ifdef IXE
extern struct streamtab ixeinfo;
#endif

#ifdef CXE
extern struct streamtab cxe_info;
#endif

#ifdef TN
extern struct streamtab tnmod_info;
#endif

#ifdef SIO
extern struct streamtab sioinfo;
#endif

#ifdef TLI
extern struct streamtab timinfo;
#endif

#ifdef WANS
extern struct streamtab waninfo;
#endif

#ifdef MCOPY
extern struct streamtab mcopyinfo;
#endif

#ifdef SCSK
extern struct streamtab scskinfo;
#endif

#ifdef FR
extern struct streamtab frinfo;
#endif

#ifdef IFRE
extern struct streamtab ifreinfo;
#endif

#ifdef STAC
extern struct streamtab stacinfo;
#endif

#ifdef FSTF
extern struct streamtab fstfinfo;
#endif

#ifdef IL3
extern struct streamtab il3info;
#endif

#ifdef LAPD
extern struct streamtab lapdinfo;
#endif

#ifdef IWAN
extern struct streamtab iwaninfo;
#endif

#ifdef T1E1
extern struct streamtab t1info;
#endif

#ifdef MP
extern struct streamtab mpinfo;
#endif

#ifdef XWAN
extern struct streamtab xwaninfo;
#endif

#endif	/* _CONFIG_H */
