GENERIC revision 1.45
11.45Ssoda#	$NetBSD: GENERIC,v 1.45 2001/06/13 15:37:27 soda Exp $
21.27Ssoda#	$OpenBSD: GENERIC,v 1.29 1999/08/29 12:14:03 niklas Exp $
31.1Sjonathan#
41.27Ssoda#	GENERIC -- everything that's currently supported
51.1Sjonathan#
61.1Sjonathan
71.23Ssodainclude		"arch/arc/conf/std.arc"
81.24Ssoda
91.45Ssoda#ident		"GENERIC-$Revision: 1.45 $"
101.1Sjonathan
111.27Ssodamaxusers	32		# estimated number of users
121.27Ssoda
131.45Ssoda# Platform support
141.45Ssodaoptions 	PLATFORM_ACER_PICA_61		# Pica, NEC ImageRISCstation
151.45Ssodaoptions 	PLATFORM_DESKTECH_ARCSTATION_I	# DESKstation rPC44
161.45Ssodaoptions 	PLATFORM_DESKTECH_TYNE		# DESKstation Tyne
171.45Ssodaoptions 	PLATFORM_MICROSOFT_JAZZ		# MIPS Magnum
181.45Ssodaoptions 	PLATFORM_NEC_JC94		# NEC Express 5800/230 PCI R4K
191.45Ssodaoptions 	PLATFORM_NEC_R94		# NEC RISCstation 2200 EISA
201.45Ssodaoptions 	PLATFORM_NEC_R96      # NEC Express RISCserver, RISCserver 2200
211.45Ssodaoptions 	PLATFORM_NEC_RAX94		# NEC RISCstation 2200 PCI
221.45Ssodaoptions 	PLATFORM_NEC_RD94		# NEC RISCstation 2250
231.45Ssodaoptions 	PLATFORM_SNI_RM200PCI
241.45Ssoda
251.27Ssoda# Standard system options
261.1Sjonathan
271.23Ssodaoptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
281.27Ssodaoptions 	NTP		# NTP phase/frequency locked loop
291.1Sjonathan
301.27Ssodaoptions 	KTRACE		# system call tracing via ktrace(1)
311.1Sjonathan
321.10Slukemoptions 	SYSVMSG		# System V-like message queues
331.10Slukemoptions 	SYSVSEM		# System V-like semaphores
341.10Slukemoptions 	SYSVSHM		# System V-like memory sharing
351.27Ssoda#options 	SHMMAXPGS=1024	# 1024 pages is the default
361.27Ssoda
371.27Ssodaoptions 	LKM		# loadable kernel modules
381.27Ssoda
391.27Ssoda# Diagnostic/debugging support options
401.27Ssodaoptions 	DIAGNOSTIC	# cheap kernel consistency checks
411.27Ssoda#options 	DEBUG		# expensive debugging checks/support
421.27Ssoda#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
431.27Ssodaoptions 	DDB		# in-kernel debugger
441.27Ssoda#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
451.27Ssoda#options 	KGDB		# remote gdb
461.27Ssoda#options 	KGDBRATE=19200	# kernel gdb port rate (default 9600)
471.27Ssoda#options 	KGDBDEV="17*256+0"	# device for kernel gdb
481.27Ssoda#makeoptions	DEBUG="-g"	# compile full symbol table
491.27Ssoda
501.27Ssoda# Compatibility options
511.27Ssodaoptions 	COMPAT_10	# NetBSD 1.0,
521.27Ssodaoptions 	COMPAT_11	# NetBSD 1.1,
531.27Ssodaoptions 	COMPAT_12	# NetBSD 1.2,
541.27Ssodaoptions 	COMPAT_13	# NetBSD 1.3,
551.27Ssodaoptions 	COMPAT_14	# NetBSD 1.4,
561.27Ssodaoptions 	COMPAT_43	# and 4.3BSD
571.27Ssodaoptions 	COMPAT_386BSD_MBRPART # recognize old partition ID
581.27Ssoda
591.27Ssoda# mipsel specific
601.27Ssodaoptions 	COMPAT_ULTRIX	# Ultrix binary compatibility
611.27Ssodaoptions 	EXEC_ECOFF	# Ultrix RISC binaries are ECOFF format
621.1Sjonathan
631.27Ssoda# File systems
641.6Sthorpejfile-system 	FFS		# fast filesystem
651.27Ssodafile-system 	EXT2FS		# second extended file system (linux)
661.27Ssodafile-system 	LFS		# log-structured file system
671.27Ssodafile-system 	MFS		# memory file system
681.27Ssodafile-system 	NTFS		# Windows/NT file system (experimental)
691.23Ssodafile-system 	CD9660		# ISO 9660 + Rock Ridge file system
701.27Ssodafile-system 	MSDOSFS		# MS-DOS file system
711.27Ssodafile-system 	NFS		# Network File System client
721.27Ssodafile-system 	FDESC		# /dev/fd
731.27Ssodafile-system 	KERNFS		# /kern
741.27Ssodafile-system 	NULLFS		# loopback file system
751.27Ssodafile-system 	OVERLAY		# overlay file system
761.27Ssodafile-system 	PORTAL		# portal filesystem (still experimental)
771.27Ssodafile-system 	PROCFS		# /proc
781.27Ssodafile-system 	UMAPFS		# NULLFS + uid and gid remapping
791.27Ssodafile-system 	UNION		# union file system
801.27Ssoda#file-system	CODA		# Coda File System; also needs vcoda (below)
811.6Sthorpej
821.27Ssoda# File system options
831.10Slukemoptions 	QUOTA		# FFS quotas
841.27Ssoda#options 	FFS_EI		# FFS Endian Independent support
851.34Sfvdloptions 	SOFTDEP		# FFS soft updates support.
861.27Ssodaoptions 	NFSSERVER	# Network File System server
871.27Ssoda#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
881.27Ssoda				# immutable) behave as system flags.
891.20Sitojun
901.1Sjonathan# Networking options
911.23Ssoda#options 	GATEWAY		# IP packet forwarding
921.27Ssodaoptions 	INET		# IP + ICMP + TCP + UDP
931.27Ssodaoptions 	INET6		# IPV6
941.20Sitojun#options 	IPSEC		# IP security
951.20Sitojun#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
961.20Sitojun#options 	IPSEC_DEBUG	# debug for IP security
971.27Ssoda#options 	MROUTING	# IP multicast routing
981.27Ssodaoptions 	NS		# XNS
991.27Ssoda#options 	NSIP		# XNS tunneling over IP
1001.27Ssodaoptions 	ISO,TPIP	# OSI networking
1011.36Ssommerfe#options 	EON		# OSI tunneling over IP
1021.27Ssodaoptions 	CCITT,LLC,HDLC	# X.25
1031.27Ssodaoptions 	NETATALK	# AppleTalk networking protocols
1041.27Ssodaoptions 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1051.27Ssodaoptions 	PPP_DEFLATE	# Deflate compression support for PPP
1061.27Ssodaoptions 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1071.27Ssodaoptions 	PFIL_HOOKS	# pfil(9) packet filter hooks
1081.27Ssodaoptions 	IPFILTER_LOG	# ipmon(8) log support
1091.27Ssoda
1101.27Ssoda# Compatibility with 4.2BSD implementation of TCP/IP.  Not recommended.
1111.27Ssoda#options 	TCP_COMPAT_42
1121.27Ssoda
1131.27Ssoda# These options enable verbose messages for several subsystems.
1141.27Ssoda# Warning, these may compile large string tables into the kernel!
1151.27Ssoda#options 	EISAVERBOSE	# verbose EISA device autoconfig messages
1161.31Ssodaoptions 	PCIVERBOSE	# verbose PCI device autoconfig messages
1171.28Scgd#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1181.27Ssodaoptions 	SCSIVERBOSE	# human readable SCSI error messages
1191.37Sur
1201.37Sur# wscons terminal emulation
1211.37Suroptions 	WSEMUL_VT100	# VT100 emulation
1221.23Ssoda
1231.25Ssoda# Kernel root file system and dump configuration.
1241.27Ssodaoptions 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
1251.27Ssodaconfig		netbsd	root on ? type ?
1261.27Ssoda#config		netbsd	root on sd0a type ffs
1271.27Ssoda#config		netbsd	root on ? type nfs
1281.1Sjonathan
1291.23Ssoda#
1301.27Ssoda# Device configuration
1311.23Ssoda#
1321.27Ssoda
1331.1Sjonathanmainbus0	at root
1341.1Sjonathancpu*		at mainbus0
1351.1Sjonathan
1361.41Sur#### Jazz-Internal bus devices
1371.23Ssoda
1381.45Ssoda# PLATFORM_ACER_PICA_61
1391.45Ssoda# PLATFORM_MICROSOFT_JAZZ
1401.45Ssoda# PLATFORM_NEC_JC94
1411.45Ssoda# PLATFORM_NEC_R94
1421.45Ssoda# PLATFORM_NEC_R96
1431.45Ssoda# PLATFORM_NEC_RAX94
1441.45Ssoda# PLATFORM_NEC_RD94
1451.45Ssodajazzio*		at mainbus0	# Jazz-Internal bus host bridge.
1461.45Ssoda
1471.45Ssodatimer0		at jazzio?
1481.45Ssodamcclock0 	at jazzio?
1491.41Sur#pc0		at jazzio?
1501.41Sur#opms0		at jazzio?
1511.41Survga0		at jazzio?	# Jazz localbus VGA
1521.41Surpckbc0		at jazzio?	# PC keyboard controller
1531.41Surcom0		at jazzio?
1541.41Surcom1		at jazzio?
1551.41Surlpt0		at jazzio?
1561.41Sursn0		at jazzio?
1571.1Sjonathan
1581.41Surfdc0		at jazzio?
1591.1Sjonathanfd*		at fdc? drive ?
1601.1Sjonathan
1611.42Stsutsuiasc0		at jazzio?			# NCR53C9x SCSI
1621.1Sjonathanscsibus* 	at asc?
1631.1Sjonathan
1641.42Stsutsuiosiop0		at jazzio? flags 0x00000	# NCR53C710 SCSI
1651.42Stsutsuiosiop1		at jazzio? flags 0x00000
1661.42Stsutsuiscsibus* 	at osiop?
1671.42Stsutsui
1681.42Stsutsui#oosiop0 	at jazzio?			# NCR53C700 SCSI
1691.42Stsutsui#oosiop1 	at jazzio?
1701.42Stsutsui#scsibus* 	at oosiop?
1711.33Ssoda
1721.27Ssoda#### ISA bus devices
1731.23Ssoda
1741.45Ssoda# PLATFORM_ACER_PICA_61
1751.45Ssoda# PLATFORM_MICROSOFT_JAZZ
1761.45Ssoda# PLATFORM_NEC_R94
1771.45Ssoda# PLATFORM_NEC_R96
1781.45Ssodajazzisabr*	at mainbus0	# Jazz-(E)ISA bus bridge.
1791.45Ssodaisa*		at jazzisabr?
1801.45Ssoda
1811.45Ssoda# PLATFORM_DESKTECH_ARCSTATION_I
1821.45Ssodaarcsisabr*	at mainbus0	# DESKstation rPC44 ISA host bridge.
1831.45Ssodaisa*		at arcsisabr?
1841.45Ssoda
1851.45Ssoda# PLATFORM_DESKTECH_TYNE
1861.45Ssodatyneisabr*	at mainbus0	# DESKstation Tyne ISA host bridge.
1871.45Ssodaisa*		at tyneisabr?
1881.45Ssoda
1891.27Ssoda#isadma0 	at isa?
1901.23Ssoda
1911.45Ssodatimer0		at isa? port 0x40 irq 0
1921.45Ssodamcclock0 	at isa? port 0x70
1931.23Ssoda
1941.45Ssodapc0		at isa? irq 1			# generic PC console device
1951.45Ssodaopms0		at isa? irq 12			# PS/2 auxiliary port mouse
1961.33Ssoda#vga0		at isa?
1971.33Ssoda#pckbc0		at isa?				# PC keyboard controller
1981.23Ssodacom0		at isa? port 0x3f8 irq 4
1991.23Ssodacom1		at isa? port 0x2f8 irq 3
2001.23Ssodacom2		at isa? port 0x3e8 irq 4
2011.23Ssodacom3		at isa? port 0x2e8 irq 3
2021.27Ssodaast0		at isa? port 0x1a0 irq 3	# AST 4-port serial cards
2031.27Ssodacom*		at ast? slave ?
2041.27Ssoda
2051.27Ssoda# Joystick driver. Probe is a little strange; add only if you have one.
2061.27Ssoda#joy0		at isa? port 0x201
2071.23Ssoda
2081.23Ssoda# ISA ST506, ESDI, and IDE controllers
2091.23Ssoda# Use flags 0x01 if you want to try to use 32bits data I/O (the driver will
2101.23Ssoda# fall back to 16bits I/O if 32bits I/O are not functional).
2111.23Ssoda# Some controllers pass the initial 32bit test, but will fail later.
2121.23Ssoda# XXX - should be configured
2131.27Ssoda#wdc0		at isa? port 0x1f0 irq 14 flags 0x00
2141.27Ssoda#wdc1		at isa? port 0x170 irq 15 flags 0x00
2151.27Ssoda#wdc*		at isapnp?
2161.23Ssoda
2171.23Ssoda# IDE drives
2181.23Ssoda# Flags are used only with controllers that support DMA operations
2191.23Ssoda# and mode settings (e.g. some pciide controllers)
2201.23Ssoda# The lowest order four bits (rightmost digit) of the flags define the PIO
2211.23Ssoda# mode to use, the next set of four bits the DMA mode and the third set the
2221.23Ssoda# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
2231.23Ssoda# to use, and the last bit must be 1 for this setting to be used.
2241.23Ssoda# For DMA and UDMA, 0xf (1111) means 'disable'.
2251.23Ssoda# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
2261.23Ssoda# (0xc=1100, 0xa=1010, 0xf=1111)
2271.23Ssoda# 0x0000 means "use whatever the drive claims to support".
2281.23Ssoda# XXX - should be configured
2291.27Ssoda#wd*		at wdc? channel ? drive ? flags 0x0000
2301.23Ssoda
2311.23Ssoda# ATAPI bus support
2321.23Ssoda# XXX - should be configured
2331.27Ssoda#atapibus*	at wdc? channel ?
2341.23Ssoda
2351.27Ssoda# ISA parallel printer interfaces
2361.27Ssodalpt0		at isa? port 0x378 irq 7
2371.27Ssoda
2381.27Ssoda# ISA network interfaces
2391.27Ssoda# XXX - should be configured
2401.27Ssoda#ec0		at isa? port 0x250 iomem 0xd8000 irq 9	# 3Com 3c503 Ethernet
2411.27Ssoda#ep0		at isa? port ? irq ?		# 3C509 ethernet cards
2421.27Ssoda#ne0		at isa? port 0x280 irq 9	# NE[12]000 ethernet cards
2431.27Ssoda#ne1		at isa? port 0x300 irq 10
2441.27Ssoda#ne*		at isapnp?			# NE[12]000 PnP ethernet
2451.27Ssoda#we0		at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC Ethernet
2461.27Ssoda#we1		at isa? port 0x300 iomem 0xcc000 irq 10
2471.27Ssoda#we*		at isapnp?
2481.23Ssoda
2491.27Ssoda# XXX - should be configured
2501.27Ssoda#btl0		at isa? port 0x330 irq ? drq ?
2511.27Ssoda#scsibus*	at btl?
2521.23Ssoda
2531.27Ssoda#### PCI bus devices
2541.23Ssoda
2551.45Ssoda# PLATFORM_NEC_JC94
2561.45Ssoda# PLATFORM_NEC_RAX94
2571.45Ssoda# PLATFORM_NEC_RD94
2581.31Ssodanecpb*		at mainbus0	# NEC RISCstation PCI host bridge.
2591.31Ssodapci*		at necpb?
2601.23Ssoda
2611.27Ssoda#pcivga* 	at pci? dev ? function ?
2621.43Stsutsuitga*		at pci? dev ? function ?	# DEC ZLXp-E[123] Graphics
2631.43Stsutsui
2641.43Stsutsuiahc*		at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
2651.43Stsutsuiscsibus*	at ahc?
2661.44Stsutsui
2671.44Stsutsuiiha*		at pci? dev ? function ?	# Initio INIC-940/950 SCSI
2681.44Stsutsuiscsibus*	at iha?
2691.43Stsutsui
2701.43Stsutsui#siop*		at pci? dev ? function ?	# NCR/Symbios 53c8xx SCSI
2711.30Ssoren#scsibus* 	at siop?
2721.43Stsutsui
2731.27Ssoda#de*		at pci? dev ? function ?
2741.31Ssodaex*		at pci? dev ? function ?	# 3Com 90x[B]
2751.31Ssodafxp*		at pci? dev ? function ?	# Intel EtherExpress PRO
2761.31Ssodale*		at pci? dev ? function ?	# PCnet-PCI
2771.31Ssodane*		at pci? dev ? function ?	# NE2000-compatible
2781.31Ssodatlp*		at pci? dev ? function ?	# DECchip 21x4x (and clones)
2791.31Ssoda#options 	TLP_MATCH_21040
2801.31Ssoda#options 	TLP_MATCH_21041
2811.31Ssoda#options 	TLP_MATCH_21140
2821.31Ssoda#options 	TLP_MATCH_21142
2831.31Ssoda
2841.31Ssoda# IDE and related devices
2851.31Ssoda# PCI IDE controllers - see pciide(4) for supported hardware.
2861.31Ssoda# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
2871.31Ssoda# how to set up DMA modes for this chip. This may work, or may cause
2881.31Ssoda# a machine hang with some controllers.
2891.31Ssodapciide*		at pci ? dev ? function ? flags 0x0000
2901.31Ssodawd*		at pciide? channel ? drive ? flags 0x0000
2911.31Ssodaatapibus*	at pciide? channel ?
2921.31Ssoda
2931.31Ssoda#### MII/PHY support
2941.31Ssoda
2951.31Ssodaexphy*		at mii? phy ?		# 3Com internal PHYs
2961.31Ssodaicsphy*		at mii? phy ?		# Integrated Circuit Systems ICS1890
2971.31Ssodainphy*		at mii? phy ?		# Intel 82555 PHYs
2981.31Ssodaiophy*		at mii? phy ?		# Intel 82553 PHYs
2991.31Ssodalxtphy*		at mii? phy ?		# Level One LXT-970 PHYs
3001.31Ssodansphy*		at mii? phy ?		# NS83840 PHYs
3011.31Ssodansphyter*	at mii? phy ?		# NS83843 PHYs
3021.31Ssodaqsphy*		at mii? phy ?		# Quality Semiconductor QS6612 PHYs
3031.31Ssodasqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
3041.31Ssodatlphy*		at mii? phy ?		# ThunderLAN PHYs
3051.31Ssodatqphy*		at mii? phy ?		# TDK Semiconductor PHYs
3061.31Ssodaukphy*		at mii? phy ?		# generic unknown PHYs
3071.31Ssoda
3081.27Ssoda#### SCSI bus devices
3091.23Ssoda
3101.1Sjonathansd*		at scsibus? target ? lun ?
3111.1Sjonathanst*		at scsibus? target ? lun ?
3121.1Sjonathancd*		at scsibus? target ? lun ?
3131.23Ssodach*		at scsibus? target ? lun ?
3141.23Ssodass*		at scsibus? target ? lun ?
3151.23Ssodauk*		at scsibus? target ? lun ?
3161.31Ssoda
3171.31Ssoda#### ATAPI bus devices
3181.31Ssoda
3191.31Ssoda# flags have the same meaning as for IDE drives.
3201.31Ssodacd*		at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
3211.31Ssodasd*		at atapibus? drive ? flags 0x0000	# ATAPI disk drives
3221.31Ssodauk*		at atapibus? drive ? flags 0x0000	# ATAPI unknown
3231.33Ssoda
3241.33Ssoda#### Workstation Console attachments
3251.33Ssoda
3261.33Ssodawsdisplay*	at vga?
3271.33Ssodawsdisplay*	at tga?
3281.33Ssodapckbd*		at pckbc?	# PC keyboard (kbd port)
3291.33Ssodawskbd*		at pckbd?
3301.33Ssodapms*		at pckbc?	# PS/2-style mouse (aux port)
3311.33Ssodawsmouse*	at pms?
3321.33Ssoda#pmsi*		at pckbc?	# PS/2 "Intelli"mouse (aux port)
3331.33Ssoda#wsmouse*	at pmsi?
3341.23Ssoda
3351.27Ssoda#### Pseudo devices
3361.1Sjonathan
3371.27Ssoda# disk/mass storage pseudo-devices
3381.27Ssodapseudo-device	ccd		4	# concatenated/striped disk devices
3391.27Ssoda#pseudo-device	raid		4	# RAIDframe disk driver
3401.27Ssodapseudo-device	md		1	# memory disk device (ramdisk)
3411.27Ssodapseudo-device	vnd		4	# disk-like interface to files
3421.27Ssoda
3431.27Ssoda# network pseudo-devices
3441.27Ssodapseudo-device	bpfilter	8	# Berkeley packet filter
3451.27Ssodapseudo-device	ipfilter		# IP filter (firewall) and NAT
3461.27Ssodapseudo-device	loop		1	# network loopback
3471.27Ssodapseudo-device	ppp		2	# Point-to-Point Protocol
3481.27Ssodapseudo-device	sl		2	# Serial Line IP
3491.27Ssoda#pseudo-device	strip		2	# Starmode Radio IP (Metricom)
3501.27Ssodapseudo-device	tun		2	# network tunneling over tty
3511.23Ssoda#pseudo-device	gre		2	# generic L3 over IP tunnel
3521.27Ssodapseudo-device	ipip		2	# IP Encapsulation within IP (RFC 2003)
3531.20Sitojunpseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
3541.20Sitojun#pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
3551.29Sitojun#pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
3561.40Sbouyerpseudo-device	vlan			# IEEE 802.1q encapsulation
3571.23Ssoda
3581.27Ssoda# miscellaneous pseudo-devices
3591.39Sjdolecekpseudo-device	pty			# pseudo-terminals
3601.27Ssodapseudo-device	tb		1	# tablet line discipline
3611.27Ssoda#pseudo-device	sequencer	1	# MIDI sequencer
3621.27Ssoda# rnd works; RND_COM does not on port arc yet.
3631.27Ssodapseudo-device	rnd			# /dev/random and in-kernel generator
3641.27Ssoda#options 	RND_COM			# use "com" randomness as well (BROKEN)
3651.27Ssoda
3661.27Ssoda# a pseudo device needed for Coda	# also needs CODA (above)
3671.27Ssoda#pseudo-device	vcoda		4	# coda minicache <-> venus comm.
3681.27Ssoda
3691.27Ssoda# mouse & keyboard multiplexor pseudo-devices
3701.27Ssoda#pseudo-device	wsmux		2
371