GENERIC revision 1.53
11.53Smanu# $NetBSD: GENERIC,v 1.53 2004/09/04 23:29:56 manu Exp $
21.1Smatt#
31.11Sgmcgarry# GENERIC machine description file
41.11Sgmcgarry# 
51.11Sgmcgarry# This machine description file is used to generate the default NetBSD
61.11Sgmcgarry# kernel.  The generic kernel does not include all options, subsystems
71.11Sgmcgarry# and device drivers, but should be useful for most applications.
81.1Smatt#
91.11Sgmcgarry# The machine description file can be customised for your specific
101.11Sgmcgarry# machine to reduce the kernel size and improve its performance.
111.11Sgmcgarry#
121.11Sgmcgarry# For further information on compiling NetBSD kernels, see the config(8)
131.11Sgmcgarry# man page.
141.11Sgmcgarry#
151.11Sgmcgarry# For further information on hardware support for this architecture, see
161.11Sgmcgarry# the intro(4) man page.  For further information about kernel options
171.11Sgmcgarry# for this architecture, see the options(4) man page.  For an explanation
181.11Sgmcgarry# of each device driver in this file see the section 4 man page for the
191.11Sgmcgarry# device.
201.1Smatt
211.11Sgmcgarryinclude		"arch/netwinder/conf/std.netwinder"
221.23Satatat
231.23Satatatoptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
241.1Smatt
251.1Smatt# estimated number of users
261.1Smatt
271.1Smattmaxusers	32
281.1Smatt
291.1Smatt# Standard system options
301.1Smatt
311.1Smattoptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
321.1Smatt#options 	NTP		# NTP phase/frequency locked loop
331.29Sjunyoung
341.30Swiz# Enable experimental buffer queue strategy for better responsiveness under 
351.29Sjunyoung# high disk I/O load. Use it with caution - it's not proven to be stable yet.
361.29Sjunyoung#options 	NEW_BUFQ_STRATEGY
371.1Smatt
381.1Smatt# CPU options
391.1Smatt
401.1Smatt# For StrongARM systems
411.1Smattoptions 	CPU_SA110	# Support the SA110 core
421.36Suwemakeoptions	CPUFLAGS="-march=armv4 -mtune=strongarm"
431.1Smatt
441.1Smatt# FPA options
451.1Smatt
461.1Smatt#options 	ARMFPE		# ARM Ltd FPE
471.1Smatt
481.35Suwe# Default console is wscons, if igsfb(4) and pckbc(4) are configured,
491.35Suwe# or com(4) otherwise.  You can force a serial console with these options
501.35Suwe#options 	CONSDEVNAME="\"com\"",CONCOMADDR=0x3f8,CONSPEED=115200
511.35Suwe
521.35Suwe
531.1Smatt# File systems
541.1Smatt
551.1Smattfile-system	FFS		# UFS
561.1Smatt#file-system	LFS		# log-structured file system
571.1Smattfile-system	MFS		# memory file system
581.1Smattfile-system	NFS		# Network file system
591.1Smatt#file-system 	ADOSFS		# AmigaDOS-compatible file system
601.1Smattfile-system 	EXT2FS		# second extended file system (linux)
611.1Smatt#file-system	CD9660		# ISO 9660 + Rock Ridge file system
621.1Smattfile-system	MSDOSFS		# MS-DOS file system
631.18Sthorpejfile-system	FDESC		# /dev/fd
641.18Sthorpejfile-system	KERNFS		# /kern
651.1Smattfile-system	NULLFS		# loopback file system
661.1Smatt#file-system	PORTAL		# portal filesystem (still experimental)
671.18Sthorpejfile-system	PROCFS		# /proc
681.1Smatt#file-system	UMAPFS		# NULLFS + uid and gid remapping
691.1Smatt#file-system	UNION		# union file system
701.1Smatt
711.1Smatt# File system options
721.1Smatt#options 	QUOTA		# UFS quotas
731.1Smatt#options 	FFS_EI		# FFS Endian Independant support
741.1Smattoptions 	NFSSERVER
751.3Smattoptions 	SOFTDEP
761.1Smatt
771.1Smatt# Networking options
781.1Smatt
791.1Smatt#options 	GATEWAY		# packet forwarding
801.1Smattoptions 	INET		# IP + ICMP + TCP + UDP
811.1Smattoptions 	INET6		# IPV6
821.1Smatt#options 	IPSEC		# IP security
831.1Smatt#options 	IPSEC_ESP	# IP security (encryption part; define w/ IPSEC)
841.1Smatt#options 	IPSEC_DEBUG	# debug for IP security
851.1Smatt#options 	MROUTING	# IP multicast routing
861.53Smanu#options 	PIM		# Protocol Independent Multicast
871.1Smatt#options 	NS		# XNS
881.1Smatt#options 	NSIP		# XNS tunneling over IP
891.1Smatt#options 	ISO,TPIP	# OSI
901.1Smatt#options 	EON		# OSI tunneling over IP
911.1Smatt#options 	CCITT,LLC,HDLC	# X.25
921.1Smatt#options 	NETATALK	# AppleTalk networking
931.1Smatt#options 	PFIL_HOOKS	# pfil(9) packet filter hooks
941.1Smatt#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
951.1Smatt#options 	PPP_DEFLATE	# Deflate compression support for PPP
961.1Smatt#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
971.5Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
981.1Smatt
991.49Sabs#options 	ALTQ		# Manipulate network interfaces' output queues
1001.49Sabs#options 	ALTQ_BLUE	# Stochastic Fair Blue
1011.49Sabs#options 	ALTQ_CBQ	# Class-Based Queueing
1021.49Sabs#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1031.49Sabs#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1041.49Sabs#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1051.49Sabs#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1061.49Sabs#options 	ALTQ_LOCALQ	# Local queueing discipline
1071.49Sabs#options 	ALTQ_PRIQ	# Priority Queueing
1081.49Sabs#options 	ALTQ_RED	# Random Early Detection
1091.49Sabs#options 	ALTQ_RIO	# RED with IN/OUT
1101.49Sabs#options 	ALTQ_WFQ	# Weighted Fair Queueing
1111.49Sabs
1121.1Smattoptions 	NFS_BOOT_BOOTP
1131.1Smattoptions 	NFS_BOOT_DHCP
1141.1Smatt#options 	NFS_BOOT_BOOTPARAM
1151.1Smatt
1161.1Smatt# Compatibility options
1171.1Smatt
1181.1Smatt#options 	COMPAT_43	# 4.3BSD compatibility.
1191.37Schrisoptions 	COMPAT_16	# NetBSD 1.6 compatibility.
1201.2Smattoptions 	COMPAT_15	# NetBSD 1.5 compatibility.
1211.1Smattoptions 	COMPAT_14	# NetBSD 1.4 compatibility.
1221.1Smatt#options 	COMPAT_13	# NetBSD 1.3 compatibility.
1231.1Smatt#options 	COMPAT_12	# NetBSD 1.2 compatibility.
1241.1Smatt#options 	COMPAT_11	# NetBSD 1.1 compatibility.
1251.1Smatt#options 	COMPAT_10	# NetBSD 1.0 compatibility.
1261.1Smatt#options 	COMPAT_09	# NetBSD 0.9 compatibility.
1271.5Sabs#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
1281.1Smatt
1291.19Sthorpejoptions 	COMPAT_LINUX	# binary compatibility with Linux
1301.19Sthorpej
1311.1Smatt# Shared memory options
1321.1Smatt
1331.1Smattoptions 	SYSVMSG		# System V-like message queues
1341.1Smattoptions 	SYSVSEM		# System V-like semaphores
1351.9Slukem#options 	SEMMNI=10	# number of semaphore identifiers
1361.9Slukem#options 	SEMMNS=60	# number of semaphores in system
1371.9Slukem#options 	SEMUME=10	# max number of undo entries per process
1381.9Slukem#options 	SEMMNU=30	# number of undo structures in system
1391.1Smattoptions 	SYSVSHM		# System V-like memory sharing
1401.1Smattoptions 	SHMMAXPGS=1024	# 1024 pages is the default
1411.50Sbouyeroptions 	P1003_1B_SEMAPHORE # p1003.1b semaphore support
1421.1Smatt
1431.1Smatt# Device options
1441.1Smatt
1451.2Smatt#options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
1461.16Slukem#options 	MEMORY_DISK_ROOT_SIZE=3400	# Size in blocks
1471.1Smatt#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root
1481.1Smatt
1491.1Smatt# Miscellaneous kernel options
1501.1Smattoptions 	KTRACE		# system call tracing, a la ktrace(1)
1511.27Sprovosoptions 	SYSTRACE	# system call vetting via systrace(1)
1521.1Smattoptions 	IRQSTATS	# manage IRQ statistics
1531.1Smatt#options 	LKM		# loadable kernel modules
1541.1Smatt#options 	KMEMSTATS	# kernel memory statistics
1551.1Smatt#options 	SCSIVERBOSE	# Verbose SCSI errors
1561.3Smattoptions 	PCIVERBOSE	# Verbose PCI descriptions
1571.3Smattoptions 	MIIVERBOSE	# Verbose MII autoconfuration messages
1581.2Smatt#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1591.1Smatt#options 	DDB_KEYCODE=0x40
1601.25Slukemoptions 	USERCONF	# userconf(4) support
1611.13Sjdolecek#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
1621.51Satatatoptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
1631.1Smatt
1641.1Smatt# Development and Debugging options
1651.1Smatt
1661.1Smatt#options 	ARM700BUGTRACK	# track the ARM700 swi bug
1671.1Smatt#options 	PORTMASTER	# Enable PortMaster only options
1681.1Smattoptions 	DIAGNOSTIC	# internally consistency checks
1691.9Slukem#options 	PMAP_DEBUG	# Enable pmap_debug_level code
1701.1Smatt#options 	IPKDB		# remote kernel debugging
1711.1Smattoptions 	DDB		# in-kernel debugger
1721.1Smattoptions 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
1731.17Sthorpejmakeoptions	DEBUG="-g"	# compile full symbol table
1741.52Sthorpejoptions 	SYMTAB_SPACE=280000
1751.1Smatt
1761.1Smattconfig		netbsd	root on ? type ?
1771.1Smatt
1781.1Smatt# The main bus device
1791.2Smattmainbus0	at root
1801.1Smatt
1811.45Swiz# The boot CPU
1821.2Smattcpu0		at mainbus?
1831.1Smatt
1841.1Smatt# Core logic
1851.1Smattfootbridge0	at mainbus?
1861.1Smatt
1871.1Smatt# footbridge uart
1881.2Smatt#fcom0		at footbridge?
1891.1Smatt
1901.1Smatt# system clock via footbridge
1911.2Smatt#clock*		at footbridge?
1921.1Smatt
1931.1Smatt# time-of-day device via footbridge
1941.1Smatttodclock0	at footbridge?
1951.1Smatt
1961.1Smatt# PCI bus via footbridge
1971.2Smattpci0		at footbridge?			# PCI bus
1981.1Smatt
1991.1Smatt# ISA bus support
2001.2Smattpcib*		at pci? dev ? function ?	# ISA bridge
2011.2Smattisa*		at pcib?
2021.1Smatt
2031.1Smatt
2041.1Smatt# PCI IDE Controllers and Devices
2051.1Smatt# PCI IDE controllers - see pciide(4) for supported hardware.
2061.1Smatt# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
2071.1Smatt# how to set up DMA modes for this chip. This may work, or may cause
2081.1Smatt# a machine hang with some controllers.
2091.42Sthorpej#pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
2101.39Sbouyerslide*  	at pci? dev ? function ?	# Symphony Labs IDE controllers
2111.38Sbouyer
2121.40Slukem# ATA (IDE) bus support
2131.40Slukematabus* at ata?
2141.1Smatt
2151.1Smatt# IDE drives
2161.1Smatt# Flags are used only with controllers that support DMA operations
2171.1Smatt# and mode settings (e.g. some pciide controllers)
2181.1Smatt# The lowest order four bits (rightmost digit) of the flags define the PIO
2191.1Smatt# mode to use, the next set of four bits the DMA mode and the third set the
2201.1Smatt# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
2211.1Smatt# to use, and the last bit must be 1 for this setting to be used.
2221.1Smatt# For DMA and UDMA, 0xf (1111) means 'disable'.
2231.1Smatt# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
2241.1Smatt# (0xc=1100, 0xa=1010, 0xf=1111)
2251.1Smatt# 0x0000 means "use whatever the drive claims to support".
2261.38Sbouyerwd*		at atabus? drive ? flags 0x0000	# the drives themselves
2271.1Smatt
2281.1Smatt# PCI network interfaces
2291.2Smattne*		at pci? dev ? function ?	# NE2000 compat ethernet
2301.2Smatttlp*		at pci? dev ? function ?	# DECchip 21x4x (and clones) Ethernet
2311.1Smattoptions 	TLP_MATCH_21142
2321.1Smatt
2331.1Smatt# MII/PHY support
2341.14Swizicsphy*		at mii? phy ?			# ISC-189x PHYs
2351.2Smattukphy*		at mii? phy ?			# generic unknown PHYs
2361.1Smatt
2371.26Suwe
2381.1Smatt# WSCONS Support
2391.1Smattoptions 	WSEMUL_VT100		# VT100 / VT220 emulation
2401.26Suwe# different kernel output - see dev/wscons/wsdisplayvar.h
2411.1Smattoptions 	WS_KERNEL_FG=WSCOL_GREEN
2421.26Suwe#options 	WS_KERNEL_BG=WSCOL_BLACK
2431.26Suweoptions 	WS_KERNEL_COLATTR=WSATTR_HILIT
2441.26Suwe# compatibility to other console drivers
2451.26Suweoptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
2461.26Suweoptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
2471.26Suweoptions 	WSDISPLAY_COMPAT_USL		# VT handling
2481.26Suweoptions 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
2491.26Suwe
2501.26Suweoptions 	FONT_GALLANT12x22		# Sun PROM font look-alike
2511.26Suwe
2521.2Smattpckbc0		at isa?
2531.1Smattpckbd*		at pckbc?
2541.1Smattwskbd*		at pckbd? console ?
2551.1Smattpms*		at pckbc?
2561.1Smattwsmouse*	at pms? mux 0
2571.1Smatt
2581.33Suweigsfb*		at pci? dev ? function ?
2591.33Suwewsdisplay*	at igsfb? console ?
2601.26Suwe
2611.1Smatt
2621.1Smatt# ISA Devices
2631.1Smattcom0		at isa? port 0x3f8 irq 4
2641.2Smattlpt0		at isa? port 0x378 irq 7
2651.1Smatt
2661.1Smatt
2671.1Smatt# Audio Devices
2681.1Smatt
2691.2Smatt# ISA audio devices
2701.2Smattsb0		at isa? port 0x220 irq 3 drq 1 drq2 7	# SoundBlaster
2711.2Smattopl*		at sb?
2721.2Smattmpu*		at sb?
2731.2Smattmidi*		at sb?					# SB1 MIDI port
2741.1Smatt
2751.1Smatt# Audio support
2761.2Smattaudio*		at sb?
2771.1Smatt
2781.1Smatt# Pseudo-Devices
2791.1Smatt
2801.43Sjonathanpseudo-device 	crypto		# opencrypto framework
2811.43Sjonathan
2821.1Smatt# disk/mass storage pseudo-devices
2831.2Smatt#pseudo-device	md		1	# memory disk device (ramdisk)
2841.1Smattpseudo-device	vnd		4	# disk-like interface to files
2851.28Selric#pseudo-device	cgd		4	# cryptographic disk devices
2861.1Smatt
2871.1Smatt# network pseudo-devices
2881.1Smattpseudo-device	bpfilter	4	# Berkeley packet filter
2891.12Smartinpseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
2901.10Satatatpseudo-device	bridge			# simple inter-network bridging
2911.31Sperseant#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
2921.1Smattpseudo-device	loop			# network loopback
2931.1Smatt
2941.1Smatt# miscellaneous pseudo-devices
2951.1Smattpseudo-device	pty			# pseudo-terminals
2961.1Smattpseudo-device	rnd			# /dev/random and in-kernel generator
2971.24Slukempseudo-device	clockctl		# user control of clock subsystem
2981.32Sraggepseudo-device	ksyms			# /dev/ksyms
2991.48Sitojun#pseudo-device	pf			# PF packet filter
3001.48Sitojun#pseudo-device	pflog			# PF log if
3011.26Suwe
3021.26Suwe# wscons pseudo-devices
3031.26Suwepseudo-device	wsmux			# mouse & keyboard multiplexor
3041.26Suwe#pseudo-device	wsfont
305