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