GENERIC revision 1.83
1# $NetBSD: GENERIC,v 1.83 2004/10/23 14:00:53 augustss Exp $
2#
3# GENERIC machine description file
4# 
5# This machine description file is used to generate the default NetBSD
6# kernel.  The generic kernel does not include all options, subsystems
7# and device drivers, but should be useful for most applications.
8#
9# The machine description file can be customised for your specific
10# machine to reduce the kernel size and improve its performance.
11#
12# For further information on compiling NetBSD kernels, see the config(8)
13# man page.
14#
15# For further information on hardware support for this architecture, see
16# the intro(4) man page.  For further information about kernel options
17# for this architecture, see the options(4) man page.  For an explanation
18# of each device driver in this file see the section 4 man page for the
19# device.
20
21include 	"arch/prep/conf/std.prep"
22
23options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
24
25makeoptions	COPTS="-Os -mmultiple"	# -Os -mmultiple to reduce size.
26
27#ident		"GENERIC-$Revision: 1.83 $"
28
29maxusers	32
30
31# Platform support
32options 	PLATFORM_IBM_6015		# IBM RS/6000 40P
33options 	PLATFORM_IBM_6040		# IBM ThinkPad 820
34options 	PLATFORM_IBM_6050		# IBM Personal Power Series 830
35options 	PLATFORM_IBM_7248		# IBM RS/6000 7248-100/120/133
36options 	PLATFORM_IBM_7043_140		# IBM RS/6000 43P 7043-140
37options 	PLATFORM_MOTOROLA_ULMB60XA	# Motorola ULMB60xA (?)
38
39options 	OPENPIC				# OpenPIC support (7043-140)
40
41# Standard system options
42
43options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
44options 	NTP		# NTP phase/frequency locked loop
45
46options 	KTRACE		# system call tracing via ktrace(1)
47options 	SYSTRACE	# system call vetting via systrace(1)
48
49options 	SYSVMSG		# System V-like message queues
50options 	SYSVSEM		# System V-like semaphores
51#options 	SEMMNI=10	# number of semaphore identifiers
52#options 	SEMMNS=60	# number of semaphores in system
53#options 	SEMUME=10	# max number of undo entries per process
54#options 	SEMMNU=30	# number of undo structures in system
55options 	SYSVSHM		# System V-like memory sharing
56#options 	SHMMAXPGS=1024	# 1024 pages is the default
57options 	P1003_1B_SEMAPHORE # p1003.1b semaphore support
58
59options 	LKM		# loadable kernel modules
60
61options 	USERCONF	# userconf(4) support
62#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
63options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
64
65# Enable experimental buffer queue strategy for better responsiveness under 
66# high disk I/O load. Use it with caution - it's not proven to be stable yet.
67#options 	NEW_BUFQ_STRATEGY
68
69# Diagnostic/debugging support options
70#options 	DIAGNOSTIC	# cheap kernel consistency checks
71#options 	DEBUG		# expensive debugging checks/support
72#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
73options 	DDB		# in-kernel debugger
74#options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
75#makeoptions	DEBUG="-g"
76
77# Compatibility options
78options 	COMPAT_13	# NetBSD 1.3,
79options 	COMPAT_14	# NetBSD 1.4,
80options 	COMPAT_15	# NetBSD 1.5,
81options 	COMPAT_16	# NetBSD 1.6,
82options 	COMPAT_43	# and 4.3BSD
83#options 	COMPAT_LINUX	# Linux binary compatibility
84#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
85
86# File systems
87file-system 	FFS		# UFS
88file-system	EXT2FS		# second extended file system (linux)
89#file-system	LFS		# log-structured file system
90file-system 	MFS		# memory file system
91file-system 	NFS		# Network File System client
92#file-system	NTFS		# Windows/NT file system (experimental)
93file-system 	CD9660		# ISO 9660 + Rock Ridge file system
94file-system 	MSDOSFS		# MS-DOS file system
95#file-system 	FDESC		# /dev/fd
96file-system 	KERNFS		# /kern
97file-system 	NULLFS		# loopback file system
98#file-system	OVERLAY		# overlay file system
99#file-system 	PORTAL		# portal filesystem (still experimental)
100file-system 	PROCFS		# /proc
101#file-system 	UMAPFS		# NULLFS + uid and gid remapping
102file-system 	UNION		# union file system
103#file-system	CODA		# Coda File System; also needs vcoda (below)
104
105# File system options
106options 	QUOTA		# UFS quotas
107#options 	FFS_EI		# FFS Endian Independant support
108options 	SOFTDEP		# FFS soft updates support.
109options 	NFSSERVER	# Network File System server
110#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
111 				# immutable) behave as system flags.
112
113# Networking options
114#options 	GATEWAY		# packet forwarding
115options 	INET		# IP + ICMP + TCP + UDP
116options 	INET6		# IPv6
117#options 	IPSEC		# IP security
118#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
119#options 	IPSEC_DEBUG	# debug for IP security
120#options 	MROUTING	# IP multicast routing
121#options 	PIM		# Protocol Independent Multicast
122#options 	NETATALK	# AppleTalk networking protocols
123options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
124options 	PPP_DEFLATE	# Deflate compression support for PPP
125options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
126options 	PFIL_HOOKS	# pfil(9) packet filter hooks
127options 	IPFILTER_LOG	# ipmon(8) log support
128#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
129#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
130
131#options 	ALTQ		# Manipulate network interfaces' output queues
132#options 	ALTQ_BLUE	# Stochastic Fair Blue
133#options 	ALTQ_CBQ	# Class-Based Queueing
134#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
135#options 	ALTQ_FIFOQ	# First-In First-Out Queue
136#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
137#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
138#options 	ALTQ_LOCALQ	# Local queueing discipline
139#options 	ALTQ_PRIQ	# Priority Queueing
140#options 	ALTQ_RED	# Random Early Detection
141#options 	ALTQ_RIO	# RED with IN/OUT
142#options 	ALTQ_WFQ	# Weighted Fair Queueing
143
144# These options enable verbose messages for several subsystems.
145# Warning, these may compile large string tables into the kernel!
146#options 	MIIVERBOSE	# verbose PHY autoconfig messages
147options 	PCIVERBOSE	# verbose PCI device autoconfig messages
148#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
149#options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
150options 	SCSIVERBOSE	# human readable SCSI error messages
151#options 	USBVERBOSE	# verbose USB device autoconfig messages
152#options 	RESIDUAL_DATA_DUMP	# verbosely dump residual data
153
154#options 	NFS_BOOT_BOOTP
155options 	NFS_BOOT_BOOTPARAM
156options 	NFS_BOOT_DHCP
157
158#
159# wscons options
160#
161# builtin terminal emulations
162options 	WSEMUL_VT100		# VT100 / VT220 emulation
163# different kernel output - see dev/wscons/wsdisplayvar.h
164options 	WS_KERNEL_FG=WSCOL_GREEN
165#options 	WS_KERNEL_BG=WSCOL_BLACK
166# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
167#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
168# allocate a number of virtual screens at autoconfiguration time
169#options 	WSDISPLAY_DEFAULTSCREENS=4
170# use a large software cursor that doesn't blink
171options 	PCDISPLAY_SOFTCURSOR
172
173# Kernel root file system and dump configuration.
174config	netbsd	root on ? type ?
175#config	netbsd	root on tlp0 type nfs
176#config	netbsd	root on pcn0 type nfs
177
178
179#
180# Device configuration
181#
182
183mainbus0 at root
184cpu0	at mainbus0
185
186
187# Basic Bus Support
188
189# PCI bus support
190pci0	at mainbus0 bus ?
191pci*	at pchb? bus ?
192pci*	at ppb? bus ?
193
194options 	PCI_NETBSD_CONFIGURE
195
196# PCI bridges
197pchb*	at pci? dev ? function ?	# PCI-Host bridges
198ppb*	at pci? dev ? function ?	# PCI-PCI bridges
199pcib*	at pci? dev ? function ?	# PCI-ISA bridges
200
201# ISA bus support
202isa*	at pcib?			# ISA on PCI-ISA bridge
203
204# PCMCIA bus support
205pcmcia* at pcic? controller ? socket ?
206
207# ISA PCMCIA controllers
208pcic0	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
209
210#options 	PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
211#options 	PCIC_ISA_ALLOC_IOBASE=0x0400
212#options 	PCIC_ISA_ALLOC_IOSIZE=0x0100
213
214# ISA Plug-and-Play bus support
215#isapnp0	at isa?
216
217# on-board I/O for IBM Personal Power Series 830 IDE controller
218obio0	at mainbus0
219
220
221# Console Devices
222
223# wscons
224pckbc0		at isa?			# pc keyboard controller
225pckbd*		at pckbc?		# PC keyboard
226pms*		at pckbc?		# PS/2 mouse for wsmouse
227vga*		at pci?
228wsdisplay*	at vga? console ?
229wskbd*		at pckbd? console ?
230wsmouse*	at pms? mux 0
231
232pcppi0	at isa?				# PC prog. periph. interface
233isabeep0 at pcppi?			# "keyboard" beep
234
235mcclock0 at isa? port 0x70		# mc146818 and compatible
236mkclock0 at isa? port 0x74		# mk48t18 and compatible
237
238
239# Cryptographic Devices
240
241# PCI cryptographic devices
242#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
243#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
244
245
246# Serial Devices
247
248# ISA serial interfaces
249com0	at isa? port 0x3f8 irq 4	# standard PC serial ports
250com1	at isa? port 0x2f8 irq 3
251
252# PCMCIA serial interfaces
253com*	at pcmcia? function ?		# Modems and serial cards
254
255#pcmcom* at pcmcia? function ?		# PCMCIA multi-port serial cards
256#com*	at pcmcom? slave ?		# ...and the slave devices
257
258
259# Parallel Printer Interfaces
260
261# ISA parallel printer interfaces
262lpt0	at isa? port 0x3bc irq 7	# standard PC parallel ports
263
264
265# SCSI Controllers and Devices
266
267# PCI SCSI controllers
268#adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
269ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
270#iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
271#pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
272siop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
273esiop*	at pci? dev ? function ?	# Symbios 53c875 SCSI and newer
274
275# PCMCIA SCSI controllers
276aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
277
278# SCSI bus support
279#scsibus* at adw?
280scsibus* at ahc?
281scsibus* at aic?
282#scsibus* at iha?
283#scsibus* at pcscp?
284scsibus* at siop?
285scsibus* at esiop?
286
287# SCSI devices
288sd*	at scsibus? target ? lun ?	# SCSI disk drives
289st*	at scsibus? target ? lun ?	# SCSI tape drives
290cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
291#ch*	at scsibus? target ? lun ?	# SCSI autochangers
292#ss*	at scsibus? target ? lun ?	# SCSI scanners
293uk*	at scsibus? target ? lun ?	# SCSI unknown
294
295
296# IDE and related devices
297
298# IBM Personal Power Series 830 IDE controller
299wdc0	at obio? port 0x1f0 irq 13
300wdc1	at obio? port 0x170 irq 13
301
302# ISA Plug-and-Play IDE controllers
303#wdc*	at isapnp?
304
305# PCMCIA IDE controllers
306wdc*	at pcmcia? function ?
307
308# ATA (IDE) bus support
309atabus* at ata?
310
311# IDE drives
312# Flags are used only with controllers that support DMA operations
313# and mode settings (e.g. some pciide controllers)
314# The lowest order four bits (rightmost digit) of the flags define the PIO
315# mode to use, the next set of four bits the DMA mode and the third set the
316# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
317# to use, and the last bit must be 1 for this setting to be used.
318# For DMA and UDMA, 0xf (1111) means 'disable'.
319# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
320# (0xc=1100, 0xa=1010, 0xf=1111)
321# 0x0000 means "use whatever the drive claims to support".
322wd*	at atabus? drive ? flags 0x0000
323
324# ATAPI bus support
325atapibus* at atapi?
326
327# ATAPI devices
328# flags have the same meaning as for IDE drives.
329cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
330sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
331uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
332
333# Miscellaneous mass storage devices
334
335# ISA Floppy
336#fdc0 at isa? port 0x3f0 irq 6 drq 2	# standard ISA floppy controller
337#fd0 at fdc0 drive ?
338
339# Network Interfaces
340
341# PCI network interfaces
342ep*	at pci? dev ? function ?	# 3Com 3c59x
343ex*	at pci? dev ? function ?	# 3Com 3c90x[BC]
344fxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
345ne*	at pci? dev ? function ?	# NE2000-compatible Ethernet
346pcn*	at pci? dev ? function ?	# AMD PCnet-PCI Ethernet
347rtk*	at pci? dev ? function ?	# Realtek 8129/8139
348sip*	at pci? dev ? function ?	# SiS 900/DP83815 Ethernet
349tlp*	at pci? dev ? function ?	# DECchip 21x4x and clones
350vr*	at pci? dev ? function ?	# VIA Rhine Fast Ethernet
351
352# ISA network interfaces
353#ep*	at isa? port ? irq ?		# 3Com 3c509 Ethernet
354#ne0	at isa? port 0x280 irq 9	# NE2000-compatible Ethernet
355#ne1	at isa? port 0x300 irq 10
356#we0	at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC Ethernet
357we1	at isa? port 0x300 iomem 0xe4000 irq 11
358
359# ISA Plug-and-Play network intefaces
360#ep*	at isapnp?			# 3Com 3c509 Ethernet
361#ne*	at isapnp?			# NE2000-compatible Ethernet
362
363# PCMCIA network interfaces
364ep*	at pcmcia? function ?		# 3Com 3c589 and 3c562 Ethernet
365ne*	at pcmcia? function ?		# NE2000-compatible Ethernet
366
367# MII/PHY support
368dmphy*	at mii? phy ?			# Davicom DM9101 PHYs
369exphy*	at mii? phy ?			# 3Com internal PHYs
370icsphy* at mii? phy ?			# Integrated Circuit Systems ICS189x
371inphy*	at mii? phy ?			# Intel 82555 PHYs
372iophy*	at mii? phy ?			# Intel 82553 PHYs
373lxtphy* at mii? phy ?			# Level One LXT-970 PHYs
374nsphy*	at mii? phy ?			# NS83840 PHYs
375nsphyter* at mii? phy ?			# NS83843 PHYs
376qsphy*	at mii? phy ?			# Quality Semiconductor QS6612 PHYs
377sqphy*	at mii? phy ?			# Seeq 80220/80221/80223 PHYs
378tlphy*	at mii? phy ?			# ThunderLAN PHYs
379tqphy*	at mii? phy ?			# TDK Semiconductor PHYs
380ukphy*	at mii? phy ?			# generic unknown PHYs
381
382
383# USB Controller and Devices
384
385# PCI USB controllers
386#uhci*	at pci? dev ? function ?	# Universal Host Controller (Intel)
387#ohci*	at pci? dev ? function ?	# Open Host Controller
388
389# USB bus support
390#usb*	at uhci?
391#usb*	at ohci?
392
393# USB Hubs
394#uhub*	at usb?
395#uhub*	at uhub? port ? configuration ? interface ?
396
397# USB HID device
398#uhidev*	at uhub? port ? configuration ? interface ?
399
400# USB Mice
401#ums*	at uhidev? reportid ?
402#wsmouse* at ums? mux 0
403
404# USB Keyboards
405#ukbd*	at uhidev? reportid ?
406#wskbd*	at ukbd? console ? mux 1
407
408# USB Generic HID devices
409#uhid*	at uhidev? reportid ?
410
411# USB Printer
412#ulpt*	at uhub? port ? configuration ? interface ?
413
414# USB Modem
415#umodem* at uhub? port ? configuration ?
416#ucom*	at umodem?
417
418# USB Mass Storage
419#umass*	at uhub? port ? configuration ? interface ?
420#scsibus* at umass? channel ?
421#atapibus* at umass?
422
423# USB audio
424#uaudio* at uhub? port ? configuration ?
425
426# USB Ethernet adapters
427#aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
428#axe*	at uhub? port ?		# ASIX AX88172 based adapters
429#cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
430#kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
431#url*	at uhub? port ?		# Realtek RTL8150L based adapters
432#udav*	at uhub? port ?		# Davicom DM9601 based adapters
433
434# Prolofic PL2301/PL2302 host-to-host adapter
435#upl*	at uhub? port ?
436
437# Serial adapters
438#uftdi*	at uhub? port ?		# FTDI FT8U100AX serial adapter
439#ucom*	at uftdi? portno ?
440
441#umct*	at uhub? port ?		# MCT USB-RS232 serial adapter
442#ucom*	at umct? portno ?
443
444#uplcom* at uhub? port ?	# I/O DATA USB-RSAQ2 serial adapter
445#ucom*	at uplcom? portno ?
446
447#uvscom* at uhub? port ?	# SUNTAC Slipper U VS-10U serial adapter
448#ucom*	at uvscom? portno ?
449
450# Diamond Multimedia Rio 500
451#urio*	at uhub? port ?
452
453# USB Handspring Visor
454#uvisor* at uhub? port ?
455#ucom*	at uvisor?
456
457# Y@P firmware loader
458#uyap* at uhub? port ?
459
460# USB Generic driver
461#ugen*	at uhub? port ?
462
463# USB scanners
464#uscanner* at uhub? port ?
465
466
467# Audio device
468
469# ISA Plug-and-Play audio devices
470#wss*	at isapnp?			# CS4232
471
472# Audio support
473#audio*	at uaudio?
474#audio*	at wss?
475
476# MIDI support
477#midi*	at pcppi?		# MIDI interface to the PC speaker
478
479# The spkr driver provides a simple tone interface to the built in speaker.
480#spkr0	at pcppi?		# PC speaker
481
482
483# Joysticks
484
485# ISA Plug-and-Play joysticks
486#joy*	at isapnp?			# Game ports (usually on audio cards)
487
488# ISA joysticks. Probe is a little strange; add only if you have one.
489#joy0	at isa? port 0x201
490
491
492# Pseudo-Devices
493
494# Not yet ready -- prep lacks generic soft interrupts
495#pseudo-device 	crypto		# opencrypto framework
496
497# disk/mass storage pseudo-devices
498pseudo-device	ccd		4	# concatenated/striped disk devices
499#pseudo-device	cgd		4	# cryptographic disk devices
500#pseudo-device	raid		8	# RAIDframe disk driver
501#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
502# Options to enable various other RAIDframe RAID types.
503# options	RF_INCLUDE_EVENODD=1
504# options	RF_INCLUDE_RAID5_RS=1
505# options	RF_INCLUDE_PARITYLOGGING=1
506# options	RF_INCLUDE_CHAINDECLUSTER=1
507# options	RF_INCLUDE_INTERDECLUSTER=1
508# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
509# options	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
510pseudo-device	md		1	# memory disk device (ramdisk)
511pseudo-device	vnd		4	# disk-like interface to files
512
513# network pseudo-devices
514pseudo-device	loop			# network loopback
515pseudo-device	bpfilter	8	# Berkeley packet filter
516pseudo-device	ipfilter		# IP filter (firewall) and NAT
517pseudo-device	ppp		2	# Point-to-Point Protocol
518pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
519pseudo-device	sl		2	# Serial Line IP
520pseudo-device	strip		2	# Starmode Radio IP (Metricom)
521pseudo-device	tun		2	# network tunneling over tty
522pseudo-device	gre		2	# generic L3 over IP tunnel
523pseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
524#pseudo-device	faith		2	# IPv[46] tcp relay translation i/f
525#pseudo-device	stf		2	# 6to4 IPv6 over IPv4 encapsulation
526pseudo-device	vlan			# IEEE 802.1q encapsulation
527pseudo-device	bridge			# simple inter-network bridging
528#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
529
530# miscellaneous pseudo-devices
531pseudo-device	pty			# pseudo-terminals
532pseudo-device	tb		1	# tablet line discipline
533#pseudo-device	sequencer	1	# MIDI sequencer
534pseudo-device	rnd			# /dev/random and in-kernel generator
535#options 	RND_COM			# use "com" randomness as well
536pseudo-device	clockctl		# user control of clock subsystem
537pseudo-device	ksyms			# /dev/ksyms
538#pseudo-device	pf			# PF packet filter
539#pseudo-device	pflog			# PF log if
540
541# a pseudo device needed for Coda	# also needs CODA (above)
542#pseudo-device	vcoda		4	# coda minicache <-> venus comm.
543
544# wscons pseudo-devices
545pseudo-device	wsmux			# mouse & keyboard multiplexor
546pseudo-device	wsfont
547