/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	ci_data.c,v $
 * Revision 1.1.3.4  92/05/05  12:45:18  Peter_Keilty
 * 	merged with ag.latest
 * 	[92/05/04  17:01:35  Peter_Keilty]
 * 
 * 	Merge with pre.bl6
 * 	[92/04/04  10:31:48  Peter_Keilty]
 * 
 * 	Remove ciconfl1 and ciconfl2 they are now in ci/ciconfig.c
 * 	[92/03/27  13:49:42  Peter_Keilty]
 * 
 * Revision 1.1.3.3  92/02/24  11:42:24  Peter_Keilty
 * 	Added check for zero NHSC
 * 	[92/02/18  21:29:56  Peter_Keilty]
 * 
 * 	Initial checkin of DSA IO subsystem and
 * 	related system files
 * 	[92/02/12  18:35:08  Peter_Keilty]
 * 
 * Revision 1.1.3.2  91/11/20  13:51:52  Hal_Project
 * 	Moved from dec/data; pool reorg
 * 	[91/11/18  00:44:24  Donald_Dutile]
 * 
 * Revision 4.2  91/09/19  23:24:15  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: ci_data.c,v $ $Revision: 1.1.3.4 $ (DEC) $Date: 92/05/05 12:45:18 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * Mach Operating System
 * Copyright (c) 1989 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */
/*
 * OSF/1 Release 1.0
 */
/* 
 * derived from ci_data.c	3.1	(ULTRIX)	4/20/90";
 */

/*
 *
 *   Facility:	Systems Communication Architecture
 *		Computer Interconnect Port Driver
 *
 *   Abstract:	This module contains Computer Interconnect Port Driver( CI )
 *		configurable variables and variables required by installation
 *		procedures.
 *
 *   Creator:	Todd M. Katz	Creation Date:	February 25, 1985
 *
 *   Modification History:
 *
 *   18-Sep-1989 	Pete Keilty
 *	Add errlogging variable ci_errlog.
 * 
 *   30-Aug-1988	Todd M. Katz
 *	Add two former CI PPD configuration variables ci_cippdburst and
 *	ci_cippdcontact.  They are now specified by the CI port driver instead
 *	of by the CI PPD because the optimum values for port polling burst size
 *	and contact frequency now differ on an individual port driver basis.
 *	The values for these parameters are passed to the CI PPD through CI PPD
 *	specific PCCB fields.
 *
 *   13-Apr-1988	Todd M. Katz
 *	Add the configuration variable ci_lpc_panic.  This configuration
 *	variable controls whether CI local port failures are recovered from or
 *	immediately panic the system.  Error recovery is the default but may be
 *	overruled by setting the configuration file option SCA_PANIC to an
 *	appropriate value.
 *
 *   08-Jan-1988	Todd M. Katz
 *	Formated module, revised comments, and made CI PPD completely
 *	independent from underlying port drivers.
 */

/* Libraries and Include Files.
 */
#include		<hsc.h>
#include		<sys/types.h>
#include		<io/common/devdriver.h>
#include		<io/dec/scs/scaparam.h>
 
/* CI Configuration Variables.
 */ 
u_short		ci_cippdburst		/* CI PPD polling burst size	     */
		    = 4;		/*  MAX:   224; DEF:	  4; MIN:  1 */
u_short		ci_cippdcontact		/* CI PPD port contact intrvl( secs )*/
		    = 60;		/*  MAX: 32767; DEF:     60; MIN:  2 */
u_short		ci_max_reinits		/* CI max num consecutive reinits    */
		    = 10;		/*  MAX:   255; DEF:     10; MIN:  1 */
u_short		ci_maint_timer		/* CI port mnt timer enable bool flag*/
		    = 1;		/*  MAX:     1; DEF:      1; MIN:  0 */
u_short		ci_maint_intrvl		/* CI port maintenance timer interval*/
		    = 0;		/*  MAX:   100; DEF:      0; MIN:  0 */
u_short		ci_lpc_panic		/* CI local port crash panic flag    */
		    = SCA_PANIC;	/*  MAX:     3; DEF:      0; MIN:  0 */
u_short		ci_severity		/* CI console logging severity	     */
		    = SCA_SEVERITY;	/*  MAX:     5; DEF:	  0; MIN:  0 */
u_short		ci_errlog		/* CI errlog logging severity	     */
		    = SCA_ERRLOG0;	/*  MAX:     3; DEF:	  0; MIN:  0 */

/* CI Variables for Installation Procedures.
 */
u_short		ci_first_port = 0;	/* Port number of first local CI port*/


extern struct device 	 *mscpdinfo[];
#if NHSC > 0
struct controller *hscinfo[NHSC];
struct driver hscdriver = { 0, 0, 0, 0, 0, 0, "ra", mscpdinfo, "hsc",
			     hscinfo, 0, 0, 0, 0, 0 };
#else
struct controller *hscinfo[1];
#endif

