RAMDISK revision 1.13
11.13Ssoda#	$NetBSD: RAMDISK,v 1.13 2001/05/21 03:37:31 soda 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.1Ssoda# Networking options
851.1Ssoda#options 	GATEWAY		# IP packet forwarding
861.4Ssodaoptions 	INET		# IP + ICMP + TCP + UDP
871.4Ssodaoptions 	INET6		# IPV6
881.2Ssoda#options 	IPSEC		# IP security
891.2Ssoda#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
901.2Ssoda#options 	IPSEC_DEBUG	# debug for IP security
911.4Ssoda#options 	MROUTING	# IP multicast routing
921.3Ssoda#options 	NS		# XNS
931.4Ssoda#options 	NSIP		# XNS tunneling over IP
941.1Ssoda#options 	ISO,TPIP	# OSI networking
951.1Ssoda#options 	EON		# OSI tunneling over IP
961.3Ssoda#options 	CCITT,LLC,HDLC	# X.25
971.4Ssodaoptions 	NETATALK	# AppleTalk networking protocols
981.4Ssodaoptions 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
991.4Ssodaoptions 	PPP_DEFLATE	# Deflate compression support for PPP
1001.4Ssodaoptions 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1011.4Ssodaoptions 	PFIL_HOOKS	# pfil(9) packet filter hooks
1021.4Ssodaoptions 	IPFILTER_LOG	# ipmon(8) log support
1031.4Ssoda
1041.4Ssoda# Compatibility with 4.2BSD implementation of TCP/IP.  Not recommended.
1051.4Ssoda#options 	TCP_COMPAT_42
1061.4Ssoda
1071.4Ssoda# These options enable verbose messages for several subsystems.
1081.4Ssoda# Warning, these may compile large string tables into the kernel!
1091.4Ssoda#options 	EISAVERBOSE	# verbose EISA device autoconfig messages
1101.4Ssoda#options 	PCIVERBOSE	# verbose PCI device autoconfig messages
1111.6Scgd#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1121.4Ssodaoptions 	SCSIVERBOSE	# human readable SCSI error messages
1131.10Sur
1141.10Sur# wscons terminal emulation
1151.10Suroptions 	WSEMUL_VT100	# VT100 emulation
1161.4Ssoda
1171.4Ssoda# Kernel root file system and dump configuration.
1181.4Ssodaoptions 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
1191.4Ssodaconfig		netbsd	root on ? type ?
1201.1Ssoda
1211.1Ssoda#
1221.4Ssoda# Device configuration
1231.1Ssoda#
1241.4Ssoda
1251.1Ssodamainbus0	at root
1261.1Ssodacpu*		at mainbus0
1271.1Ssoda
1281.12Sur#### Jazz-Internal bus devices
1291.1Ssoda
1301.12Surjazzio*		at mainbus0	# Jazz-Internal bus.
1311.12Suraclock0 	at jazzio?
1321.12Sur#pc0		at jazzio?
1331.12Sur#opms0		at jazzio?
1341.12Survga0		at jazzio?	# Jazz localbus VGA
1351.12Surpckbc0		at jazzio?	# PC keyboard controller
1361.12Surcom0		at jazzio?
1371.12Surcom1		at jazzio?
1381.12Surlpt0		at jazzio?
1391.12Sursn0		at jazzio?
1401.1Ssoda
1411.12Surfdc0		at jazzio?
1421.1Ssodafd*		at fdc? drive ?
1431.1Ssoda
1441.13Ssodaasc0		at jazzio?			# NCR53C9x SCSI
1451.1Ssodascsibus* 	at asc?
1461.1Ssoda
1471.13Ssodaosiop0		at jazzio? flags 0x00000	# NCR53C710 SCSI
1481.13Ssodaosiop1		at jazzio? flags 0x00000
1491.13Ssodascsibus* 	at osiop?
1501.13Ssoda
1511.13Ssoda#oosiop0 	at jazzio?			# NCR53C700 SCSI
1521.13Ssoda#oosiop1 	at jazzio?
1531.13Ssoda#scsibus* 	at oosiop?
1541.9Ssoda
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.9Ssoda#vga0		at isa?
1651.9Ssoda#pckbc0		at isa?				# PC keyboard controller
1661.1Ssodacom0		at isa? port 0x3f8 irq 4
1671.1Ssodacom1		at isa? port 0x2f8 irq 3
1681.1Ssodacom2		at isa? port 0x3e8 irq 4
1691.1Ssodacom3		at isa? port 0x2e8 irq 3
1701.4Ssodaast0		at isa? port 0x1a0 irq 3	# AST 4-port serial cards
1711.4Ssodacom*		at ast? slave ?
1721.4Ssoda
1731.4Ssoda# Joystick driver. Probe is a little strange; add only if you have one.
1741.4Ssoda#joy0		at isa? port 0x201
1751.1Ssoda
1761.2Ssoda# ISA ST506, ESDI, and IDE controllers
1771.2Ssoda# Use flags 0x01 if you want to try to use 32bits data I/O (the driver will
1781.2Ssoda# fall back to 16bits I/O if 32bits I/O are not functional).
1791.2Ssoda# Some controllers pass the initial 32bit test, but will fail later.
1801.4Ssoda# XXX - should be configured
1811.4Ssoda#wdc0		at isa? port 0x1f0 irq 14 flags 0x00
1821.4Ssoda#wdc1		at isa? port 0x170 irq 15 flags 0x00
1831.4Ssoda#wdc*		at isapnp?
1841.2Ssoda
1851.2Ssoda# IDE drives
1861.2Ssoda# Flags are used only with controllers that support DMA operations
1871.2Ssoda# and mode settings (e.g. some pciide controllers)
1881.2Ssoda# The lowest order four bits (rightmost digit) of the flags define the PIO
1891.2Ssoda# mode to use, the next set of four bits the DMA mode and the third set the
1901.2Ssoda# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
1911.2Ssoda# to use, and the last bit must be 1 for this setting to be used.
1921.2Ssoda# For DMA and UDMA, 0xf (1111) means 'disable'.
1931.2Ssoda# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
1941.2Ssoda# (0xc=1100, 0xa=1010, 0xf=1111)
1951.2Ssoda# 0x0000 means "use whatever the drive claims to support".
1961.4Ssoda# XXX - should be configured
1971.4Ssoda#wd*		at wdc? channel ? drive ? flags 0x0000
1981.2Ssoda
1991.2Ssoda# ATAPI bus support
2001.4Ssoda# XXX - should be configured
2011.4Ssoda#atapibus*	at wdc? channel ?
2021.2Ssoda
2031.4Ssoda# ISA parallel printer interfaces
2041.1Ssodalpt0		at isa? port 0x378 irq 7
2051.1Ssoda
2061.4Ssoda# ISA network interfaces
2071.4Ssoda# XXX - should be configured
2081.4Ssoda#ec0		at isa? port 0x250 iomem 0xd8000 irq 9	# 3Com 3c503 Ethernet
2091.4Ssoda#ep0		at isa? port ? irq ?		# 3C509 ethernet cards
2101.4Ssoda#ne0		at isa? port 0x280 irq 9	# NE[12]000 ethernet cards
2111.4Ssoda#ne1		at isa? port 0x300 irq 10
2121.4Ssoda#ne*		at isapnp?			# NE[12]000 PnP ethernet
2131.4Ssoda#we0		at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC Ethernet
2141.4Ssoda#we1		at isa? port 0x300 iomem 0xcc000 irq 10
2151.4Ssoda#we*		at isapnp?
2161.4Ssoda
2171.4Ssoda# XXX - should be configured
2181.4Ssoda#btl0		at isa? port 0x330 irq ? drq ?
2191.4Ssoda#scsibus*	at btl?
2201.4Ssoda
2211.4Ssoda#### Algor bus devices
2221.4Ssoda
2231.4Ssoda#algor*		at mainbus0	# Algorithmics local bus.
2241.4Ssoda
2251.4Ssoda#aclock0 	at algor?
2261.4Ssoda#com0		at algor?
2271.4Ssoda#com1		at algor?
2281.4Ssoda#lpt0		at algor?
2291.4Ssoda
2301.4Ssoda#### PCI bus devices
2311.4Ssoda
2321.9Ssodanecpb*		at mainbus0	# NEC RISCstation PCI host bridge.
2331.9Ssodapci*		at necpb?
2341.9Ssoda
2351.4Ssoda#pbcpcibr*	at mainbus0	# Algorithmics PCI bus bridge.
2361.4Ssoda#pci*		at pbcpcibr?
2371.4Ssoda
2381.4Ssoda#pcivga* 	at pci? dev ? function ?
2391.7Ssoren#siop*		at pci? dev ? function ?
2401.7Ssoren#scsibus* 	at siop?
2411.4Ssoda#de*		at pci? dev ? function ?
2421.1Ssoda
2431.9Ssodaex*		at pci? dev ? function ?	# 3Com 90x[B]
2441.9Ssodafxp*		at pci? dev ? function ?	# Intel EtherExpress PRO
2451.9Ssodale*		at pci? dev ? function ?	# PCnet-PCI
2461.9Ssodane*		at pci? dev ? function ?	# NE2000-compatible
2471.9Ssodatlp*		at pci? dev ? function ?	# DECchip 21x4x (and clones)
2481.9Ssoda#options 	TLP_MATCH_21040
2491.9Ssoda#options 	TLP_MATCH_21041
2501.9Ssoda#options 	TLP_MATCH_21140
2511.9Ssoda#options 	TLP_MATCH_21142
2521.9Ssoda
2531.9Ssoda# IDE and related devices
2541.9Ssoda# PCI IDE controllers - see pciide(4) for supported hardware.
2551.9Ssoda# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
2561.9Ssoda# how to set up DMA modes for this chip. This may work, or may cause
2571.9Ssoda# a machine hang with some controllers.
2581.9Ssodapciide*		at pci ? dev ? function ? flags 0x0000
2591.9Ssodawd*		at pciide? channel ? drive ? flags 0x0000
2601.9Ssodaatapibus*	at pciide? channel ?
2611.9Ssoda
2621.9Ssodatga*		at pci? dev ? function ?	# DEC ZLXp-E[123] Graphics
2631.9Ssodaahc*		at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
2641.9Ssodascsibus*	at ahc?
2651.9Ssoda
2661.4Ssoda#### SCSI bus devices
2671.1Ssoda
2681.1Ssodasd*		at scsibus? target ? lun ?
2691.1Ssodast*		at scsibus? target ? lun ?
2701.1Ssodacd*		at scsibus? target ? lun ?
2711.4Ssodach*		at scsibus? target ? lun ?
2721.4Ssodass*		at scsibus? target ? lun ?
2731.4Ssodauk*		at scsibus? target ? lun ?
2741.9Ssoda
2751.9Ssoda#### ATAPI bus devices
2761.9Ssoda
2771.9Ssoda# flags have the same meaning as for IDE drives.
2781.9Ssodacd*		at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2791.9Ssodasd*		at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2801.9Ssodauk*		at atapibus? drive ? flags 0x0000	# ATAPI unknown
2811.9Ssoda
2821.9Ssoda#### Workstation Console attachments
2831.9Ssoda
2841.9Ssodawsdisplay*	at vga?
2851.9Ssoda#wsdisplay*	at tga?
2861.9Ssodapckbd*		at pckbc?	# PC keyboard (kbd port)
2871.9Ssodawskbd*		at pckbd?
2881.9Ssodapms*		at pckbc?	# PS/2-style mouse (aux port)
2891.9Ssodawsmouse*	at pms?
2901.9Ssoda#pmsi*		at pckbc?	# PS/2 "Intelli"mouse (aux port)
2911.9Ssoda#wsmouse*	at pmsi?
2921.4Ssoda
2931.4Ssoda#### Pseudo devices
2941.4Ssoda
2951.4Ssoda# disk/mass storage pseudo-devices
2961.4Ssodapseudo-device	ccd		4	# concatenated/striped disk devices
2971.4Ssoda#pseudo-device	raid		4	# RAIDframe disk driver
2981.4Ssodapseudo-device	md		1	# memory disk device (ramdisk)
2991.4Ssodapseudo-device	vnd		4	# disk-like interface to files
3001.4Ssoda
3011.4Ssoda# network pseudo-devices
3021.4Ssodapseudo-device	bpfilter	8	# Berkeley packet filter
3031.4Ssodapseudo-device	ipfilter		# IP filter (firewall) and NAT
3041.4Ssodapseudo-device	loop		1	# network loopback
3051.4Ssodapseudo-device	ppp		2	# Point-to-Point Protocol
3061.4Ssodapseudo-device	sl		2	# Serial Line IP
3071.4Ssoda#pseudo-device	strip		2	# Starmode Radio IP (Metricom)
3081.4Ssodapseudo-device	tun		2	# network tunneling over tty
3091.4Ssoda#pseudo-device	gre		2	# generic L3 over IP tunnel
3101.4Ssodapseudo-device	ipip		2	# IP Encapsulation within IP (RFC 2003)
3111.4Ssodapseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
3121.4Ssoda#pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
3131.13Ssoda#pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
3141.13Ssodapseudo-device	vlan			# IEEE 802.1q encapsulation
3151.1Ssoda
3161.4Ssoda# miscellaneous pseudo-devices
3171.11Sjdolecekpseudo-device	pty			# pseudo-terminals
3181.4Ssoda#pseudo-device	tb		1	# tablet line discipline
3191.4Ssoda#pseudo-device	sequencer	1	# MIDI sequencer
3201.4Ssoda# rnd works; RND_COM does not on port arc yet.
3211.4Ssodapseudo-device	rnd			# /dev/random and in-kernel generator
3221.4Ssoda#options 	RND_COM			# use "com" randomness as well (BROKEN)
3231.1Ssoda
3241.4Ssoda# a pseudo device needed for Coda	# also needs CODA (above)
3251.4Ssoda#pseudo-device	vcoda		4	# coda minicache <-> venus comm.
3261.1Ssoda
3271.4Ssoda# mouse & keyboard multiplexor pseudo-devices
3281.4Ssoda#pseudo-device	wsmux		2
329