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