?? configuration
字號:
/* Configuration - (device configuration specifications) */
/* "type" declarations for both real- and pseudo- devices */
/* PC keyboard and monitor (normally console device) */
kbmon:
on HARDWARE -i kbminit -o noopen -c noclose
-r kbmread -w kbmwrite -s noseek
-n kbmcntl -g kbmgetc -p kbmputc
-iint kbmint -oint nooint
serial:
on HARDWARE -i cominit -o noopen -c noclose
-r noread -w comwrite -s noseek
-n comcntl -g comgetc -p computc
-iint comint -oint nooint
/* tty pseudo-devices */
tty:
on HARDWARE -i ttyinit -o ttyopen -c noclose
-r ttyread -w ttywrite -s noseek
-n ttycntl -g ttygetc -p ttyputc
-iint ttyiin
/* Ethernet using SMC Ultra interface */
eth:
on ULTRA -i ue_init -o noopen -c noclose
-r noread -w ue_write -s noseek
-n ue_cntl -g nogetc -p noputc
-iint ue_intr -oint ue_intr
/* Ethernet using Intel EtherExpress16 interface */
/*
eth:
on EXPRESS -i ee_init -o noopen -c noclose
-r noread -w ee_write -s noseek
-n ee_cntl -g nogetc -p noputc
-iint ee_intr -oint ee_intr
*/
/* "Othernet" using a Ethernet interface */
/*oth:
on ETHER -i othinit -o noopen -c noclose
-r noread -w othwrite -s noseek
-n nocntl -g nogetc -p noputc
-iint noiint -oint nooint
*/
/* Datagram interface to network (master device) */
dgm:
on ETH -i ionull -o dgmopen -c noclose
-r noread -w nowrite -s noseek
-n dgmcntl -g nogetc -p noputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* A datagram "connection" (pseudo-device returned by dgm open) */
dg:
on ETH -i dginit -o noopen -c dgclose
-r dgread -w dgwrite -s noseek
-n dgcntl -g nogetc -p noputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* Streams interface to network (master device) */
tcpm:
on ETH -i ionull -o tcpmopen -c noclose
-r noread -w nowrite -s noseek
-n tcpmcntl -g nogetc -p noputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* A tcp "connection" (pseudo-device returned by tcpm open) */
tcp:
on ETH -i tcpinit -o noopen -c tcpclose
-r tcpread -w tcpwrite -s noseek
-n tcpcntl -g tcpgetc -p tcpputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* Remote file system master device (open to get rf device) */
rfm:
on DGM -i ioerr -o rfopen -c noclose
-r noread -w nowrite -s noseek
-n rfcntl -g nogetc -p noputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* A remote file (pseudo-device returned by rfm open) */
rf:
on DGM -i rfinit -o noopen -c rfclose
-r rfread -w rfwrite -s rfseek
-n rfcntl -g rfgetc -p rfputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
/* Name system (topmost level of name resolution mechanism) */
nam:
on TOP -i naminit -o namopen -c noclose
-r noread -w nowrite -s noseek
-n nocntl -g nogetc -p noputc
-iint noiint -oint nooint -csr 0
-ivec 0 -ovec 0
%
/* The physical PC keyboard and monitor */
KBMON is kbmon on HARDWARE irq 1
SERIAL0 is serial on HARDWARE csr 0x3f8 irq 4
SERIAL1 is serial on HARDWARE csr 0x2f8 irq 3
CONSOLE is tty on HARDWARE
TTY0 is tty on HARDWARE
TTY1 is tty on HARDWARE
TTY2 is tty on HARDWARE
/* Physical ethernet raw packet interface */
/*ETHER is eth on EXPRESS csr=0x280 irq=10 */
ETHER is eth on ULTRA csr=0x240 irq=10
/*OTHER1 is oth on ETHER */
/*OTHER2 is oth on ETHER */
/* Datagram network interface (master pseudo-device) */
UDP is dgm on ETH
/* Pseudo-device slots for datagram "connections" */
DGRAM0 is dg on ETH
DGRAM1 is dg on ETH
DGRAM2 is dg on ETH
DGRAM3 is dg on ETH
DGRAM4 is dg on ETH
DGRAM5 is dg on ETH
DGRAM6 is dg on ETH
DGRAM7 is dg on ETH
DGRAM8 is dg on ETH
DGRAM9 is dg on ETH
DGRAMA is dg on ETH
DGRAMB is dg on ETH
DGRAMC is dg on ETH
DGRAMD is dg on ETH
DGRAME is dg on ETH
DGRAMF is dg on ETH
/* TCP network interface (master pseudo-device) */
TCP is tcpm on ETH
/* Pseudo-device slots for TCP "connections" */
TCP0 is tcp on ETH
TCP1 is tcp on ETH
TCP2 is tcp on ETH
TCP3 is tcp on ETH
TCP4 is tcp on ETH
TCP5 is tcp on ETH
TCP6 is tcp on ETH
TCP7 is tcp on ETH
TCP8 is tcp on ETH
TCP9 is tcp on ETH
TCPA is tcp on ETH
TCPB is tcp on ETH
TCPC is tcp on ETH
TCPD is tcp on ETH
TCPE is tcp on ETH
TCPF is tcp on ETH
/* Remote file system interface (master pseudo-device) */
RFILSYS is rfm on DGM
/* Pseudo-device slots for remote files */
RFILE1 is rf on DGM
RFILE2 is rf on DGM
RFILE3 is rf on DGM
RFILE4 is rf on DGM
/* Pseudo device for the abstract (file) name space */
NAMESPACE is nam on TOP
%
/* Configuration and Size Constants */
#define LITTLE_ENDIAN 0x1234
#define BIG_ENDIAN 0x4321
#define BYTE_ORDER LITTLE_ENDIAN
#define CONTACT "dls@purdue.edu" /* administrative contact */
#define LOCATION "Xinu Lab" /* Host's physical location */
#define NPROC 50 /* number of user processes */
#define NSEM 200 /* number of semaphores */
#define MEMMARK /* define if memory marking used*/
#define RTCLOCK /* now have RTC support */
#define STKCHK /* resched checks stack overflow*/
#define NETDAEMON /* Ethernet network daemon runs */
#define OSPF /* define if using OSPF */
#ifdef notdef
#define NETMON /* define for network monitor */
#endif
#define SNMP /* define for SNMP & MIB */
#define RIP /* define if using RIP */
#define MULTICAST /* define if using multicasting */
#ifdef OSPF
#define MULTICAST /* OSPF uses multicasting */
#endif /* OSPF */
#define IPADDR1 "10.3.0.3" /* interface 1 IP address */
#define DEFRTR "10.3.0.1" /* default router */
#define TSERVER "10.3.0.1:37" /* Time server address */
#define RSERVER "10.3.0.1:2001" /* Remote file server address */
#define NSERVER "10.3.0.1:53" /* Domain Name server address */
#define LOGHOST "10.3.0.1:514" /* syslog server address */
#define BINGID 9 /* Othernet simlated net param. */
#define SMALLMTU 400 /* for OTHER2; sim. small MTU */
#define BPMAXB 8192 /* max buffer size for mkpool */
#define BPMAXN 128 /* max # buffers in a buf pool */
#define TCPSBS 4096 /* TCP send buffer sizes */
#define TCPRBS 8192 /* TCP receive buffer sizes */
#define NPORTS 100
#define TIMERGRAN 1 /* timer granularity, secs/10 */
#define NAREA 1 /* max number of OSPF Areas */
#ifndef Noth
#define Noth 0
#endif !Noth
#ifndef Ndg
#define Ndg 0
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -