GENERIC revision 1.64
1# $NetBSD: GENERIC,v 1.64 2020/01/19 01:25:06 thorpej 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/landisk/conf/std.landisk"
22
23options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary
24
25#ident          "GENERIC-$Revision: 1.64 $"
26
27maxusers	16		# estimated number of users
28
29makeoptions	CPUFLAGS="-m4-nofpu"		# XXX: move to std.landisk?
30#makeoptions     COPTS="-Os -freorder-blocks"	# -O2 is too -falign-* zealous
31
32# CPU-related options.
33options 	PCLOCK=33333333			# 33.33MHz
34options 	DONT_INIT_BSC
35#options 	DONT_INIT_PCIBSC
36
37# Cache options.
38options 	SH4_CACHE_DISABLE_EMODE
39#options 	SH4_CACHE_DISABLE_ICACHE
40#options 	SH4_CACHE_DISABLE_DCACHE
41#options 	SH4_CACHE_WB_U0_P0_P3
42#options 	SH4_CACHE_WB_P1
43
44# kloader-related
45#options 	KLOADER
46#options 	KLOADER_KERNEL_PATH="\"/netbsd\""
47#options 	KLOADER_DEBUG
48
49# Standard system options
50
51options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
52#options 	HZ=64		# clock interrupt generates every 1/HZ sec
53options 	NTP		# NTP phase/frequency locked loop
54
55options 	KTRACE		# system call tracing via ktrace(1)
56
57options 	SYSVMSG		# System V-like message queues
58options 	SYSVSEM		# System V-like semaphores
59options 	SYSVSHM		# System V-like memory sharing
60
61#options 	MODULAR		# new style module(7) framework
62#options 	MODULAR_DEFAULT_AUTOLOAD
63
64options 	USERCONF	# userconf(4) support
65#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
66options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
67
68# Alternate buffer queue strategies for better responsiveness under high
69# disk I/O load.
70#options 	BUFQ_READPRIO
71options 	BUFQ_PRIOCSCAN
72
73# Diagnostic/debugging support options
74#options 	DIAGNOSTIC	# cheap kernel consistency checks
75#options 	DEBUG		# expensive debugging checks/support
76options 	DDB		# in-kernel debugger
77#options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
78options 	DDB_HISTORY_SIZE=512	# Enable history editing in DDB
79#makeoptions	DEBUG="-g -fno-omit-frame-pointer"
80
81# Compatibility options
82include 	"conf/compat_netbsd16.config"
83options 	COMPAT_OSSAUDIO	# OSS (Voxware) audio driver compatibility
84
85# Executable format options
86options 	EXEC_COFF	# COFF executables
87
88# File systems
89file-system 	FFS		# UFS
90file-system 	EXT2FS		# second extended file system (linux)
91file-system 	LFS		# log-structured file system
92file-system 	MFS		# memory file system
93file-system 	NFS		# Network File System client
94file-system 	NTFS		# Windows/NT file system (experimental)
95file-system 	CD9660		# ISO 9660 + Rock Ridge file system
96file-system 	MSDOSFS		# MS-DOS file system
97file-system 	FDESC		# /dev/fd
98file-system 	KERNFS		# /kern
99file-system 	NULLFS		# loopback file system
100file-system 	OVERLAY		# overlay file system
101file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
102file-system 	PROCFS		# /proc
103file-system 	UMAPFS		# NULLFS + uid and gid remapping
104file-system 	UNION		# union file system
105file-system	CODA		# Coda File System; also needs vcoda (below)
106file-system	SMBFS		# experimental - CIFS; also needs nsmb (below)
107file-system	PTYFS		# /dev/pts/N support
108file-system	TMPFS		# Efficient memory file-system
109#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
110
111# File system options
112options 	QUOTA		# legacy UFS quotas
113options 	QUOTA2		# new, in-filesystem UFS quotas
114#options 	DISKLABEL_EI	# disklabel Endian Independent support
115#options 	FFS_EI		# FFS Endian Independent support
116options 	WAPBL		# File system journaling support
117#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
118options 	NFSSERVER	# Network File System server
119#options 	FFS_NO_SNAPSHOT	# ffs snapshots
120options 	UFS_EXTATTR	# Extended attribute support for UFS1
121#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
122				# immutable) behave as system flags.
123
124# Networking options
125#options 	GATEWAY		# packet forwarding
126options 	INET		# IP + ICMP + TCP + UDP
127options 	INET6		# IPV6
128#options 	IPSEC		# IP security
129#options 	IPSEC_DEBUG	# debug for IP security
130#options 	MROUTING	# IP multicast routing
131#options 	PIM		# Protocol Independent Multicast
132#options 	NETATALK	# AppleTalk networking protocols
133#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
134#options 	PPP_DEFLATE	# Deflate compression support for PPP
135#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
136#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
137
138#options 	ALTQ		# Manipulate network interfaces' output queues
139#options 	ALTQ_BLUE	# Stochastic Fair Blue
140#options 	ALTQ_CBQ	# Class-Based Queueing
141#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
142#options 	ALTQ_FIFOQ	# First-In First-Out Queue
143#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
144#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
145#options 	ALTQ_LOCALQ	# Local queueing discipline
146#options 	ALTQ_PRIQ	# Priority Queueing
147#options 	ALTQ_RED	# Random Early Detection
148#options 	ALTQ_RIO	# RED with IN/OUT
149#options 	ALTQ_WFQ	# Weighted Fair Queueing
150
151# These options enable verbose messages for several subsystems.
152# Warning, these may compile large string tables into the kernel!
153options 	MIIVERBOSE	# verbose PHY autoconfig messages
154options 	PCIVERBOSE	# verbose PCI device autoconfig messages
155#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
156options 	SCSIVERBOSE	# human readable SCSI error messages
157options 	USBVERBOSE	# verbose USB device autoconfig messages
158
159options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
160
161
162# Kernel root file system and dump configuration.
163#config		netbsd	root on ? type ?
164config		netbsd	root on wd0a type ffs
165#config		netbsd	root on ? type nfs
166
167
168#
169# Device configuration
170#
171
172mainbus0 at root
173
174cpu*	at mainbus?
175
176# Basic Bus Support
177
178# PCI bus support
179options 	PCI_NETBSD_CONFIGURE
180shpcic*	at mainbus?		# SH7751 PCIC
181pci0	at shpcic? bus ?
182
183# SH bus
184shb*	at mainbus?
185
186# ob-board I/O bus
187obio0	at mainbus?
188
189# Serial Devices
190
191options 	SCIFCONSOLE
192options 	SCIFCN_SPEED=9600
193scif0	at shb?
194
195rs5c313rtc0 at shb0			# time-of-day clock
196
197# SCSI Controllers and Devices
198
199# SCSI devices
200sd*	at scsibus? target ? lun ?	# SCSI disk drives
201st*	at scsibus? target ? lun ?	# SCSI tape drives
202cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
203ch*	at scsibus? target ? lun ?	# SCSI autochangers
204ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
205ss*	at scsibus? target ? lun ?	# SCSI scanners
206uk*	at scsibus? target ? lun ?	# SCSI unknown
207
208# IDE and related devices
209# PCI IDE controllers - see pciide(4) for supported hardware.
210# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
211# how to set up DMA modes for this chip. This may work, or may cause
212# a machine hang with some controllers.
213pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
214acardide*	at pci? dev ? function ?	# Acard IDE controllers
215
216wdc0	at obio? port 0x14000000 irq 10		# CF
217#wdc1	at obio? port 0x18000000 irq 9		# iConnect
218
219# ATA (IDE) bus support
220atabus*	at ata?
221
222# IDE drives
223# Flags are used only with controllers that support DMA operations
224# and mode settings (e.g. some pciide controllers)
225# The lowest order four bits (rightmost digit) of the flags define the PIO
226# mode to use, the next set of four bits the DMA mode and the third set the
227# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
228# to use, and the last bit must be 1 for this setting to be used.
229# For DMA and UDMA, 0xf (1111) means 'disable'.
230# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
231# (0xc=1100, 0xa=1010, 0xf=1111)
232# 0x0000 means "use whatever the drive claims to support".
233wd*	at atabus? drive ? flags 0x0000
234
235# ATAPI bus support
236atapibus* at atapi?
237
238# ATAPI devices
239# flags have the same meaning as for IDE drives.
240cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
241sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
242uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
243
244# Network Interfaces
245
246# PCI network interfaces
247re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
248rtk*	at pci? dev ? function ?	# Realtek 8129/8139
249
250# MII/PHY support
251rgephy*	at mii? phy ?			# Realtek 8169S/8110S/8211 PHYs
252rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
253urlphy* at mii? phy ?			# Realtek RTL8150L internal PHYs
254ukphy*	at mii? phy ?			# generic unknown PHYs
255
256
257# USB Controller and Devices
258
259# PCI USB controllers
260ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
261ohci*	at pci?	dev ? function ?	# Open Host Controller
262
263# USB bus support
264usb*	at ehci?
265usb*	at ohci?
266
267# USB Hubs
268uhub*	at usb?
269uhub*	at uhub? port ?
270
271# USB HID device
272uhidev*	at uhub? port ? configuration ? interface ?
273
274# USB Mice
275ums*	at uhidev? reportid ?
276wsmouse* at ums? mux 0
277
278# USB Keyboards
279ukbd*	at uhidev? reportid ?
280wskbd*	at ukbd? console ? mux 1
281
282# USB LCDs and USB-VGA adaptors
283udl*	at uhub? port ?		# DisplayLink DL-1x0/1x5
284wsdisplay* at udl?
285
286# USB serial adpater
287ucycom* at uhidev? reportid ?
288
289# USB Generic HID devices
290uhid*	at uhidev? reportid ?
291
292# USB Printer
293ulpt*	at uhub? port ? configuration ? interface ?
294
295# USB Modem
296umodem*	at uhub? port ? configuration ?
297ucom*	at umodem?
298
299# Option N.V. Wireless WAN modems
300uhso*	at uhub? port ? configuration ?
301
302# USB Mass Storage
303umass*	at uhub? port ? configuration ? interface ?
304scsibus* at umass?
305
306# USB audio
307uaudio*	at uhub? port ? configuration ?
308
309# USB MIDI
310umidi* at uhub? port ? configuration ?
311
312# USB IrDA
313# USB-IrDA bridge spec
314uirda* at uhub? port ? configuration ? interface ?
315irframe* at uirda?
316
317# SigmaTel STIr4200 USB/IrDA Bridge
318ustir* at uhub? port ?
319irframe* at ustir?
320
321# USB Ethernet adapters
322aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
323axe*	at uhub? port ?		# ASIX AX88172 based adapters
324cdce*	at uhub? port ?		# CDC, Ethernet Networking Control Model
325cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
326kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
327mue*	at uhub? port ?		# Microchip LAN75xx/LAN78xx based adapters
328udav*	at uhub? port ?		# Davicom DM9601 based adapters
329ural*	at uhub? port ?		# Ralink Technology RT2500USB 802.11a/b/g
330ure*	at uhub? port ?		# Realtek RTL8152/RTL8153 based adapters
331url*	at uhub? port ?		# Realtek RTL8150L based adapters
332
333# USB 802.11b adapters
334atu*	at uhub? port ?		# Atmel AT76C50XX based adapters
335
336# Prolific PL2301/PL2302 host-to-host adapter
337upl*	at uhub? port ?
338
339# Serial adapters
340ubsa*	at uhub? port ?		# Belkin serial adapter
341ucom*	at ubsa? portno ?
342
343uftdi*	at uhub? port ?		# FTDI FT8U100AX serial adapter
344ucom*	at uftdi? portno ?
345
346umct*	at uhub? port ?		# MCT USB-RS232 serial adapter
347ucom*	at umct? portno ?
348
349uplcom* at uhub? port ? 	# I/O DATA USB-RSAQ2 serial adapter
350ucom*	at uplcom? portno ?
351
352uvscom* at uhub? port ? 	# SUNTAC Slipper U VS-10U serial adapter
353ucom*	at uvscom? portno ?
354
355# Diamond Multimedia Rio 500
356urio*	at uhub? port ?
357
358# USB Handspring Visor
359uvisor*	at uhub? port ?
360ucom*	at uvisor?
361
362# Kyocera AIR-EDGE PHONE
363ukyopon* at uhub? port ?
364ucom*	at ukyopon? portno ?
365
366# USB scanners
367#uscanner* at uhub? port ?
368
369# USB scanners that use SCSI emulation, e.g., HP5300
370usscanner* at uhub? port ?
371
372# Y@P firmware loader
373uyap* at uhub? port ?
374
375# D-Link DSB-R100 USB radio
376udsbr*	at uhub? port ?
377radio*	at udsbr?
378
379# USB Generic driver
380ugen*	at uhub? port ?
381
382
383# Audio Devices
384
385# Audio support
386audio*	at audiobus?
387
388spkr*	at audio?		# PC speaker (synthesized)
389
390# MIDI support
391midi*	at midibus?
392
393
394# Miscellaneous Devices
395
396# Power switch
397pwrsw0	at obio?
398
399# Reset button, USL-5P misc button
400btn0	at obio?
401
402# Pull in optional local configuration
403cinclude "arch/landisk/conf/GENERIC.local"
404
405
406# Pseudo-Devices
407
408#
409# accept filters
410pseudo-device   accf_data		# "dataready" accept filter
411pseudo-device   accf_http		# "httpready" accept filter
412
413# disk/mass storage pseudo-devices
414pseudo-device	ccd			# concatenated/striped disk devices
415#pseudo-device	cgd			# cryptographic disk devices
416pseudo-device	raid			# RAIDframe disk driver
417options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
418# Options to enable various other RAIDframe RAID types.
419#options 	RF_INCLUDE_EVENODD=1
420#options 	RF_INCLUDE_RAID5_RS=1
421#options 	RF_INCLUDE_PARITYLOGGING=1
422#options 	RF_INCLUDE_CHAINDECLUSTER=1
423#options 	RF_INCLUDE_INTERDECLUSTER=1
424#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
425#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
426pseudo-device	fss			# file system snapshot device
427
428pseudo-device	md			# memory disk device (ramdisk)
429pseudo-device	vnd			# disk-like interface to files
430options 	VND_COMPRESSION		# compressed vnd(4)
431
432# network pseudo-devices
433pseudo-device	bpfilter		# Berkeley packet filter
434pseudo-device 	carp			# Common Address Redundancy Protocol
435pseudo-device	npf			# NPF packet filter
436pseudo-device	loop			# network loopback
437pseudo-device	ppp			# Point-to-Point Protocol
438pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
439pseudo-device	sl			# Serial Line IP
440pseudo-device	irframetty		# IrDA frame line discipline
441pseudo-device	tap			# virtual Ethernet
442pseudo-device	tun			# network tunneling over tty
443pseudo-device	gre			# generic L3 over IP tunnel
444pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
445#pseudo-device	faith			# IPv[46] tcp relay translation i/f
446#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
447pseudo-device	vlan			# IEEE 802.1q encapsulation
448pseudo-device	bridge			# simple inter-network bridging
449#options 	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
450pseudo-device	agr			# IEEE 802.3ad link aggregation
451
452# miscellaneous pseudo-devices
453pseudo-device	pty			# pseudo-terminals
454pseudo-device	sequencer		# MIDI sequencer
455pseudo-device	clockctl		# user control of clock subsystem
456pseudo-device	drvctl			# user control of drive subsystem
457pseudo-device	ksyms			# /dev/ksyms
458pseudo-device	putter			# for puffs and pud
459
460# a pseudo device needed for Coda	# also needs CODA (above)
461pseudo-device	vcoda			# coda minicache <-> venus comm.
462
463# a pseudo device needed for SMBFS
464pseudo-device	nsmb			# experimental - SMB requester
465
466# wscons pseudo-devices
467pseudo-device	wsmux			# mouse & keyboard multiplexor
468#pseudo-device	wsfont
469
470include "dev/veriexec.config"
471
472options 	PAX_ASLR_DEBUG=1	# PaX ASLR debug
473options 	PAX_SEGVGUARD=0		# PaX Segmentation fault guard
474options 	PAX_MPROTECT=1		# PaX mprotect(2) restrictions
475options 	PAX_MPROTECT_DEBUG=1	# PaX mprotect debug
476options 	PAX_ASLR=1		# PaX Address Space Layout Randomization
477