RAMDISK revision 1.6
11.6Scgd#	$NetBSD: RAMDISK,v 1.6 2000/03/22 00:58:18 cgd Exp $
21.4Ssoda#	$OpenBSD: RAMDISK,v 1.9 1999/08/29 12:14:03 niklas Exp $
31.1Ssoda#
41.4Ssoda#	memory disk based configuration file for MIPS R4x00 ARC Systems
51.1Ssoda#
61.1Ssoda
71.2Ssodainclude		"arch/arc/conf/std.arc"
81.1Ssoda
91.4Ssodamaxusers	4		# estimated number of users
101.4Ssoda
111.4Ssoda# Enable the hooks used for initializing the root memory-disk.
121.4Ssodaoptions 	MEMORY_DISK_HOOKS
131.4Ssodaoptions 	MEMORY_DISK_IS_ROOT	# force root on memory disk
141.4Ssodaoptions 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
151.4Ssodaoptions 	MINIROOTSIZE=8192	# size of memory disk, in blocks
161.4Ssoda
171.4Ssodamakeoptions	COPTS="-Os"		# generates smaller code than -O2, -O1
181.1Ssoda
191.1Ssoda# Standard system options
201.1Ssoda
211.4Ssodaoptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
221.4Ssodaoptions 	NTP		# NTP phase/frequency locked loop
231.4Ssoda
241.4Ssodaoptions 	KTRACE		# system call tracing via ktrace(1)
251.1Ssoda
261.3Ssodaoptions 	SYSVMSG		# System V-like message queues
271.3Ssodaoptions 	SYSVSEM		# System V-like semaphores
281.3Ssodaoptions 	SYSVSHM		# System V-like memory sharing
291.4Ssoda#options 	SHMMAXPGS=1024	# 1024 pages is the default
301.1Ssoda
311.4Ssodaoptions 	LKM		# loadable kernel modules
321.4Ssoda
331.4Ssoda# Diagnostic/debugging support options
341.4Ssodaoptions 	DIAGNOSTIC	# cheap kernel consistency checks
351.4Ssoda#options 	DEBUG		# expensive debugging checks/support
361.4Ssoda#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
371.4Ssodaoptions 	DDB		# in-kernel debugger
381.4Ssoda#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
391.4Ssoda#options 	KGDB		# remote gdb
401.4Ssoda#options 	KGDBRATE=19200	# kernel gdb port rate (default 9600)
411.4Ssoda#options 	KGDBDEV="17*256+0"	# device for kernel gdb
421.4Ssoda#makeoptions	DEBUG="-g"	# compile full symbol table
431.4Ssoda
441.4Ssoda# Compatibility options
451.4Ssodaoptions 	COMPAT_10	# NetBSD 1.0,
461.4Ssodaoptions 	COMPAT_11	# NetBSD 1.1,
471.4Ssodaoptions 	COMPAT_12	# NetBSD 1.2,
481.4Ssodaoptions 	COMPAT_13	# NetBSD 1.3,
491.4Ssodaoptions 	COMPAT_14	# NetBSD 1.4,
501.4Ssodaoptions 	COMPAT_43	# and 4.3BSD
511.4Ssodaoptions 	COMPAT_386BSD_MBRPART # recognize old partition ID
521.4Ssoda
531.4Ssoda# mipsel specific
541.4Ssodaoptions 	COMPAT_ULTRIX	# Ultrix binary compatibility
551.4Ssodaoptions 	EXEC_ECOFF	# Ultrix RISC binaries are ECOFF format
561.4Ssoda
571.4Ssoda# File systems
581.2Ssodafile-system 	FFS		# fast filesystem
591.4Ssoda#file-system 	EXT2FS		# second extended file system (linux)
601.4Ssoda#file-system 	LFS		# log-structured file system
611.4Ssodafile-system 	MFS		# memory file system
621.4Ssodafile-system 	NTFS		# Windows/NT file system (experimental)
631.2Ssodafile-system 	CD9660		# ISO 9660 + Rock Ridge file system
641.4Ssodafile-system 	MSDOSFS		# MS-DOS file system
651.4Ssodafile-system 	NFS		# Network File System client
661.4Ssodafile-system 	FDESC		# /dev/fd
671.4Ssodafile-system 	KERNFS		# /kern
681.4Ssoda#file-system 	NULLFS		# loopback file system
691.2Ssoda#file-system 	OVERLAY		# overlay file system
701.4Ssoda#file-system 	PORTAL		# portal filesystem (still experimental)
711.4Ssodafile-system 	PROCFS		# /proc
721.4Ssoda#file-system 	UMAPFS		# NULLFS + uid and gid remapping
731.4Ssoda#file-system 	UNION		# union file system
741.4Ssoda#file-system	CODA		# Coda File System; also needs vcoda (below)
751.2Ssoda
761.4Ssoda# File system options
771.3Ssodaoptions 	QUOTA		# FFS quotas
781.4Ssoda#options 	FFS_EI		# FFS Endian Independent support
791.3Ssoda#options 	SOFTDEP		# FFS soft updates support.
801.4Ssodaoptions 	NFSSERVER	# Network File System server
811.4Ssoda#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
821.4Ssoda				# immutable) behave as system flags.
831.1Ssoda
841.2Ssoda# Pull in config fragments for kernel crypto.  This is required for
851.2Ssoda# options IPSEC etc. to work. If you want to run with IPSEC, uncomment
861.2Ssoda# one of these, based on whether you use crypto-us or crypto-intl, and
871.2Ssoda# adjust the prefixes as necessary.
881.2Ssoda
891.2Ssoda#prefix ../crypto-us/sys
901.2Ssoda#cinclude "conf/files.crypto-us"
911.2Ssoda#prefix
921.2Ssoda
931.2Ssoda#prefix ../crypto-intl/sys
941.2Ssoda#cinclude "conf/files.crypto-intl"
951.2Ssoda#prefix
961.1Ssoda
971.1Ssoda# Networking options
981.1Ssoda#options 	GATEWAY		# IP packet forwarding
991.4Ssodaoptions 	INET		# IP + ICMP + TCP + UDP
1001.4Ssodaoptions 	INET6		# IPV6
1011.2Ssoda#options 	IPSEC		# IP security
1021.2Ssoda#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
1031.2Ssoda#options 	IPSEC_DEBUG	# debug for IP security
1041.4Ssoda#options 	MROUTING	# IP multicast routing
1051.3Ssoda#options 	NS		# XNS
1061.4Ssoda#options 	NSIP		# XNS tunneling over IP
1071.1Ssoda#options 	ISO,TPIP	# OSI networking
1081.1Ssoda#options 	EON		# OSI tunneling over IP
1091.3Ssoda#options 	CCITT,LLC,HDLC	# X.25
1101.4Ssodaoptions 	NETATALK	# AppleTalk networking protocols
1111.4Ssodaoptions 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1121.4Ssodaoptions 	PPP_DEFLATE	# Deflate compression support for PPP
1131.4Ssodaoptions 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1141.4Ssodaoptions 	PFIL_HOOKS	# pfil(9) packet filter hooks
1151.4Ssodaoptions 	IPFILTER_LOG	# ipmon(8) log support
1161.4Ssoda
1171.4Ssoda# Compatibility with 4.2BSD implementation of TCP/IP.  Not recommended.
1181.4Ssoda#options 	TCP_COMPAT_42
1191.4Ssoda
1201.4Ssoda# These options enable verbose messages for several subsystems.
1211.4Ssoda# Warning, these may compile large string tables into the kernel!
1221.4Ssoda#options 	EISAVERBOSE	# verbose EISA device autoconfig messages
1231.4Ssoda#options 	PCIVERBOSE	# verbose PCI device autoconfig messages
1241.6Scgd#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1251.4Ssodaoptions 	SCSIVERBOSE	# human readable SCSI error messages
1261.4Ssoda
1271.4Ssoda# Kernel root file system and dump configuration.
1281.4Ssodaoptions 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
1291.4Ssodaconfig		netbsd	root on ? type ?
1301.1Ssoda
1311.1Ssoda#
1321.4Ssoda# Device configuration
1331.1Ssoda#
1341.4Ssoda
1351.1Ssodamainbus0	at root
1361.1Ssodacpu*		at mainbus0
1371.1Ssoda
1381.4Ssoda#### Pica bus devices
1391.1Ssoda
1401.1Ssodapica*		at mainbus0	# ACER Pica systems local bus.
1411.4Ssodaaclock0 	at pica?
1421.1Ssodapc0		at pica?
1431.2Ssodaopms0		at pica?
1441.1Ssodacom0		at pica?
1451.1Ssodacom1		at pica?
1461.1Ssodalpt0		at pica?
1471.1Ssodasn0		at pica?
1481.1Ssoda
1491.1Ssodafdc0		at pica?
1501.1Ssodafd*		at fdc? drive ?
1511.1Ssoda
1521.1Ssodaasc0		at pica?
1531.1Ssodascsibus* 	at asc?
1541.1Ssoda
1551.4Ssoda#### ISA bus devices
1561.1Ssoda
1571.4Ssodaisabr*		at mainbus0	# ISA Bus bridge (std ISA bus).
1581.1Ssodaisa*		at isabr?
1591.4Ssoda#isadma0 	at isa?
1601.1Ssoda
1611.4Ssodaaclock0 	at isa? port 0x70 irq 0
1621.1Ssoda
1631.3Ssodapc0		at isa? port 0x60 irq 1		# generic PC console device
1641.1Ssodacom0		at isa? port 0x3f8 irq 4
1651.1Ssodacom1		at isa? port 0x2f8 irq 3
1661.1Ssodacom2		at isa? port 0x3e8 irq 4
1671.1Ssodacom3		at isa? port 0x2e8 irq 3
1681.4Ssodaast0		at isa? port 0x1a0 irq 3	# AST 4-port serial cards
1691.4Ssodacom*		at ast? slave ?
1701.4Ssoda
1711.4Ssoda# Joystick driver. Probe is a little strange; add only if you have one.
1721.4Ssoda#joy0		at isa? port 0x201
1731.1Ssoda
1741.2Ssoda# ISA ST506, ESDI, and IDE controllers
1751.2Ssoda# Use flags 0x01 if you want to try to use 32bits data I/O (the driver will
1761.2Ssoda# fall back to 16bits I/O if 32bits I/O are not functional).
1771.2Ssoda# Some controllers pass the initial 32bit test, but will fail later.
1781.4Ssoda# XXX - should be configured
1791.4Ssoda#wdc0		at isa? port 0x1f0 irq 14 flags 0x00
1801.4Ssoda#wdc1		at isa? port 0x170 irq 15 flags 0x00
1811.4Ssoda#wdc*		at isapnp?
1821.2Ssoda
1831.2Ssoda# IDE drives
1841.2Ssoda# Flags are used only with controllers that support DMA operations
1851.2Ssoda# and mode settings (e.g. some pciide controllers)
1861.2Ssoda# The lowest order four bits (rightmost digit) of the flags define the PIO
1871.2Ssoda# mode to use, the next set of four bits the DMA mode and the third set the
1881.2Ssoda# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
1891.2Ssoda# to use, and the last bit must be 1 for this setting to be used.
1901.2Ssoda# For DMA and UDMA, 0xf (1111) means 'disable'.
1911.2Ssoda# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
1921.2Ssoda# (0xc=1100, 0xa=1010, 0xf=1111)
1931.2Ssoda# 0x0000 means "use whatever the drive claims to support".
1941.4Ssoda# XXX - should be configured
1951.4Ssoda#wd*		at wdc? channel ? drive ? flags 0x0000
1961.2Ssoda
1971.2Ssoda# ATAPI bus support
1981.4Ssoda# XXX - should be configured
1991.4Ssoda#atapibus*	at wdc? channel ?
2001.2Ssoda
2011.2Ssoda# ATAPI devices
2021.2Ssoda# flags have the same meaning as for IDE drives.
2031.4Ssoda# XXX - should be configured
2041.4Ssoda#cd*		at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2051.4Ssoda#sd*		at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2061.4Ssoda#uk*		at atapibus? drive ? flags 0x0000	# ATAPI unknown
2071.1Ssoda
2081.4Ssoda# ISA parallel printer interfaces
2091.1Ssodalpt0		at isa? port 0x378 irq 7
2101.1Ssoda
2111.4Ssoda# ISA network interfaces
2121.4Ssoda# XXX - should be configured
2131.4Ssoda#ec0		at isa? port 0x250 iomem 0xd8000 irq 9	# 3Com 3c503 Ethernet
2141.4Ssoda#ep0		at isa? port ? irq ?		# 3C509 ethernet cards
2151.4Ssoda#ne0		at isa? port 0x280 irq 9	# NE[12]000 ethernet cards
2161.4Ssoda#ne1		at isa? port 0x300 irq 10
2171.4Ssoda#ne*		at isapnp?			# NE[12]000 PnP ethernet
2181.4Ssoda#we0		at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC Ethernet
2191.4Ssoda#we1		at isa? port 0x300 iomem 0xcc000 irq 10
2201.4Ssoda#we*		at isapnp?
2211.4Ssoda
2221.4Ssoda# XXX - should be configured
2231.4Ssoda#btl0		at isa? port 0x330 irq ? drq ?
2241.4Ssoda#scsibus*	at btl?
2251.4Ssoda
2261.4Ssoda#### Algor bus devices
2271.4Ssoda
2281.4Ssoda#algor*		at mainbus0	# Algorithmics local bus.
2291.4Ssoda
2301.4Ssoda#aclock0 	at algor?
2311.4Ssoda#com0		at algor?
2321.4Ssoda#com1		at algor?
2331.4Ssoda#lpt0		at algor?
2341.4Ssoda
2351.4Ssoda#### PCI bus devices
2361.4Ssoda
2371.4Ssoda#pbcpcibr*	at mainbus0	# Algorithmics PCI bus bridge.
2381.4Ssoda#pci*		at pbcpcibr?
2391.4Ssoda
2401.4Ssoda#pcivga* 	at pci? dev ? function ?
2411.4Ssoda#ncr*		at pci? dev ? function ?
2421.4Ssoda#scsibus* 	at ncr?
2431.4Ssoda#de*		at pci? dev ? function ?
2441.1Ssoda
2451.4Ssoda#### SCSI bus devices
2461.1Ssoda
2471.1Ssodasd*		at scsibus? target ? lun ?
2481.1Ssodast*		at scsibus? target ? lun ?
2491.1Ssodacd*		at scsibus? target ? lun ?
2501.4Ssodach*		at scsibus? target ? lun ?
2511.4Ssodass*		at scsibus? target ? lun ?
2521.4Ssodauk*		at scsibus? target ? lun ?
2531.4Ssoda
2541.4Ssoda#### Pseudo devices
2551.4Ssoda
2561.4Ssoda# disk/mass storage pseudo-devices
2571.4Ssodapseudo-device	ccd		4	# concatenated/striped disk devices
2581.4Ssoda#pseudo-device	raid		4	# RAIDframe disk driver
2591.4Ssodapseudo-device	md		1	# memory disk device (ramdisk)
2601.4Ssodapseudo-device	vnd		4	# disk-like interface to files
2611.4Ssoda
2621.4Ssoda# network pseudo-devices
2631.4Ssodapseudo-device	bpfilter	8	# Berkeley packet filter
2641.4Ssodapseudo-device	ipfilter		# IP filter (firewall) and NAT
2651.4Ssodapseudo-device	loop		1	# network loopback
2661.4Ssodapseudo-device	ppp		2	# Point-to-Point Protocol
2671.4Ssodapseudo-device	sl		2	# Serial Line IP
2681.4Ssoda#pseudo-device	strip		2	# Starmode Radio IP (Metricom)
2691.4Ssodapseudo-device	tun		2	# network tunneling over tty
2701.4Ssoda#pseudo-device	gre		2	# generic L3 over IP tunnel
2711.4Ssodapseudo-device	ipip		2	# IP Encapsulation within IP (RFC 2003)
2721.4Ssodapseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
2731.4Ssoda#pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
2741.1Ssoda
2751.4Ssoda# miscellaneous pseudo-devices
2761.4Ssodapseudo-device	pty		64	# pseudo-terminals
2771.4Ssoda#pseudo-device	tb		1	# tablet line discipline
2781.4Ssoda#pseudo-device	sequencer	1	# MIDI sequencer
2791.4Ssoda# rnd works; RND_COM does not on port arc yet.
2801.4Ssodapseudo-device	rnd			# /dev/random and in-kernel generator
2811.4Ssoda#options 	RND_COM			# use "com" randomness as well (BROKEN)
2821.1Ssoda
2831.4Ssoda# a pseudo device needed for Coda	# also needs CODA (above)
2841.4Ssoda#pseudo-device	vcoda		4	# coda minicache <-> venus comm.
2851.1Ssoda
2861.4Ssoda# mouse & keyboard multiplexor pseudo-devices
2871.4Ssoda#pseudo-device	wsmux		2
288