📄 conf.c
字号:
#ifndef lintstatic char *sccsid = "@(#)conf.c 4.21 (ULTRIX) 4/11/91";#endif lint/************************************************************************ * * * Copyright (c) 1985 - 1989, 1990 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//************************************************************************ * * Modification History: * * 09 Apr 91 -- chet * Add Presto layer between character device calls to strategy * routines (used by N-buf I/O). * * 07 Mar 91 Ken Kuscher * Make sure msdup links properly when no dup hardware * * 06 Mar 91 -- jaw * left "sdc" controllor out of genericconf. * * 23 Jan 91 Brian Nadeau * Add multimedia drivers to cdevsw * * 03 Jan 91 -- darrell * Fixed a packetfilter multiple define * * 19 Dec 90 -- JAW * fix diskless microvax booting where controller is present * but no disk are off the controller. * * 18 Dec 90 -- paradis * Added stub for vp_idle() * * 05 Nov 90 -- stuarth * Added nNXMI if no xmi busses present. * * 19 Aug 90 -- chet * Further simplify optional presto scheme. * * 12-Sep-90 Charles Richmond IIS Corp * Added stubs for kzqsa driver. * * 08 Sept 90 Stephen Reilly * Added entry for IEEE driver call ek. * * 6-Sep-90 -- skc * Add support for shadow device. * * 4-Sep-90 dlh * added stubs for vector processor support routines * * 31-Aug-90 rafiey (Ali Rafieymehr) * Added dummy reference to define nNVAXBI when the system doesn't * have BI. * * 03-Aug-90 Randall Brown * Added the xcons device and the dc device. * * 10 July 90 -- robin * Made change that would allow lp code to work on MIPS systems. * Simply removed ifdef's around include of lp.h * * 7 Jul 90 -- chet * Simplify optional presto scheme. * * 15-June-90 Mark Parenti * Add stub for xviaconf. * * 6-June-90 Pete Keilty * Changed CIADAP to CIISR. * * 5-June-90 Paul G. * Added stub on VAX side for xvmeconf routine. * * 30-May-90 Mark Parenti (map) * Add dummy reference to allow xmi without vme. * * 25 May 90 -- chet * Add support for presto NVRAM pseudo driver on * scsi and mscp class disks * * 23-May-90 Mark Parenti * Added dummy references to allow for xmi without bi and * vme without xmi. * * 29-Mar-90 Mitch McConnell * Added stubs for szdinfo and sz_softc for 3max non-zero controller * dump fix. * * 06-Mar-90 -- rafiey (Ali Rafieymehr) * Added an entry in genericconf structure for KDM70. * * 28-Dec-1989 David E. Eiche DEE0083 * Add dummy definition of log_xmierrs() to fix undefined reference * in biinit.c * * 02-Dec-89 Fred Canter * Added VAX pseudo device driver for user device on KA410/KA420 CPUs. * * 20-Nov-89 Tim Burke * Added the "xa" driver to cdevsw[]. This driver is a layered product * being developed by CSS/ISG for the DRV11. * Added the "utx" driver to cdevsw[]. This device special file is used * by the Japanese ULTRIX group. * * 13-Nov-89 Randall Brown * Added #ifdef vax around vcons_init. This is defined in cons_sw_data.c * for mips. * * 13-Nov-89 Janet Schank * Added stub sdintr, asc_reset, and asc_dumpregs functions. * * 13-Nov-89 Bill Dallas * Removed ifdef mips for ts * * 17-Oct-89 Mark A. Parenti * Removed LYNX support. * * 12-Sep-89 Robin Lewis * Added stub routine for siireset * * 22-Sep-89 Janet L. Schank * Changed some defines to allow for mips autoconfiguration. * * 12-Sep-89 Mark Parenti (map) * Fix problem in defines of uba stub routines. Include kdm in list. * * 15-Aug-89 Larry Scott * add `#include "audit.h"` line * * 28-Jun-80 Fred Canter * Add stubs for sz_dumpregs() and sii_dumpregs() for error logging. * * 17-Jun-89 Fred Canter * Added sz_reset() and sii_reset() stubs for error log code. * * 14-Jun-1989 Uttam Shikarpur * Added packet filter device. (Major device 70) * * 09-Jun-1989 Larry Scott * Added audit device * * 28-May-1989 Tim Burke * Created multiple major number entries for mscp disks (ra) in the * bdev and cdev switch tables. * * 8-May-1989 Giles Atkinson * Add warning comment about ../io/uba/cons_maj.h * * 07-Mar-89 Todd M. Katz TMK0002 * 1. Change the name of the local MSI port probe routine. * 2. Declare the dummy routine msi_isr() and the dummy structure * msiintv[] whenever zero MSI local ports are configured. * 3. Change the dummy declaration of ciintv[] to reflect current * support for only a single CI port. * * 02-Mar-1989 jaw * merge in SMP asymmetric driver support. * * 15-Feb-1989 afd (Al Delorey) * Merged with V3.0 SDC * * 09-Jan-89 Fred canter * Bug fix - szreset() stub in the wrong place. * * 30-Dec-88 Fred Canter * Added dummy szreset() and sdreset() to satisfy references in * machdep.c. * * 31-Jan-1989 Mark A. Parenti * Removed xos support. * Changed include syntax for merged pool. * * 25-Sep-88 Fred Canter * Clean up comments. * * 19-Aug-88 Fred Canter * Merge PVAX and FIREFOX SCSI drivers. * Remove last of PVAx BTD$ kludge. * * 05-Aug-88 Todd M. Katz * Changed the name of the CI780 interrupt service routine. * * 14-Jul-88 fred (Fred Canter) * Change CDROM device name from cz to rz (it is a disk). * * 16-Jun-88 larry * mscp drivers configured in when uq,bvpssp,ci, or msi are present. * * 09-Jun-88 darrell * Added stub routines for fcrint, enafbiclog, and fccons_init to * to fix undefined symbols when VAX60 was not defined. * * 07-Jun-88 darrell * Added Firefox diagnostic console and graphics console support * * 01-June-1988 Robin * Changed the name of the msi probe routine. * * 19-May-1988 fred (Fred Canter) * Added SCSI device support to bdevsw and cdevsw tables. * * 20-Apr-1988 Ricky S. Palmer * Removed a felonius reference to msiintv. * * 14-Apr-1988 David E. Eiche DEE0030 * Change genericconf table entry for BVPSSP to specify "ra" * disk type. * * 07-Apr-1988 David E. Eiche DEE0028 * Add code to enable dumping to the HSC. * * 17-Mar-1988 David E. Eiche DEE0017 * Change disk class driver open and close entries to use different * routines for block and character devices. * * 1-25-88 Ricky Palmer * Added MSI support. * * 1-12-88 Larry C. * Add dummy uba routines so autoconf will build when there is no * uba device configured in. * * 12-11-87 Robin L. and Larry C. * Added portclass/kmalloc support to the system. * * 19-Nov-87 -- Ricky Palmer (rsp) * Added support for HSC type. * * 4-May-87 -- Fred Canter * Added dummy Xstop() for kern_clock.c. * * 16-Apr-87 -- Fred Canter * Moved dummy xos variables to xos_data.c file. * * 19-Mar-87 -- Fred Canter (+ Brian Stevens) * Added X device entries to cdevsw[]. * Added global variables to identify the graphics device. * Added dummy variables so X in the kernel can be optional. * * 11-Feb-87 -- rafiey (Ali Rafieymehr) * Initialized two new variables for the Vaxstar color. * * 29-Jan-87 -- rsp (Ricky Palmer) * Added support for its frame buffer driver. * * 06-Jan-87 -- gmm (George Mathew) * Removed references to sdreset (Vaxstar disk driver does not need a * reset routine) * * 26-Sep-86 -- darrell * This change undoes the temporary change put in by Fred Canter * on 15-Sep-16. The TZK50 driver now handles nbufio. * * 15-Sep-86 -- fred (Fred Canter) * TEMPORARY CHANGE: remove ststrategy entry from cdevsw, to disable * nbufio for VAXstar TZK50 driver until the driver can be fixed. * This will allow the base-level I TK50 kit to install on VAXstar. * * 3-Sep-86 -- fred (Fred Canter) * Removed unused sm driver entry points: smread, smwrite, smreset. * Added dummy smcons_init & sgcons_init routines, to allow * the kernel to build if they are not configured. * * 28-Aug-86 -- prs * Removed declaration of ubdinit. Config declares an empty ubdinit * structure, even if no uba's are in config file. * * 14-Aug-86 -- fred (Fred Canter) * Changes VAXstar disk slaves from sd to rd/rx. * * 06-Aug-86 -- jaw fixed baddaddr to work on running system. * * 5-Aug-86 -- fred (Fred Canter) * Changed st to stc and misc. other VAXstar changes. * * 23-Jul-86 -- prs * Added the genericconf table. This table needs to be built here * because only configured devices can be in the table. Also if * no uba's or mba's are configured, then set ubdinit and mbdinit * structure pointers to NULL so swapgeneric, swapboot, and machdep * won't complain. * * 2-Jul-86 -- fred (Fred Canter) * Added more VAXstar devices to cdevsw[] (sg sm sh). * Added dummy ??driver symbols to satisfy reference in ka630.c * if the device is not configured. * * 18-Jun-86 -- fred (Fred Canter) * Changes for VAXstar kernel support. * * 5-Jun-86 -- jaw changes to config. * * 15-Apr-86 -- afd * Changed "v_console" to "v_consputc". * Added definition of "v_consgetc" for qvss and qdss input. * These are no longer enclosed by "#ifdef MVAX". Since the symbols * are referenced in cons.o they must be defined for all cpus. * There is also a dummy "contigphys()" to define the symbol. * * 02-Apr-86 -- jaw add support for nautilus console and memory adapter * * 11-Mar-86 * add support for SAS memory driver * * 11-Mar-86 -- lp * Add strat to entire cdevsw for n-buffered I/O. * * 18-Mar-86 -- jaw add routines to cpu switch for nexus/unibus addreses * also got rid of some globals like nexnum. * * 01-Mar-86 -- afd Added DMB32 device to cdevsw. * * 12-Feb-86 -- jrs * Move defn of null routine for buainit to bi dependency rather * than 8200 cpu dependency. * * 03-Feb-86 -- jaw for now define ka8200conf. * * 16-Jan-86 -- darrell * removed the lines for the ka820machcheck, so it is not made * as a psuedo device and defined it in cpuconf.c * * 20-Jan-86 -- Barb Glover * Added error logger character device switch * * 01-Oct-85 -- Larry Cohen * include ioctl.h so that window structure is defined. * * 03-Sep-85 -- jaw * bi error interrupt added. * * 03-Aug-85 -- rjl * added qdss and support to the microvax virtual console support. * * 21-Jun-85 -- jaw * crx changes to cs... * * 19-Jun-85 -- jaw * VAX8200 name change. * * 20-Mar-85 jaw * add VAX8200 console storage device. * * 27-Feb-85 -tresvik * Changes for support of the VAX8600 were merged in. * * 26 Nov 84 -- rjl * Added the system console as major number 38. Major #0 becomes the * system virtual console. When it's something other than the real * console, the real console can be accessed as 38,0. * * 14-Nov-84 Stephen Reilly * 001- Added ioctl to disk driver which will be used for the disk partitioning * scheme. * * conf.c 6.1 83/07/29 ***********************************************************************/#include "../h/param.h"#include "../h/systm.h"#include "../h/buf.h"#include "../h/ioctl.h"#include "../h/tty.h"#include "../h/conf.h"#include "../h/errno.h"#include "../h/time.h"#include "../h/proc.h"#include "../h/presto.h"#include "../h/types.h"#include "../io/uba/ubavar.h"#ifdef vax#include "../sas/vax/vmb.h"#endif vax#include "../io/ci/ciadapter.h"int nulldev();int nodev();#include "uba.h"#include "kdb.h"#include "klesib.h"#include "kdm.h"#if NUBA==0 && NKDB==0 && NKDM==0 && NKLESIB==0struct uba_hd uba_hd[1];ubaerror () {}ubainitmaps () {}uballoc () {}ubarelse () {}ubareset () {}#endif#include "ci.h"#if NCI == 0CIISR ci_isr;void ci780_isr() {};void ci_probe() {};void ci_log_initerr() {};void ci_unmapped_isr() {};int (*ciintv[])() = { 0 };int nNCI = 0;#endif#include "msi.h"#if NMSI == 0int msi_probe() {};void msi_isr() {};int (*msiintv[])() = { 0 };int nNMSI = 0;#endif NMSI#include "bvpni.h"#if NBVPNI == 0void niattach() {};int ni_softc, niinfo;int nNI = 0;#endif#ifdef mips#include "vba.h"#if NVBA == 0xvmeconf() { /* make xbiinit happy */ }xviaconf() { /* make kn220.c happy */ }#endif#endif /* mips */#ifdef vaxxvmeconf() { /* make xbiinit happy */ }#endif /* vax */#include "xmi.h"#if NXMI == 0 xmidev_vec() { /* temp for xna driver */ }log_xmierrors() { /* make biinit happy */ }xminotconf() { /* make xvmeinit happy */ }xmi_io_space() { /* make xvmeinit happy */ }int nNXMI; /* used in biinit.c */#endif#include "vaxbi.h"#if NVAXBI == 0#include "../io/bi/bireg.h"bidev_vec() { /* temp for xna driver */ }probebi() { /* make locore happy */ }bierrors() { /* make locore happy */ }buainit() { /* make locore happy */ }biclrint() {/*make machdep happy */ }bisetint() {/*make machdep happy */ }log_bierrors() { /* make xmiinit happy */ }struct bidata bidata[1]; /* make xmiinit happy */int nNVAXBI = 0;#endif#if defined(VAX8200) || defined(VAX8800)int cs_size(),cs_ioctl(),cs_open(),cs_close(),cs_strategy(),cs_read(),cs_write();#else#define cs_size nodev#define cs_open nodev#define cs_close nodev#define cs_strategy nodev#define cs_read nodev#define cs_ioctl nodev#define cs_write nodev#endif#ifndef VAX8200bimemenable() { /*null */}bimemerror() { /*null */}ka820rxcd() { /*null */}#endif#include "uq.h"#include "ci.h"#include "bvpssp.h"#include "msi.h"#include "msdup.h"#if NCI==0 && NBVPSSP == 0 && NUQ == 0 && NMSI == 0scs_start_sysaps () {/* make init_main.c happy */}mscp_poll_wait () {/* make init_main.c happy */}#endif#ifdef vax#include "hp.h"#else#define NHP 0#endif vax#if NHP > 0int hpopen(),hpstrategy(),hpread(),hpwrite(),hpdump(),hpioctl(),hpsize();#else#define hpopen nodev#define hpstrategy nodev#define hpread nodev#define hpwrite nodev
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -