1#	$NetBSD: GENERIC,v 1.118 2025/10/13 14:49:16 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/iyonix/conf/std.iyonix"
22
23options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
24
25#ident 		"GENERIC-$Revision: 1.118 $"
26
27maxusers	32		# estimated number of users
28
29options 	MSGBUFSIZE=65536
30
31# CPU options
32
33# For XScale systems
34options 	CPU_XSCALE_80321	# Support the XScale core
35makeoptions	CPUFLAGS="-mcpu=xscale"
36
37# Architecture options
38options 	XSCALE_CACHE_READ_WRITE_ALLOCATE
39#options 	HZ=512
40
41# Standard system options
42
43options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
44#options 	NTP		# NTP phase/frequency locked loop
45
46#options 	KTRACE		# system call tracing via ktrace(1)
47
48
49#options 	SYSVMSG		# System V-like message queues
50#options 	SYSVSEM		# System V-like semaphores
51#options 	SYSVSHM		# System V-like memory sharing
52
53# Device options
54
55# Console options.  The default console is speed is 115200 baud.
56#options 	CONSPEED=9600		# Console speed
57
58# Miscellaneous kernel options
59options 	KTRACE		# system call tracing, a la ktrace(1)
60options 	IRQSTATS	# manage IRQ statistics
61#options 	SCSIVERBOSE	# Verbose SCSI errors
62options 	PCIVERBOSE	# Verbose PCI descriptions
63options 	MIIVERBOSE	# Verbose MII autoconfuration messages
64#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
65
66options 	USERCONF	# userconf(4) support
67#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
68#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
69
70# Development and Debugging options
71
72# Alternate buffer queue strategies for better responsiveness under high
73# disk I/O load.
74#options 	BUFQ_READPRIO
75options 	BUFQ_PRIOCSCAN
76
77# Diagnostic/debugging support options
78#options 	DIAGNOSTIC	# expensive kernel consistency checks
79#options 	DEBUG		# expensive debugging checks/support
80options 	DDB		# in-kernel debugger
81#options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
82options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
83#options 	DDB_KEYCODE=0x40
84#options 	KGDB		# remote debugger
85#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
86#makeoptions	DEBUG="-g"	# compile full symbol table
87makeoptions	COPY_SYMTAB=1
88#options 	UVMHIST		# kernhist for uvm/pmap subsystems
89#options 	VERBOSE_INIT_ARM # verbose bootstraping messages
90
91#options 	PMAP_INCLUDE_PTE_SYNC
92#options 	LOCKDEBUG
93
94
95# Compatibility options
96
97include 	"conf/compat_netbsd70.config"
98options 	COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
99
100# File systems
101file-system 	FFS		# UFS
102#file-system 	EXT2FS		# second extended file system (linux)
103#file-system 	LFS		# log-structured file system
104#file-system 	MFS		# memory file system
105file-system 	NFS		# Network File System client
106#file-system 	NTFS		# Windows/NT file system (experimental)
107file-system 	CD9660		# ISO 9660 + Rock Ridge file system
108file-system 	MSDOSFS		# MS-DOS file system
109#file-system 	FDESC		# /dev/fd
110file-system 	KERNFS		# /kern
111#file-system 	NULLFS		# loopback file system
112#file-system 	OVERLAY		# overlay file system
113file-system 	PROCFS		# /proc
114#file-system 	UMAPFS		# NULLFS + uid and gid remapping
115#file-system 	UNION		# union file system
116#file-system	CODA		# Coda File System; also needs vcoda (below)
117file-system	PTYFS		# /dev/ptm support
118file-system	TMPFS		# Efficient memory file-system
119#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
120#file-system	HFS		# experimental - Apple HFS+ (read-only)
121file-system     FILECORE        # Acorn filecore file system
122
123# File system options
124#options 	FFS_EI		# FFS Endian Independent support
125options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
126#options 	QUOTA		# legacy UFS quotas
127#options 	QUOTA2		# new, in-filesystem UFS quotas
128#options 	UFS_DIRHASH	# UFS Large Directory Hashing
129#options 	UFS_EXTATTR	# Extended attribute support for UFS1
130options 	WAPBL		# File system journaling support
131#options 	NFSSERVER	# Network File System server
132
133# Networking options
134#options 	GATEWAY		# packet forwarding
135options 	INET		# IP + ICMP + TCP + UDP
136options 	INET6		# IPV6
137#options 	IPSEC		# IP security
138#options 	IPSEC_DEBUG	# debug for IP security
139#options 	MROUTING	# IP multicast routing
140#options 	PIM		# Protocol Independent Multicast
141#options 	NETATALK	# AppleTalk networking protocols
142#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
143#options 	PPP_DEFLATE	# Deflate compression support for PPP
144#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
145#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
146
147#options 	ALTQ		# Manipulate network interfaces' output queues
148#options 	ALTQ_BLUE	# Stochastic Fair Blue
149#options 	ALTQ_CBQ	# Class-Based Queueing
150#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
151#options 	ALTQ_FIFOQ	# First-In First-Out Queue
152#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
153#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
154#options 	ALTQ_LOCALQ	# Local queueing discipline
155#options 	ALTQ_PRIQ	# Priority Queueing
156#options 	ALTQ_RED	# Random Early Detection
157#options 	ALTQ_RIO	# RED with IN/OUT
158#options 	ALTQ_WFQ	# Weighted Fair Queueing
159
160
161options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
162
163#options 	DKWEDGE_AUTODISCOVER
164#options 	DKWEDGE_METHOD_BSDLABEL
165#options 	DKWEDGE_METHOD_MBR
166
167options 	INSECURE
168
169# Kernel root file system and dump configuration.
170config		netbsd	root on ? type ?
171#config		netbsd	root on wd1a type ffs
172#config		netbsd	root on wm0 type nfs
173#config		netbsd	root on "wedge:system/a" type ffs
174
175#
176# Device configuration
177#
178
179mainbus0 at root
180
181cpu0 at mainbus?
182
183# i80321 I/O Processor peripheral support
184iopxs*          at mainbus?
185
186iopaau*         at iopxs?               # Application Accelerator Unit
187iopiic*         at iopxs?               # I2C Controller Unit(s)
188iic0            at iopiic?
189iic1            at iopiic?
190iopwdog*        at iopxs?               # Watchdog timer
191pci0            at iopxs? bus ?         # PCI/PCI-X support
192
193# The curious can see their RAM timings.
194spdmem* at iic1 addr 0x56
195
196# onboard RTC.
197dsrtc0 	at iic0 addr 0x68
198
199# PCI bridges
200ppb*	at pci? dev ? function ?	# PCI-PCI bridges
201pci*	at ppb? bus ?
202# XXX 'puc's aren't really bridges, but there's no better place for them here
203#puc*	at pci? dev ? function ?	# PCI "universal" comm. cards
204
205#options COMCONSOLE
206
207# VGA
208#vga*            at pci? dev ? function ?
209genfb*		at pci? dev ? function ?
210#options 	GENFB_PCI_DEBUG
211#gffb*		at pci? dev ? function ?
212
213# these exist but aren't configured by RISC OS
214#alipm*		at pci?
215#iic*		at alipm?
216
217# Display
218wsdisplay0      at wsemuldisplaydev? console 1
219wsdisplay*      at wsemuldisplaydev?
220
221#options 	WSEMUL_SUN		# sun terminal emulation
222options 	WSEMUL_VT100		# vt100 terminal emulation
223options 	WS_DEFAULT_FG=WSCOL_BLACK
224options 	WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
225options 	WS_KERNEL_FG=WSCOL_GREEN
226options 	WS_KERNEL_BG=WSCOL_LIGHT_WHITE
227options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
228options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
229options 	WSDISPLAY_COMPAT_USL		# VT handling
230options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
231#options 	WSDISPLAY_DEFAULTSCREENS=4
232options 	FONT_GO_MONO12x23
233options		WSDISPLAY_SCROLLSUPPORT
234options 	VCONS_DRAW_INTR
235options 	RASOPS_DEFAULT_WIDTH=100
236options 	RASOPS_DEFAULT_HEIGHT=30
237
238# IDE and related devices
239# PCI IDE controllers - see pciide(4) for supported hardware.
240# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
241# how to set up DMA modes for this chip. This may work, or may cause
242# a machine hang with some controllers.
243#pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
244aceride* 	at pci? dev ? function ?	# Acer Lab IDE controllers
245#mvsata* 	at pci? dev ? function ?
246
247# ATA (IDE) bus support
248atabus* at ata?
249#options	ATADEBUG
250
251# IDE drives
252# Flags are used only with controllers that support DMA operations
253# and mode settings (e.g. some pciide controllers)
254# The lowest order four bits (rightmost digit) of the flags define the PIO
255# mode to use, the next set of four bits the DMA mode and the third set the
256# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
257# to use, and the last bit must be 1 for this setting to be used.
258# For DMA and UDMA, 0xf (1111) means 'disable'.
259# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
260# (0xc=1100, 0xa=1010, 0xf=1111)
261# 0x0000 means "use whatever the drive claims to support".
262wd*	at atabus? drive ? flags 0x0000
263
264# ATAPI bus support
265atapibus* at atapi?
266
267# ATAPI devices
268# flags have the same meaning as for IDE drives.
269# XXX No DMA on IDE devices for now
270cd*	at atapibus? drive ? flags 0x0ff0	# ATAPI CD-ROM drives
271sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
272st*	at atapibus? drive ? flags 0x0000	# ATAPI tape drives
273uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
274
275
276# Network Interfaces
277
278# onboard ethernet
279wm*	at pci? dev ? function ?	# Intel 8254x gigabit
280
281# MII/PHY support
282makphy* at mii? phy ?			# Marvell Semiconductor 88E1000 PHYs
283ukphy*	at mii? phy ?			# generic unknown PHYs
284
285
286# USB Controller and Devices
287
288# Iyonix ships with an ehci/ohci card
289ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
290ohci*	at pci?	dev ? function ?	# Open Host Controller
291#uhci*	at pci?	dev ? function ?	# Universal Host Controller (Intel)
292
293# USB bus support
294usb*	at ehci?
295usb*	at ohci?
296#usb*	at uhci?
297#usb*	at slhci?
298
299# USB Hubs
300uhub*	at usb?
301uhub*	at uhub? port ?
302
303# USB HID device
304uhidev*	at uhub? port ? configuration ? interface ?
305
306# USB Mice
307ums*	at uhidev? reportid ?
308wsmouse* at ums? mux 0
309
310# USB eGalax touch-panel
311#uep*	at uhub? port ?
312#wsmouse* at uep? mux 0
313
314# USB Keyboards
315ukbd*	at uhidev? reportid ?
316wskbd*	at ukbd? console ? mux 1
317
318# USB Generic HID devices
319uhid*	at uhidev? reportid ?
320
321# USB Mass Storage
322umass*	at uhub? port ? configuration ? interface ?
323
324# USB audio
325uaudio*	at uhub? port ? configuration ?
326
327# USB MIDI
328#umidi* at uhub? port ? configuration ?
329
330# USB Ethernet adapters
331#axe*	at uhub? port ?		# ASIX AX88172 based adapters
332
333uplcom* at uhub? port ? 	# I/O DATA USB-RSAQ2 serial adapter
334ucom*	at uplcom? portno ?
335
336# USB Generic driver
337#ugen*	at uhub? port ?
338
339
340# Iyonix onboard audio
341autri*	at pci? dev ? function ?	# Trident 4DWAVE based AC'97 Audio
342
343# Audio support
344audio*	at audiobus?
345
346spkr*	at audio?		# PC speaker (synthesized)
347
348# On-board device support
349
350obio*	at mainbus?
351com1	at obio? addr 0x900003e8 xint 1 # on-board UART
352com0	at obio? addr 0x900002f8 xint 1 # on-board UART
353#com*	at obio? addr 0x900003e8 xint 1 # on-board UART
354#com*	at obio? addr 0x900003f8 xint 1 # on-board UART
355
356# Pseudo-Devices
357
358#pseudo-device 	crypto		# /dev/crypto device
359#pseudo-device	swcrypto	# software crypto implementation
360
361# disk/mass storage pseudo-devices
362
363pseudo-device	fss			# file system snapshot device
364
365# network pseudo-devices
366pseudo-device	bpfilter		# Berkeley packet filter
367pseudo-device	carp			# Common Address Redundancy Protocol
368#pseudo-device	npf			# NPF packet filter
369pseudo-device	loop			# network loopback
370#pseudo-device	ppp			# Point-to-Point Protocol
371#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
372#pseudo-device	sl			# Serial Line IP
373#pseudo-device	irframetty		# IrDA frame line discipline
374#pseudo-device	tap			# virtual Ethernet
375#pseudo-device	tun			# network tunneling over tty
376#pseudo-device	gre			# generic L3 over IP tunnel
377#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
378#pseudo-device	faith			# IPv[46] tcp relay translation i/f#
379#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
380#pseudo-device	vlan			# IEEE 802.1q encapsulation
381#pseudo-device	bridge			# simple inter-network bridging
382#pseudo-device	vether			# Virtual Ethernet for bridge
383#pseudo-device	agr			# IEEE 802.3ad link aggregation
384# srt is EXPERIMENTAL
385#pseudo-device	srt			# source-address-based routing
386
387#
388# accept filters
389pseudo-device   accf_data		# "dataready" accept filter
390pseudo-device   accf_http		# "httpready" accept filter
391
392# miscellaneous pseudo-devices
393pseudo-device	pty			# pseudo-terminals
394#options 	RND_COM			# use "com" randomness as well (BROKEN)
395pseudo-device	clockctl		# user control of clock subsystem
396pseudo-device	drvctl			# user control of drive subsystem
397pseudo-device	ksyms			# /dev/ksyms
398pseudo-device 	swwdog			# software watchdog timer -- swwdog(4)
399
400# wscons pseudo-devices
401pseudo-device	wsmux			# mouse & keyboard multiplexor
402pseudo-device	wsfont
403
404include "dev/veriexec.config"
405
406#options PAX_MPROTECT=0                        # PaX mprotect(2) restrictions
407
408# Pull in optional local configuration - always at end
409cinclude	"arch/iyonix/conf/GENERIC.local"
410