⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conf.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
📖 第 1 页 / 共 5 页
字号:
#define shioctl	nodev#define shstop nodev#define shreset	nulldev#define sh_tty	0int	shdriver;int	nNSH = NSH;shtimer(){/* to keep the undefines in locore happy */ }#else NSHint	shopen(),shclose(),shread(),shwrite(),shioctl(),shstop(),shreset();struct	tty sh_tty[];#endif NSH/* * Pseudo device driver for user added devices * on KA410/KA420 (MV2000, MV3100) processors. */#ifdef vax#include "sp.h"#else#define NSP 0#endif vax#if NSP == 0#define spopen nodev#define spclose	nodev#define spread nodev#define spwrite	nodev#define spioctl	nodev#define spstop nodev#define spreset	nulldev#define sp_tty	0int	spdriver;int	nNSP = NSP;#ifdef	notdefsptimer(){/* to keep the undefines in locore happy */ }#endif	notdef#else NSPint	spopen(),spclose(),spread(),spwrite(),spioctl(),spstop(),spreset();struct	tty sp_tty[];#endif NSP#ifdef vax#include "ss.h"#else#define NSS 0#endif vax#if NSS == 0#define ssopen	nodev#define ssclose nodev#define ssread	nodev#define sswrite nodev#define ssioctl nodev#define ssstop	nodev#define ssselect nodev#define ss_tty	0#define sscons_init nulldevint	nNSS = NSS;sstimer(){/* to get rid of undefines in locore */ }int	sspdma;int	ssdriver;#elseint	ssopen(),ssclose(),ssread(),sswrite(),ssioctl(),ssstop(),	ssselect(),sscons_init();struct	tty ss_tty[];#endif NSS#ifndef VAX60fcrint() { /* null */ }enafbiclog() { /* null */ }fccons_init() { /* null */ }#endif VAX60#ifdef vax#include "fc.h"#else#define NFC 0#endif vax#if NFC == 0#define fcopen	nodev#define fcclose nodev#define fcread	nodev#define fcwrite nodev#define fcioctl nodev#define fcstop	nodev#define fcselect nodev#define fc_tty	0#define fccons_init nulldevint	nNFC = NFC;fctimer(){/* to get rid of undefines in locore */ }int	fcpdma;int	fcdriver;#elseint	fcopen(),fcclose(),fcread(),fcwrite(),fcioctl(),fcstop(),	fcselect(),fccons_init();struct	tty fc_tty[];#endif NFC#ifdef vax#include "fg.h"#else#define NFG 0#endif vax#if NFG == 0#define fgopen  nodev#define fgclose nodev#define fgread  nodev#define fgwrite nodev#define fgioctl nodev#define fgstop  nodev#define fgreset nulldev#define fgselect nodev#define fg_tty  0fgcons_init(){        return(ENXIO);}int   fgdriver;#else NFGint     fgopen(),fgclose(),fgread(),fgwrite(),fgioctl(),fgstop(),fgreset(),        fgselect();struct  tty fg_tty[];#endif NFG#include "ln.h"#if NLN == 0int	lndriver;#endif NLN#ifdef mips#include "ne.h"#if NNE == 0int	nedriver;#endif NNE#endif mips/* * On a workstation, these variables identify * the type of graphics display device and * which units are present. This info is filled * in by the graphics device drivers (qd qv sm sg). */int	ws_display_type = 0;	/* Major device number of display device */int	ws_display_units = 0;	/* Bit field of units (bit0 = unit 0, etc) *//* * MicroVAX and VAXstar virtual console support *//* * Virtual console character display and read routines. * The drivers will fill these in as they configure. */int (*v_consputc)() = 0;int (*v_consgetc)() = 0;/* * VAXstar graphics device driver entry points, * can't use cdevsw[] like QVSS & QDSS because the * VAXstar console 4 line SLU is shared between the graphics * device and the EIA and printer ports. * The graphics device drivers fill in the entry * points in their ??cons_init() routines. * The SLU driver (ss.c) uses these entry points to call * the graphics driver if the operation if for the graphics device. */int (*vs_gdopen)() = 0;int (*vs_gdclose)() = 0;int (*vs_gdread)() = 0;int (*vs_gdwrite)() = 0;int (*vs_gdselect)() = 0;int (*vs_gdkint)() = 0;int (*vs_gdioctl)() = 0;int (*vs_gdstop)() = 0;/* * Console initialization routines * * These routines are called to set up the system console so * that it can be used by cnputc to display characters before * the driver probe routines are hit. (catch 22) The search is * complete when the list is ended or a driver reports that it * setup. *//* * CAUTION:	sscons_init must be first so that the serial line cntlr *		will be configured as the console on a VAXstar/TEAMmate. *		Something in the VAXstar's address space looks like a *		QDSS and fools autoconf. If sscons_init is not first, then *		qvcons_init and qdcons_init must be modified to return 0 *		if the CPU is a VAXstar. */#ifdef vax(*vcons_init[])() = {	sscons_init,	/* MUST BE FIRST */	qdcons_init,	qvcons_init,	0};#endif vax/* * contigphys is only used by the MicroVAX I. But the routine * must be defined for all processors to resolve the reference * from uba.c. */#ifndef MVAXcontigphys(){}#endif#include "lta.h"#if NLTA == 0#define ltaopen 	nodev#define ltaclose	nodev#define ltaread 	nodev#define ltawrite	nodev#define ltaioctl	nodev#define ltastop 	nodev#define ltareset	nulldev#define lata	0#elseint ltaopen(),ltaclose(),ltaread(),ltawrite(),ltaioctl(),ltastop();#define ltareset	nulldevextern	struct tty lata[];#endif NLTA#if VAX8600int	crlopen(),crlclose(),crlread(),crlwrite();#else#define crlopen 	nodev#define crlclose	nodev#define crlread 	nodev#define crlwrite	nodev#endif#if VAX780int	flopen(),flclose(),flread(),flwrite();#else#define flopen	nodev#define flclose nodev#define flread	nodev#define flwrite nodev#endif#ifdef vax#include "dz.h"#else#define NDZ 0#endif vax#if NDZ == 0#define dzopen	nodev#define dzclose nodev#define dzread	nodev#define dzwrite nodev#define dzioctl nodev#define dzstop	nodev#define dzreset nulldev#define dz_tty	0int	nNDZ = NDZ;dztimer(){/* to get rid of undefines in locore */ }int	dzpdma;#elseint	dzopen(),dzclose(),dzread(),dzwrite(),dzioctl(),dzstop(),dzreset();struct	tty dz_tty[];#endif#include "lp.h"#if NLP > 0int	lpopen(),lpclose(),lpwrite(),lpreset();#else#define lpopen		nodev#define lpclose 	nodev#define lpwrite 	nodev#define lpreset 	nulldev#endifint	syopen(),syread(),sywrite(),syioctl(),syselect();int	mmread(),mmwrite();#define mmselect	seltrue#ifdef vax#include "va.h"#else#define NVA 0#endif vax#if NVA > 0int	vaopen(),vaclose(),vawrite(),vaioctl(),vareset(),vaselect();#else#define vaopen		nodev#define vaclose 	nodev#define vawrite 	nodev#define vaopen		nodev#define vaioctl 	nodev#define vareset 	nulldev#define vaselect	nodev#endif NVA#ifdef vax#include "vp.h"#else#define NVP 0#endif vax#if NVP > 0int	vpopen(),vpclose(),vpwrite(),vpioctl(),vpreset(),vpselect();#else#define vpopen		nodev#define vpclose 	nodev#define vpwrite 	nodev#define vpioctl 	nodev#define vpreset 	nulldev#define vpselect	nodev#endif NVP#include "pty.h"#if NPTY > 0int	ptsopen(),ptsclose(),ptsread(),ptswrite(),ptsstop();int	ptcopen(),ptcclose(),ptcread(),ptcwrite(),ptcselect();int	ptyioctl();extern	struct	tty pt_tty[];#else#define ptsopen 	nodev#define ptsclose	nodev#define ptsread 	nodev#define ptswrite	nodev#define ptcopen 	nodev#define ptcclose	nodev#define ptcread 	nodev#define ptcwrite	nodev#define ptyioctl	nodev#define pt_tty		0#define ptcselect	nodev#define ptsstop 	nulldevptyinit() { }#endif NPTY#ifdef vax#include "lpa.h"#else#define NLPA 0#endif vax#if NLPA > 0int	lpaopen(),lpaclose(),lparead(),lpawrite(),lpaioctl();#else#define lpaopen 	nodev#define lpaclose	nodev#define lparead 	nodev#define lpawrite	nodev#define lpaioctl	nodev#endif NLPA#ifdef vax#include "dn.h"#else#define NDN 0#endif vax#if NDN > 0int	dnopen(),dnclose(),dnwrite();#else#define dnopen		nodev#define dnclose 	nodev#define dnwrite 	nodev#endif NDN#ifdef vax#include "gpib.h"#else#define NGPIB 0#endif vax#if NGPIB > 0int	gpibopen(),gpibclose(),gpibread(),gpibwrite(),gpibioctl();#else#define gpibopen	nodev#define gpibclose	nodev#define gpibread	nodev#define gpibwrite	nodev#define gpibioctl	nodev#endif NGPIB#ifdef vax#include "ik.h"#else#define NIK 0#endif vax#if NIK > 0int	ikopen(),ikclose(),ikread(),ikwrite(),ikioctl(),ikreset();#else#define ikopen nodev#define ikclose nodev#define ikread nodev#define ikwrite nodev#define ikioctl nodev#define ikreset nodev#endif NIK#ifdef vax#include "its.h"#else#define NITS 0#endif vax#if NITS > 0int	itsopen(),itsclose(),itsioctl(),itsread();#else#define itsopen nodev#define itsclose nodev#define itsioctl nodev#define itsread nodev#endif NITS#ifdef vax#include "ps.h"#else#define NPS 0#endif vax#if NPS > 0int	psopen(),psclose(),psread(),pswrite(),psioctl(),psreset();#elseint	nNPS = NPS;psextsync(){	/* Got to keep locore happy */}#define psopen nodev#define psclose nodev#define psread nodev#define pswrite nodev#define psopen nodev#define psioctl nodev#define psreset nodev#endif NPS#ifdef vax#include "ib.h"#else#define NIB 0#endif vax#if NIB > 0int	ibopen(),ibclose(),ibread(),ibwrite(),ibioctl();#else#define ibopen	nodev#define ibclose nodev#define ibread	nodev#define ibwrite nodev#define ibioctl nodev#endif NIB#ifdef vax#include "ad.h"#else#define NAD 0#endif vax#if NAD > 0int	adopen(),adclose(),adioctl(),adreset();#else#define adopen nodev#define adclose nodev#define adioctl nodev#define adreset nodev#endif NAD#ifdef vax#include "vs.h"#else#define NVS 0#endif vax#if NVS > 0int	vsopen(),vsclose(),vsioctl(),vsreset(),vsselect();#else#define vsopen nodev#define vsclose nodev#define vsioctl nodev#define vsreset nodev#define vsselect nodev#endif NVS#include "sys_trace.h"#if NSYS_TRACE > 0int	trace_open(),trace_close(),trace_ioctl(),trace_select(),trace_read();#else NSYS_TRACE#define	trace_open nodev#define	trace_close nodev#define	trace_ioctl nodev#define	trace_read nodev#define	trace_select nodevint syscall_trace(x,y,z){}#endif NSYS_TRACE#include "audit.h"#if AUDIT > 0int     auditopen(), auditclose(), auditread(), auditwrite(), auditsel();#else AUDIT#define auditopen nodev#define auditclose nodev#define auditread nodev#define auditwrite nodev#define auditsel nodev#endif AUDIT/* * LNV21 printer/scanner controller.  Layered product driver. */#define ldopen nodev#define ldclose nodev#define ldioctl nodev#define ldreset nodev#define ldread nodev#define ldwrite nodev

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -