1# $NetBSD: GENERIC,v 1.201 2024/01/29 18:27:14 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
25#ident		"GENERIC-$Revision: 1.201 $"
26
27maxusers	32
28
29# Platform support
30
31options 	PIC_OPENPIC	# OpenPIC support (7043-140)
32options 	PIC_PREPIVR
33
34# Standard system options
35
36options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
37options 	NTP		# NTP phase/frequency locked loop
38
39options 	KTRACE		# system call tracing via ktrace(1)
40
41options 	SYSVMSG		# System V-like message queues
42options 	SYSVSEM		# System V-like semaphores
43options 	SYSVSHM		# System V-like memory sharing
44
45options 	USERCONF	# userconf(4) support
46#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
47options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
48
49# Alternate buffer queue strategies for better responsiveness under high
50# disk I/O load.
51#options 	BUFQ_READPRIO
52options 	BUFQ_PRIOCSCAN
53
54# Diagnostic/debugging support options
55#options 	DIAGNOSTIC	# cheap kernel consistency checks
56#options 	DEBUG		# expensive debugging checks/support
57options 	DDB		# in-kernel debugger
58#options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
59#makeoptions	DEBUG="-g"
60
61# Compatibility options
62include 	"conf/compat_netbsd13.config"
63#options 	COMPAT_LINUX	# Linux binary compatibility
64#options 	COMPAT_OSSAUDIO	# Linux binary compatibility
65
66# File systems
67file-system 	FFS		# UFS
68file-system	EXT2FS		# second extended file system (linux)
69#file-system	LFS		# log-structured file system
70file-system 	MFS		# memory file system
71file-system 	NFS		# Network File System client
72#file-system	NTFS		# Windows/NT file system (experimental)
73file-system 	CD9660		# ISO 9660 + Rock Ridge file system
74file-system 	MSDOSFS		# MS-DOS file system
75#file-system 	FDESC		# /dev/fd
76file-system 	KERNFS		# /kern
77file-system 	NULLFS		# loopback file system
78#file-system	OVERLAY		# overlay file system
79file-system 	PROCFS		# /proc
80#file-system 	UMAPFS		# NULLFS + uid and gid remapping
81file-system 	UNION		# union file system
82#file-system	CODA		# Coda File System; also needs vcoda (below)
83file-system	PTYFS		# /dev/pts/N support
84file-system	TMPFS		# Efficient memory file-system
85#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
86
87# File system options
88#options 	FFS_EI		# FFS Endian Independent support
89#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
90options 	QUOTA		# legacy UFS quotas
91options 	QUOTA2		# new, in-filesystem UFS quotas
92options 	UFS_DIRHASH	# UFS Large Directory Hashing
93options 	UFS_EXTATTR	# Extended attribute support for UFS1
94options 	WAPBL		# File system journaling support
95#options 	DISKLABEL_EI	# disklabel Endian Independent support
96options 	NFSSERVER	# Network File System server
97
98# Networking options
99#options 	GATEWAY		# packet forwarding
100options 	INET		# IP + ICMP + TCP + UDP
101options 	INET6		# IPv6
102#options 	IPSEC		# IP security
103#options 	IPSEC_DEBUG	# debug for IP security
104#options 	MROUTING	# IP multicast routing
105#options 	PIM		# Protocol Independent Multicast
106#options 	NETATALK	# AppleTalk networking protocols
107options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
108options 	PPP_DEFLATE	# Deflate compression support for PPP
109options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
110#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
111
112#options 	ALTQ		# Manipulate network interfaces' output queues
113#options 	ALTQ_BLUE	# Stochastic Fair Blue
114#options 	ALTQ_CBQ	# Class-Based Queueing
115#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
116#options 	ALTQ_FIFOQ	# First-In First-Out Queue
117#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
118#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
119#options 	ALTQ_LOCALQ	# Local queueing discipline
120#options 	ALTQ_PRIQ	# Priority Queueing
121#options 	ALTQ_RED	# Random Early Detection
122#options 	ALTQ_RIO	# RED with IN/OUT
123#options 	ALTQ_WFQ	# Weighted Fair Queueing
124
125# These options enable verbose messages for several subsystems.
126# Warning, these may compile large string tables into the kernel!
127#options 	MIIVERBOSE	# verbose PHY autoconfig messages
128options 	PCIVERBOSE	# verbose PCI device autoconfig messages
129#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
130#options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
131options 	SCSIVERBOSE	# human readable SCSI error messages
132#options 	USBVERBOSE	# verbose USB device autoconfig messages
133#options 	RESIDUAL_DATA_DUMP	# verbosely dump residual data
134#options 	NVRAM_DUMP	# verbosely dump contents of nvram.
135				# Warning: output may not be ascii!
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# compatibility to other console drivers
150options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
151options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
152# see dev/pckbport/wskbdmap_mfii.c for implemented layouts
153#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
154# allocate a number of virtual screens at autoconfiguration time
155#options 	WSDISPLAY_DEFAULTSCREENS=4
156# use a large software cursor that doesn't blink
157options 	PCDISPLAY_SOFTCURSOR
158
159# Kernel root file system and dump configuration.
160config	netbsd	root on ? type ?
161#config	netbsd	root on tlp0 type nfs
162#config	netbsd	root on pcn0 type nfs
163
164
165#
166# Device configuration
167#
168
169mainbus0 at root
170cpu0	at mainbus0
171
172
173# Basic Bus Support
174
175# PCI bus support
176pci0	at mainbus0 bus ?
177pci*	at pchb? bus ?
178pci*	at ppb? bus ?
179
180# PCI bridges
181pchb*	at pci? dev ? function ?	# PCI-Host bridges
182ppb*	at pci? dev ? function ?	# PCI-PCI bridges
183pcib*	at pci? dev ? function ?	# PCI-ISA bridges
184pceb*	at pci? dev ? function ?	# PCI-EISA bridges
185
186# EISA bus support
187eisa*	at pceb?
188
189# ISA bus support
190isa*	at pcib?			# ISA on PCI-ISA bridge
191isa*	at pceb?
192
193# PCMCIA bus support
194pcmcia* at pcic? controller ? socket ?
195
196# ISA PCMCIA controllers
197pcic0	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
198
199#options 	PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
200#options 	PCIC_ISA_ALLOC_IOBASE=0x0400
201#options 	PCIC_ISA_ALLOC_IOSIZE=0x0100
202
203# ISA Plug-and-Play bus support
204#isapnp0	at isa?
205
206# PnPbus bus support (required)
207pnpbus0	at mainbus0
208
209# Console Devices
210
211# wscons
212pckbc0		at isa?			# pc keyboard controller
213pckbd*		at pckbc?		# PC keyboard
214pms*		at pckbc?		# PS/2 mouse for wsmouse
215vga*		at pci?
216wsdisplay*	at vga? console ?
217wskbd*		at pckbd? console ?
218wsmouse*	at pms? mux 0
219
220attimer0	at isa?			# AT Timer
221pcppi0	at isa?				# PC prog. periph. interface
222isabeep0 at pcppi?			# "keyboard" beep
223
224#mcclock0 at isa? port 0x70		# mc146818 and compatible
225mcclock* at pnpbus?			# mc146818 and compatible
226mkclock* at pnpbus?			# mk48t18 and compatible
227
228nvram*	at pnpbus?
229
230# Cryptographic Devices
231
232# PCI cryptographic devices
233#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
234#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
235
236
237# Serial Devices
238
239# ISA serial interfaces
240com0	at isa? port 0x3f8 irq 4	# standard PC serial ports
241com1	at isa? port 0x2f8 irq 3
242
243# PCMCIA serial interfaces
244com*	at pcmcia? function ?		# Modems and serial cards
245
246#pcmcom* at pcmcia? function ?		# PCMCIA multi-port serial cards
247#com*	at pcmcom? slave ?		# ...and the slave devices
248
249
250# Parallel Printer Interfaces
251
252# ISA parallel printer interfaces
253lpt0	at isa? port 0x3bc irq 7	# standard PC parallel ports
254
255
256# SCSI Controllers and Devices
257
258# PCI SCSI controllers
259#adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
260ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
261#iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
262#pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
263siop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
264esiop*	at pci? dev ? function ?	# Symbios 53c875 SCSI and newer
265
266# PCMCIA SCSI controllers
267aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
268spc* 	at pcmcia? function ?		# Fujitsu MB87030/MB89352 SCSI
269
270# SCSI bus support
271#scsibus* at adw?
272scsibus* at ahc?
273scsibus* at aic?
274#scsibus* at iha?
275#scsibus* at pcscp?
276scsibus* at siop?
277scsibus* at spc?
278scsibus* at esiop?
279
280# SCSI devices
281sd*	at scsibus? target ? lun ?	# SCSI disk drives
282st*	at scsibus? target ? lun ?	# SCSI tape drives
283cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
284#ch*	at scsibus? target ? lun ?	# SCSI autochangers
285#ss*	at scsibus? target ? lun ?	# SCSI scanners
286uk*	at scsibus? target ? lun ?	# SCSI unknown
287
288# IDE and related devices
289
290# IDE controller found on most Power Personal machines
291wdc*	at pnpbus?
292
293# PCI IDE controllers
294pciide*		at pci? dev ? function ? flags 0x0000
295hptide*		at pci? dev ? function ?
296slide*		at pci? dev ? function ?
297
298fdc0 at pnpbus?	# standard ISA floppy controller
299fd0 at fdc0 drive ?
300
301# ISA Plug-and-Play IDE controllers
302#wdc*	at isapnp?
303
304# PCMCIA IDE controllers
305wdc*	at pcmcia? function ?
306
307# ATA (IDE) bus support
308atabus* at ata?
309
310# IDE drives
311# Flags are used only with controllers that support DMA operations
312# and mode settings (e.g. some pciide controllers)
313# The lowest order four bits (rightmost digit) of the flags define the PIO
314# mode to use, the next set of four bits the DMA mode and the third set the
315# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
316# to use, and the last bit must be 1 for this setting to be used.
317# For DMA and UDMA, 0xf (1111) means 'disable'.
318# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
319# (0xc=1100, 0xa=1010, 0xf=1111)
320# 0x0000 means "use whatever the drive claims to support".
321wd*	at atabus? drive ? flags 0x0000
322
323# ATAPI bus support
324atapibus* at atapi?
325
326# ATAPI devices
327# flags have the same meaning as for IDE drives.
328cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
329sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
330uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
331
332# Miscellaneous mass storage devices
333
334# Network Interfaces
335
336# PCI network interfaces
337ep*	at pci? dev ? function ?	# 3Com 3c59x
338ex*	at pci? dev ? function ?	# 3Com 3c90x[BC]
339fxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
340ne*	at pci? dev ? function ?	# NE2000-compatible Ethernet
341pcn*	at pci? dev ? function ?	# AMD PCnet-PCI Ethernet
342rtk*	at pci? dev ? function ?	# Realtek 8129/8139
343sip*	at pci? dev ? function ?	# SiS 900/DP83815 Ethernet
344tlp*	at pci? dev ? function ?	# DECchip 21x4x and clones
345vr*	at pci? dev ? function ?	# VIA Rhine Fast Ethernet
346
347# pnpbus network interfaces
348we*	at pnpbus?			# WD/SMC Ethernet
349
350# ISA network interfaces
351#ep*	at isa? port ? irq ?		# 3Com 3c509 Ethernet
352#ne0	at isa? port 0x280 irq 9	# NE2000-compatible Ethernet
353#ne1	at isa? port 0x300 irq 10
354#we0	at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC Ethernet
355we1	at isa? port 0x300 iomem 0xe8000 irq 11
356
357# ISA Plug-and-Play network intefaces
358#ep*	at isapnp?			# 3Com 3c509 Ethernet
359#ne*	at isapnp?			# NE2000-compatible Ethernet
360
361# PCMCIA network interfaces
362ep*	at pcmcia? function ?		# 3Com 3c589 and 3c562 Ethernet
363ne*	at pcmcia? function ?		# NE2000-compatible Ethernet
364
365# MII/PHY support
366dmphy*	at mii? phy ?			# Davicom DM9101 PHYs
367exphy*	at mii? phy ?			# 3Com internal PHYs
368icsphy* at mii? phy ?			# Integrated Circuit Systems ICS189x
369inphy*	at mii? phy ?			# Intel 82555 PHYs
370iophy*	at mii? phy ?			# Intel 82553 PHYs
371lxtphy* at mii? phy ?			# Level One LXT-970 PHYs
372nsphy*	at mii? phy ?			# NS83840 PHYs
373nsphyter* at mii? phy ?			# NS83843 PHYs
374qsphy*	at mii? phy ?			# Quality Semiconductor QS6612 PHYs
375rgephy*	at mii? phy ?			# Realtek 8169S/8110S/8211 PHYs
376rlphy*	at mii? phy ?			# Realtek 8139/8201L 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# PCMCIA USB controllers
390#slhci*	at pcmcia? function ?		# ScanLogic SL811HS
391
392# USB bus support
393#usb*	at uhci?
394#usb*	at ohci?
395#usb*	at slhci?
396
397# USB Hubs
398#uhub*	at usb?
399#uhub*	at uhub? port ?
400
401# USB HID device
402#uhidev*	at uhub? port ? configuration ? interface ?
403
404# USB Mice
405#ums*	at uhidev? reportid ?
406#wsmouse* at ums? mux 0
407
408# USB Keyboards
409#ukbd*	at uhidev? reportid ?
410#wskbd*	at ukbd? console ? mux 1
411
412# USB serial adapter
413#ucycom*	at uhidev? reportid ?
414
415# USB Generic HID devices
416#uhid*	at uhidev? reportid ?
417
418# USB Printer
419#ulpt*	at uhub? port ? configuration ? interface ?
420
421# USB Modem
422#umodem* at uhub? port ? configuration ?
423#ucom*	at umodem?
424
425# Option N.V. Wireless WAN modems
426#uhso*	at uhub? port ? configuration ?
427
428# USB Mass Storage
429#umass*	at uhub? port ? configuration ? interface ?
430#scsibus* at umass? channel ?
431#atapibus* at umass?
432
433# USB audio
434#uaudio* at uhub? port ? configuration ?
435
436# USB Ethernet adapters
437#aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
438#axe*	at uhub? port ?		# ASIX AX88172 based adapters
439#cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
440#kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
441#mue*	at uhub? port ?		# Microchip LAN75xx/LAN78xx based adapters
442#ure*	at uhub? port ?		# Realtek RTL8152/RTL8153 based adapters
443#url*	at uhub? port ?		# Realtek RTL8150L based adapters
444#udav*	at uhub? port ?		# Davicom DM9601 based adapters
445
446# Prolific PL2301/PL2302 host-to-host adapter
447#upl*	at uhub? port ?
448
449# Serial adapters
450#uftdi*	at uhub? port ?		# FTDI FT8U100AX serial adapter
451#ucom*	at uftdi? portno ?
452
453#umct*	at uhub? port ?		# MCT USB-RS232 serial adapter
454#ucom*	at umct? portno ?
455
456#uplcom* at uhub? port ?	# I/O DATA USB-RSAQ2 serial adapter
457#ucom*	at uplcom? portno ?
458
459#uvscom* at uhub? port ?	# SUNTAC Slipper U VS-10U serial adapter
460#ucom*	at uvscom? portno ?
461
462# USB Handspring Visor
463#uvisor* at uhub? port ?
464#ucom*	at uvisor?
465
466# Kyocera AIR-EDGE PHONE
467#ukyopon* at uhub? port ?
468#ucom*	at ukyopon? portno ?
469
470# USB Generic driver
471#ugen*	at uhub? port ?
472
473# Audio device
474
475# ISA Plug-and-Play audio devices
476#wss*	at isapnp?			# CS4232
477#wss0    at isa? port 0x530 irq 5 drq 1 drq2 0
478
479# Audio support
480#audio*	at uaudio?
481#audio*	at audiocs?
482
483# MIDI support
484#midi*	at pcppi?		# MIDI interface to the PC speaker
485
486# The spkr driver provides a simple tone interface to the built in speaker.
487#spkr*	at pcppi?		# PC speaker
488#spkr*	at audio?		# PC speaker (synthesized)
489
490
491# Joysticks
492
493# ISA Plug-and-Play joysticks
494#joy*	at isapnp?			# Game ports (usually on audio cards)
495
496# ISA joysticks. Probe is a little strange; add only if you have one.
497#joy0	at isa? port 0x201
498
499# Pseudo-Devices
500
501pseudo-device 	crypto		# /dev/crypto device
502pseudo-device	swcrypto	# software crypto implementation
503
504# disk/mass storage pseudo-devices
505pseudo-device	ccd			# concatenated/striped disk devices
506#pseudo-device	cgd			# cryptographic disk devices
507pseudo-device	raid			# RAIDframe disk driver
508options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
509# Options to enable various other RAIDframe RAID types.
510#options 	RF_INCLUDE_EVENODD=1
511#options 	RF_INCLUDE_RAID5_RS=1
512#options 	RF_INCLUDE_PARITYLOGGING=1
513#options 	RF_INCLUDE_CHAINDECLUSTER=1
514#options 	RF_INCLUDE_INTERDECLUSTER=1
515#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
516#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
517pseudo-device	fss			# file system snapshot device
518pseudo-device	md			# memory disk device (ramdisk)
519pseudo-device	vnd			# disk-like interface to files
520#options 	VND_COMPRESSION		# compressed vnd(4)
521
522# network pseudo-devices
523pseudo-device	loop			# network loopback
524pseudo-device	bpfilter		# Berkeley packet filter
525pseudo-device	carp			# Common Address Redundancy Protocol
526pseudo-device	npf			# NPF packet filter
527pseudo-device	ppp			# Point-to-Point Protocol
528pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
529#pseudo-device	sl			# Serial Line IP
530pseudo-device	tun			# network tunneling over tty
531pseudo-device	tap			# virtual Ethernet
532pseudo-device	gre			# generic L3 over IP tunnel
533pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
534#pseudo-device	faith			# IPv[46] tcp relay translation i/f
535pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
536pseudo-device	vlan			# IEEE 802.1q encapsulation
537pseudo-device	bridge			# simple inter-network bridging
538pseudo-device	vether			# Virtual Ethernet for bridge
539pseudo-device	agr			# IEEE 802.3ad link aggregation
540
541#
542# accept filters
543pseudo-device   accf_data		# "dataready" accept filter
544pseudo-device   accf_http		# "httpready" accept filter
545
546# miscellaneous pseudo-devices
547pseudo-device	pty			# pseudo-terminals
548#pseudo-device	sequencer		# MIDI sequencer
549#options 	RND_COM			# use "com" randomness as well
550pseudo-device	clockctl		# user control of clock subsystem
551pseudo-device	ksyms			# /dev/ksyms
552pseudo-device 	swwdog			# software watchdog timer -- swwdog(4)
553
554# a pseudo device needed for Coda	# also needs CODA (above)
555#pseudo-device	vcoda			# coda minicache <-> venus comm.
556
557# wscons pseudo-devices
558pseudo-device	wsmux			# mouse & keyboard multiplexor
559pseudo-device	wsfont
560
561include "dev/veriexec.config"
562
563# Pull in optional local configuration - always at end
564cinclude	"arch/prep/conf/GENERIC.local"
565