# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.
#
# $Header: config 1.11 90/06/08 $
#

checkfor {
	co		# get  _CO_NUMDEV definition
	pty		# get _PTY_NUMDEV definition
	sc		# get  _SC_NUMDEV definition
	st		# get  _ST_NUMDEV definition
	xs		# get  _XS_NUMDEV definition
}

prefix="ld"
streamm("eld0")		# "eld0" is declared as an alias for "ld"
functions("_init")

space(ld0_space.c)
modules {
	ld0.c
	partab.c
	sgtty.c
	winsiz.c
}

#
#  Configurable parameters.
#

#
#  The TTYBUF_LATENCY parameter defines the maximum number of bytes that
#  the system will buffer in the ld0 service queue when all upstream queues
#  are already full.  Any data generated above this limit is dropped by the
#  various tty port drivers to protect the system from having all of its
#  streams buffer resources consumed by a single (or several) prolific
#  tty input sources that do NOT observe any reasonable flow-control
#  characteristics.
#
declare [7] {
  TTYBUF_LATENCY int {"Max #of bytes to buffer above XOFF threshold before dropping data"}
}

declare [3] {
  NTTYLD int {"Number of tty line-discipline structures"}
}

default {
  TTYBUF_LATENCY {2150; 400..4000}
  NTTYLD	 {2; 2..}	# Any system must have at least 2 ttylds
}				# to support the console

ifdef(_CO_NUMDEV) {
  adjust NTTYLD	{_CO_NUMDEV*2}
}

ifdef(_PTY_NUMDEV) {
  adjust NTTYLD {_PTY_NUMDEV}
}

ifdef(_SC_NUMDEV) {
  adjust NTTYLD {_SC_NUMDEV*2}
}

ifdef(_ST_NUMDEV) {
  adjust NTTYLD {_ST_NUMDEV*16}
}

ifdef(_XS_NUMDEV) {
  adjust NTTYLD {_XS_NUMDEV*16}
}
