#ifdef __cplusplus
extern "C" {
#endif
/*
* 5713-AEQ COPYRIGHT IBM CORP 1989
* LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
*/
#ifndef H_SCCSID
#include <sccs.h>
#endif /* ~H_SCCSID */
H_SCCSID(@(#)cfgcdefs.h	1.14	AIX)	/* Modified: 9/16/89 22:51:58 */
H_SCCSID(@(#)cfgcdefs.h	1.13	AIX)	/* Modified: 5/2/89 01:23:26 */

/*  (c) Copyright IBM Corp. 1988, 1989  */
/*  Licensed Material - Program Property of IBM*/
/*
*  cfgcdefs.h : common definitions neded by system configuration modules              
*
*/
				/*General attribute file defines*/
#define	TRUEVAL		"true"
#define	CAPSTRUEVAL		"TRUE"
#define	FALSEVAL	"false"
#define	SZNAMELEN	20

				/* device characteristics keywords    */

#define	AA	"aa"			/* auto answer */
#define AE     "ae"                     /* automatic enable (ddi file)   */
#define TT      "tt"                    /* terminal type (ddi file)      */
#define ENABLED     "enabled"           /* enable the tty at ipl         */
#define TERM        "term"              /* terminal type                 */
#define RS          "rts"               /* receive/transmit speed        */
#define DVAM        "dvam"              /* device attachment method      */
#define PT          "pt"                /* parity type (ddi file)        */
#define NOSB        "nosb"              /* number of stop bits (ddi file */
#define BPC         "bpc"               /* bits per character (ddi file) */
#define PARITY      "parity"            /* parity type                   */
#define LOGMODES    "logmodes"          /* logmodes keyword              */
#define SPEED       "speed"		/* transmit/receive speed	 */
#define CYCLE       "cycle"		/* cyclic speed setting  APAR #3652 */
#define	ELEVEL	"elevel"		/* Level at which tty is enabled */
#define FL	"fl"			/* form length			 */
#define FW	"fw"			/* form width 			 */
#define	IND	"lm"			/* indent value			 */
#define	BPLOT	"plot"			/* pass directly to device	 */
#define	BNOFF	"noff"			/* no form feed                  */
#define BNONL	"nonl"			/* no new lines			 */
#define BNOTAB	"hts"			/* don't expand tabs             */
#define BBACKS 	"backs"			/* printer supports backspace    */
#define BNOCR	"nocr"			/* no carriage returns           */
#define BCAPS	"caps"			/* translate all alpha to upper case */
#define	BWRAP	"wll"			/* printer wrap.  Print characters
						beyond page width instead
						of truncating            */
#define PTIME	"ptime"			/* printer timeout in seconds */
#define LANG	"lang"			/* hft language */
#define DISPLAYM	"displaym"	/* display type for the hft */
#define PRINTER	"printer"		/* printer session mask used 
									by 3270 connection */
#define SLOW	"slow"			/* slow device session mask used 
									by 3270 connection */
#define NSESS	"mnonid"		/* the maximum number of sessions
									supported by 3270 connection */
#define LOBIBP	"lobibp"		/* the buffer size of the 3270 driver */
#define SERIAL	"serial"		/* the serial number of the PS/2 --
									used by the 3270 connection driver */
#define MACHTYPE "machtype"		/* the PS/2 machine type, ie 8580, 8570,
									etc.  Used by the 3270 connection
									driver */
#define	DTR			"dtr" 		/* Keyword value for data terminal ready */
#define	DC			"dc"		/* Keyword value for direct connect */
#define	DTRVAL		1			/* Integer value for DTR setting */
#define	DCVAL		2			/* Integer value for DC setting */
#define	PRO			"pro"		/* Keyword for protocol */

				/* etc master keywords               */

#define MAJOR     "major"               /* UDD major number          */
#define MAXMINOR  "maxminor"            /* max number of minor numbers */
#define PREFIX    "prefix"              /* UDD character prefix      */
#define ROUTINES  "routines"            /* UDD routines              */
#define TTY       "tty"                 /* tty                       */
#define MPX       "mpx"                 /* multiplex device driver   */
#define MANDATORY "mandatory"           /* mandatory device          */
#define CONFIG    "config"              /* config helper routine     */
#define	TYPE	  "type"		/* type keyword		     */
#define	NAME      "name"		/* name keyword			*/
#define	ALIAS     "alias"		/* alias keyword		*/

				 /* etc system       keywords         */

#define MODES     "modes"                /* file access modes         */
#define OWNER 	  "owner"		 /* file owner			*/
#define DRIVER    "driver"               /* driver name               */
#define MINOR     "minor"                /* minor number identifier   */
#define KAF_FILE  "kaf_file"             /* name of kaf file          */
#define KAF_USE   "kaf_use"              /* name of kaf file stanza   */
#define NOSPECIAL "nospecial"            /* nospecial file ( no UDD0  */
#define DTYPE     "dtype"                /* device type identified    */
#define DFILE     "file"                 /* ddi file name             */
#define	DNAME	  "dname"		 /* dname keyword		*/
#define NODELETE  "nodelete"             /* nodelete parameter        */
#define	NODDI	  "noddi"		 /* no ddi file for device	*/
#define	NODEL	  "nodl"		 /* nodel keyword		*/
#define	NODUP	  "noduplicate"		 /* no duplicate of this device*/
#define	NOSHOW	  "noshow"		 /* do not display device info. */
#define SPECPROC  "specproc"             /* special processing        */
#define	NAME	  "name"		 /* name keyword		*/
#define NOIPL     "noipl"                /* noipl keyword            */
#define	PAR       "par"                  /* par keyword                */
#define	PFLAG	  "pflag"		 /* pflag keyword             */
#define PORT	  "port"		 /* port keyword              */
#define	PORTS	  "ports"		 /* ports keyword		*/
#define	UINFO	  "uinfo"		 /* uinfo keyword		*/
#define USE       "use"                  /* ddi stanza name           */
#define ADAPT     "adapts"               /* adapter stanza name        */
#define SLOT      "slot"                 /* slot number keyword        */
#define	ADDRESS   "address"              /* address keyword		*/

				/* /etc/qconfig keywords               */

#define DEVICE     "device"              /* device keyword             */
#define BACKEND    "backend"             /* backend keyword           */

				/* /etc/ports keyword                  */

#define ODD         "odd"                /* parity values */
#define EVEN        "even"
#define NONE        "none"
#define TWOSBITS    "2"                  /* stop bit value */
#define NOSB1       "-cstopb"
#define NOSB2       "+cstopb"
#define CS          "cs"



/* constant definitions */
			    /* options for calls to osconfig */
#define AOPT "a"            /*  add */
#define DOPT "d"            /*  delete */
#define	COPT "c"	    /*  change */
#define	ASOPT "as"	    /*  add special file only option */
#define	DSOPT "ds"	    /*  delete special file only option */
#define SPACE 040
#define SPFILE "/etc/specials"      /* file name for the special */
				    /*     file list             */
#define OSCONFIG "/etc/osconfig"  /* path to osconfig */
#define MAXARGS 50          /* maximum number of arguments in the    */
			    /* argument list passed to fork_exec routine*/
#define MAJORMIN  1        /* minimum value for a generated major number*/
#define MAJORMAX  50       /* maximum value for a generated major number*/

#define MAPPREFIX "m"       /* prefix used with the mapped keyword values */

#ifdef	APITEST
#undef	OSCONFIG	
#undef	SPFILE	
#define	OSCONFIG	"/u/aix/intg/etc/osconfig"
#define	SPFILE		"/u/aix/intg/etc/specials"
#endif
#ifdef __cplusplus
}
#endif
