GENERIC revision 1.4
1# $NetBSD: GENERIC,v 1.4 2007/03/14 12:27:24 drochner 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.4 $"
26
27maxusers	16		# estimated number of users
28
29makeoptions     COPTS="-O -m4-nofpu"
30options 	SYMTAB_SPACE=512000
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#options 	SYSTRACE	# system call vetting via systrace(1)
57
58options 	SYSVMSG		# System V-like message queues
59options 	SYSVSEM		# System V-like semaphores
60#options 	SEMMNI=10	# number of semaphore identifiers
61#options 	SEMMNS=60	# number of semaphores in system
62#options 	SEMUME=10	# max number of undo entries per process
63#options 	SEMMNU=30	# number of undo structures in system
64options 	SYSVSHM		# System V-like memory sharing
65#options 	SHMMAXPGS=2048	# 2048 pages is the default
66options 	P1003_1B_SEMAPHORE	# p1003.1b semaphore support
67
68options 	LKM		# loadable kernel modules
69
70options 	USERCONF	# userconf(4) support
71#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
72options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
73
74# Enable experimental buffer queue strategy for better responsiveness under
75# high disk I/O load. Likely stable but not yet the default.
76#options 	BUFQ_READPRIO
77#options 	BUFQ_PRIOCSCAN
78
79# Diagnostic/debugging support options
80#options 	DIAGNOSTIC	# cheap kernel consistency checks
81#options 	DEBUG		# expensive debugging checks/support
82#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
83options 	DDB		# in-kernel debugger
84#options 	DDB_ONPANIC=1	# see also sysctl(8): `ddb.onpanic'
85options 	DDB_HISTORY_SIZE=512	# Enable history editing in DDB
86#makeoptions	DEBUG="-g -fno-omit-frame-pointer"
87
88# Compatibility options
89options 	COMPAT_16	# NetBSD 1.6,
90options 	COMPAT_20	# NetBSD 2.0,
91options 	COMPAT_30	# NetBSD 3.0,
92options 	COMPAT_43	# and 4.3BSD
93#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
94
95options 	COMPAT_OSSAUDIO	# OSS (Voxware) audio driver compatibility
96options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
97
98# Executable format options
99options 	EXEC_COFF	# COFF executables
100
101# File systems
102file-system 	FFS		# UFS
103file-system 	EXT2FS		# second extended file system (linux)
104file-system 	LFS		# log-structured file system
105file-system 	MFS		# memory file system
106file-system 	NFS		# Network File System client
107file-system 	NTFS		# Windows/NT file system (experimental)
108file-system 	CD9660		# ISO 9660 + Rock Ridge file system
109file-system 	MSDOSFS		# MS-DOS file system
110file-system 	FDESC		# /dev/fd
111file-system 	KERNFS		# /kern
112file-system 	NULLFS		# loopback file system
113file-system 	OVERLAY		# overlay file system
114file-system 	PORTAL		# portal filesystem (still experimental)
115file-system 	PROCFS		# /proc
116file-system 	UMAPFS		# NULLFS + uid and gid remapping
117file-system 	UNION		# union file system
118file-system	CODA		# Coda File System; also needs vcoda (below)
119file-system	SMBFS		# experimental - CIFS; also needs nsmb (below)
120file-system	PTYFS		# /dev/pts/N support
121#file-system	TMPFS		# Efficient memory file-system
122#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
123
124# File system options
125options 	QUOTA		# UFS quotas
126#options 	FFS_EI		# FFS Endian Independent support
127options 	SOFTDEP		# FFS soft updates support.
128#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
129options 	NFSSERVER	# Network File System server
130#options 	FFS_NO_SNAPSHOT	# ffs snapshots
131#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
132				# immutable) behave as system flags.
133
134# Networking options
135#options 	GATEWAY		# packet forwarding
136options 	INET		# IP + ICMP + TCP + UDP
137options 	INET6		# IPV6
138#options 	IPSEC		# IP security
139#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
140#options 	IPSEC_DEBUG	# debug for IP security
141#options 	MROUTING	# IP multicast routing
142#options 	PIM		# Protocol Independent Multicast
143#options 	ISO,TPIP	# OSI
144#options 	EON		# OSI tunneling over IP
145#options 	NETATALK	# AppleTalk networking protocols
146#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
147#options 	PPP_DEFLATE	# Deflate compression support for PPP
148#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
149#options 	PFIL_HOOKS	# pfil(9) packet filter hooks
150#options 	IPFILTER_LOG	# ipmon(8) log support
151#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
152#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
153
154#options 	ALTQ		# Manipulate network interfaces' output queues
155#options 	ALTQ_BLUE	# Stochastic Fair Blue
156#options 	ALTQ_CBQ	# Class-Based Queueing
157#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
158#options 	ALTQ_FIFOQ	# First-In First-Out Queue
159#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
160#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
161#options 	ALTQ_LOCALQ	# Local queueing discipline
162#options 	ALTQ_PRIQ	# Priority Queueing
163#options 	ALTQ_RED	# Random Early Detection
164#options 	ALTQ_RIO	# RED with IN/OUT
165#options 	ALTQ_WFQ	# Weighted Fair Queueing
166
167# These options enable verbose messages for several subsystems.
168# Warning, these may compile large string tables into the kernel!
169options 	MIIVERBOSE	# verbose PHY autoconfig messages
170options 	PCIVERBOSE	# verbose PCI device autoconfig messages
171#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
172options 	SCSIVERBOSE	# human readable SCSI error messages
173options 	USBVERBOSE	# verbose USB device autoconfig messages
174
175options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
176
177
178# Kernel root file system and dump configuration.
179#config		netbsd	root on ? type ?
180config		netbsd	root on wd0a type ffs
181#config		netbsd	root on ? type nfs
182
183
184#
185# Device configuration
186#
187
188mainbus0 at root
189
190cpu*	at mainbus?
191
192# Basic Bus Support
193
194# PCI bus support
195options 	PCI_NETBSD_CONFIGURE
196shpcic*	at mainbus?		# SH7751 PCIC
197pci0	at shpcic? bus ?
198
199# SH bus
200shb*	at mainbus?
201
202# ob-board I/O bus
203obio0	at mainbus?
204
205# Serial Devices
206
207options 	SCIFCONSOLE
208options 	SCIFCN_SPEED=9600
209scif0	at shb?
210
211rs5c313rtc0 at shb0			# time-of-day clock
212
213# SCSI Controllers and Devices
214
215# SCSI devices
216sd*	at scsibus? target ? lun ?	# SCSI disk drives
217st*	at scsibus? target ? lun ?	# SCSI tape drives
218cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
219ch*	at scsibus? target ? lun ?	# SCSI autochangers
220ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
221ss*	at scsibus? target ? lun ?	# SCSI scanners
222uk*	at scsibus? target ? lun ?	# SCSI unknown
223
224# IDE and related devices
225# PCI IDE controllers - see pciide(4) for supported hardware.
226# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
227# how to set up DMA modes for this chip. This may work, or may cause
228# a machine hang with some controllers.
229pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
230acardide*	at pci? dev ? function ?	# Acard IDE controllers
231
232wdc0	at obio? port 0x14000000 irq 10		# CF
233#wdc1	at obio? port 0x18000000 irq 9		# iConnect
234
235# ATA (IDE) bus support
236atabus*	at ata?
237
238# IDE drives
239# Flags are used only with controllers that support DMA operations
240# and mode settings (e.g. some pciide controllers)
241# The lowest order four bits (rightmost digit) of the flags define the PIO
242# mode to use, the next set of four bits the DMA mode and the third set the
243# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
244# to use, and the last bit must be 1 for this setting to be used.
245# For DMA and UDMA, 0xf (1111) means 'disable'.
246# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
247# (0xc=1100, 0xa=1010, 0xf=1111)
248# 0x0000 means "use whatever the drive claims to support".
249wd*	at atabus? drive ? flags 0x0000
250
251# ATAPI bus support
252atapibus* at atapi?
253
254# ATAPI devices
255# flags have the same meaning as for IDE drives.
256cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
257sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
258uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
259
260# Network Interfaces
261
262# PCI network interfaces
263#re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
264rtk*	at pci? dev ? function ?	# Realtek 8129/8139
265
266# MII/PHY support
267rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
268urlphy* at mii? phy ?			# Realtek RTL8150L internal PHYs
269ukphy*	at mii? phy ?			# generic unknown PHYs
270
271
272# USB Controller and Devices
273
274# PCI USB controllers
275ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
276ohci*	at pci?	dev ? function ?	# Open Host Controller
277
278# USB bus support
279usb*	at ehci?
280usb*	at ohci?
281
282# USB Hubs
283uhub*	at usb?
284uhub*	at uhub? port ?
285
286# USB HID device
287uhidev*	at uhub? port ? configuration ? interface ?
288
289# USB Mice
290ums*	at uhidev? reportid ?
291wsmouse* at ums? mux 0
292
293# USB Keyboards
294ukbd*	at uhidev? reportid ?
295wskbd*	at ukbd? console ? mux 1
296
297# USB serial adpater
298ucycom* at uhidev? reportid ?
299
300# USB Generic HID devices
301uhid*	at uhidev? reportid ?
302
303# USB Printer
304ulpt*	at uhub? port ? configuration ? interface ?
305
306# USB Modem
307umodem*	at uhub? port ? configuration ?
308ucom*	at umodem?
309
310# USB Mass Storage
311umass*	at uhub? port ? configuration ? interface ?
312scsibus* at umass?
313wd*	at umass?
314
315# USB audio
316uaudio*	at uhub? port ? configuration ?
317
318# USB MIDI
319umidi* at uhub? port ? configuration ?
320
321# USB IrDA
322# USB-IrDA bridge spec
323uirda* at uhub? port ? configuration ? interface ?
324irframe* at uirda?
325
326# SigmaTel STIr4200 USB/IrDA Bridge
327ustir* at uhub? port ?
328irframe* at ustir?
329
330# USB Ethernet adapters
331aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
332axe*	at uhub? port ?		# ASIX AX88172 based adapters
333cdce*	at uhub? port ?		# CDC, Ethernet Networking Control Model
334cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
335kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
336udav*	at uhub? port ?		# Davicom DM9601 based adapters
337ral*	at uhub? port ?		#
338url*	at uhub? port ?		# Realtek RTL8150L based adapters
339
340# USB 802.11b adapters
341atu*	at uhub? port ?		# Atmel AT76C50XX based adapters
342
343# Prolific PL2301/PL2302 host-to-host adapter
344upl*	at uhub? port ?
345
346# Serial adapters
347ubsa*	at uhub? port ?		# Belkin serial adapter
348ucom*	at ubsa? portno ?
349
350uftdi*	at uhub? port ?		# FTDI FT8U100AX serial adapter
351ucom*	at uftdi? portno ?
352
353umct*	at uhub? port ?		# MCT USB-RS232 serial adapter
354ucom*	at umct? portno ?
355
356uplcom* at uhub? port ? 	# I/O DATA USB-RSAQ2 serial adapter
357ucom*	at uplcom? portno ?
358
359uvscom* at uhub? port ? 	# SUNTAC Slipper U VS-10U serial adapter
360ucom*	at uvscom? portno ?
361
362# Diamond Multimedia Rio 500
363urio*	at uhub? port ?
364
365# USB Handspring Visor
366uvisor*	at uhub? port ?
367ucom*	at uvisor?
368
369# Kyocera AIR-EDGE PHONE
370ukyopon* at uhub? port ?
371ucom*	at ukyopon? portno ?
372
373# USB scanners
374uscanner* at uhub? port ?
375
376# USB scanners that use SCSI emulation, e.g., HP5300
377usscanner* at uhub? port ?
378
379# Y@P firmware loader
380uyap* at uhub? port ?
381
382# D-Link DSB-R100 USB radio
383udsbr*	at uhub? port ?
384radio*	at udsbr?
385
386# USB Generic driver
387ugen*	at uhub? port ?
388
389
390# Audio Devices
391
392# Audio support
393audio*	at audiobus?
394
395# MIDI support
396midi*	at midibus?
397
398
399# Miscellaneous Devices
400
401# Power switch
402pwrsw0	at obio?
403
404# Reset button, USL-5P misc button
405btn0	at obio?
406
407# Pull in optional local configuration
408include "arch/landisk/conf/GENERIC.local"
409
410
411# Pseudo-Devices
412
413# disk/mass storage pseudo-devices
414pseudo-device	ccd		4	# concatenated/striped disk devices
415#pseudo-device	cgd		4	# cryptographic disk devices
416pseudo-device	raid		8	# 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		4	# file system snapshot device
427
428pseudo-device	md		1	# 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	ipfilter		# IP filter (firewall) and NAT
435pseudo-device	loop			# network loopback
436pseudo-device	ppp			# Point-to-Point Protocol
437pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
438pseudo-device	sl			# Serial Line IP
439pseudo-device	strip			# Starmode Radio IP (Metricom)
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
450#pseudo-device	pf			# PF packet filter
451#pseudo-device	pflog			# PF log if
452
453# miscellaneous pseudo-devices
454pseudo-device	pty			# pseudo-terminals
455pseudo-device	sequencer	1	# MIDI sequencer
456pseudo-device	rnd			# /dev/random and in-kernel generator
457pseudo-device	clockctl		# user control of clock subsystem
458pseudo-device	ksyms			# /dev/ksyms
459
460# a pseudo device needed for Coda	# also needs CODA (above)
461pseudo-device	vcoda		4	# 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