GENERIC revision 1.8
1# $NetBSD: GENERIC,v 1.8 2007/06/04 08:55:21 martin 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.8 $"
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#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_40	# NetBSD 4.0,
93options 	COMPAT_43	# and 4.3BSD
94#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
95
96options 	COMPAT_OSSAUDIO	# OSS (Voxware) audio driver compatibility
97options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
98
99# Executable format options
100options 	EXEC_COFF	# COFF executables
101
102# File systems
103file-system 	FFS		# UFS
104file-system 	EXT2FS		# second extended file system (linux)
105file-system 	LFS		# log-structured file system
106file-system 	MFS		# memory file system
107file-system 	NFS		# Network File System client
108file-system 	NTFS		# Windows/NT file system (experimental)
109file-system 	CD9660		# ISO 9660 + Rock Ridge file system
110file-system 	MSDOSFS		# MS-DOS file system
111file-system 	FDESC		# /dev/fd
112file-system 	KERNFS		# /kern
113file-system 	NULLFS		# loopback file system
114file-system 	OVERLAY		# overlay file system
115file-system 	PORTAL		# portal filesystem (still experimental)
116file-system 	PROCFS		# /proc
117file-system 	UMAPFS		# NULLFS + uid and gid remapping
118file-system 	UNION		# union file system
119file-system	CODA		# Coda File System; also needs vcoda (below)
120file-system	SMBFS		# experimental - CIFS; also needs nsmb (below)
121file-system	PTYFS		# /dev/pts/N support
122#file-system	TMPFS		# Efficient memory file-system
123#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
124
125# File system options
126options 	QUOTA		# UFS quotas
127#options 	FFS_EI		# FFS Endian Independent support
128options 	SOFTDEP		# FFS soft updates support.
129#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
130options 	NFSSERVER	# Network File System server
131#options 	FFS_NO_SNAPSHOT	# ffs snapshots
132#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
133				# immutable) behave as system flags.
134
135# Networking options
136#options 	GATEWAY		# packet forwarding
137options 	INET		# IP + ICMP + TCP + UDP
138options 	INET6		# IPV6
139#options 	IPSEC		# IP security
140#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
141#options 	IPSEC_DEBUG	# debug for IP security
142#options 	MROUTING	# IP multicast routing
143#options 	PIM		# Protocol Independent Multicast
144#options 	ISO,TPIP	# OSI
145#options 	EON		# OSI tunneling over IP
146#options 	NETATALK	# AppleTalk networking protocols
147#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
148#options 	PPP_DEFLATE	# Deflate compression support for PPP
149#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
150#options 	PFIL_HOOKS	# pfil(9) packet filter hooks
151#options 	IPFILTER_LOG	# ipmon(8) log support
152#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
153#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
154
155#options 	ALTQ		# Manipulate network interfaces' output queues
156#options 	ALTQ_BLUE	# Stochastic Fair Blue
157#options 	ALTQ_CBQ	# Class-Based Queueing
158#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
159#options 	ALTQ_FIFOQ	# First-In First-Out Queue
160#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
161#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
162#options 	ALTQ_LOCALQ	# Local queueing discipline
163#options 	ALTQ_PRIQ	# Priority Queueing
164#options 	ALTQ_RED	# Random Early Detection
165#options 	ALTQ_RIO	# RED with IN/OUT
166#options 	ALTQ_WFQ	# Weighted Fair Queueing
167
168# These options enable verbose messages for several subsystems.
169# Warning, these may compile large string tables into the kernel!
170options 	MIIVERBOSE	# verbose PHY autoconfig messages
171options 	PCIVERBOSE	# verbose PCI device autoconfig messages
172#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
173options 	SCSIVERBOSE	# human readable SCSI error messages
174options 	USBVERBOSE	# verbose USB device autoconfig messages
175
176options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
177
178
179# Kernel root file system and dump configuration.
180#config		netbsd	root on ? type ?
181config		netbsd	root on wd0a type ffs
182#config		netbsd	root on ? type nfs
183
184
185#
186# Device configuration
187#
188
189mainbus0 at root
190
191cpu*	at mainbus?
192
193# Basic Bus Support
194
195# PCI bus support
196options 	PCI_NETBSD_CONFIGURE
197shpcic*	at mainbus?		# SH7751 PCIC
198pci0	at shpcic? bus ?
199
200# SH bus
201shb*	at mainbus?
202
203# ob-board I/O bus
204obio0	at mainbus?
205
206# Serial Devices
207
208options 	SCIFCONSOLE
209options 	SCIFCN_SPEED=9600
210scif0	at shb?
211
212rs5c313rtc0 at shb0			# time-of-day clock
213
214# SCSI Controllers and Devices
215
216# SCSI devices
217sd*	at scsibus? target ? lun ?	# SCSI disk drives
218st*	at scsibus? target ? lun ?	# SCSI tape drives
219cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
220ch*	at scsibus? target ? lun ?	# SCSI autochangers
221ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
222ss*	at scsibus? target ? lun ?	# SCSI scanners
223uk*	at scsibus? target ? lun ?	# SCSI unknown
224
225# IDE and related devices
226# PCI IDE controllers - see pciide(4) for supported hardware.
227# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know
228# how to set up DMA modes for this chip. This may work, or may cause
229# a machine hang with some controllers.
230pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
231acardide*	at pci? dev ? function ?	# Acard IDE controllers
232
233wdc0	at obio? port 0x14000000 irq 10		# CF
234#wdc1	at obio? port 0x18000000 irq 9		# iConnect
235
236# ATA (IDE) bus support
237atabus*	at ata?
238
239# IDE drives
240# Flags are used only with controllers that support DMA operations
241# and mode settings (e.g. some pciide controllers)
242# The lowest order four bits (rightmost digit) of the flags define the PIO
243# mode to use, the next set of four bits the DMA mode and the third set the
244# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
245# to use, and the last bit must be 1 for this setting to be used.
246# For DMA and UDMA, 0xf (1111) means 'disable'.
247# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
248# (0xc=1100, 0xa=1010, 0xf=1111)
249# 0x0000 means "use whatever the drive claims to support".
250wd*	at atabus? drive ? flags 0x0000
251
252# ATAPI bus support
253atapibus* at atapi?
254
255# ATAPI devices
256# flags have the same meaning as for IDE drives.
257cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
258sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
259uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
260
261# Network Interfaces
262
263# PCI network interfaces
264#re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
265rtk*	at pci? dev ? function ?	# Realtek 8129/8139
266
267# MII/PHY support
268rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
269urlphy* at mii? phy ?			# Realtek RTL8150L internal PHYs
270ukphy*	at mii? phy ?			# generic unknown PHYs
271
272
273# USB Controller and Devices
274
275# PCI USB controllers
276ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
277ohci*	at pci?	dev ? function ?	# Open Host Controller
278
279# USB bus support
280usb*	at ehci?
281usb*	at ohci?
282
283# USB Hubs
284uhub*	at usb?
285uhub*	at uhub? port ?
286
287# USB HID device
288uhidev*	at uhub? port ? configuration ? interface ?
289
290# USB Mice
291ums*	at uhidev? reportid ?
292wsmouse* at ums? mux 0
293
294# USB Keyboards
295ukbd*	at uhidev? reportid ?
296wskbd*	at ukbd? console ? mux 1
297
298# USB serial adpater
299ucycom* at uhidev? reportid ?
300
301# USB Generic HID devices
302uhid*	at uhidev? reportid ?
303
304# USB Printer
305ulpt*	at uhub? port ? configuration ? interface ?
306
307# USB Modem
308umodem*	at uhub? port ? configuration ?
309ucom*	at umodem?
310
311# USB Mass Storage
312umass*	at uhub? port ? configuration ? interface ?
313scsibus* at umass?
314wd*	at umass?
315
316# USB audio
317uaudio*	at uhub? port ? configuration ?
318
319# USB MIDI
320umidi* at uhub? port ? configuration ?
321
322# USB IrDA
323# USB-IrDA bridge spec
324uirda* at uhub? port ? configuration ? interface ?
325irframe* at uirda?
326
327# SigmaTel STIr4200 USB/IrDA Bridge
328ustir* at uhub? port ?
329irframe* at ustir?
330
331# USB Ethernet adapters
332aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
333axe*	at uhub? port ?		# ASIX AX88172 based adapters
334cdce*	at uhub? port ?		# CDC, Ethernet Networking Control Model
335cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
336kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
337udav*	at uhub? port ?		# Davicom DM9601 based adapters
338ral*	at uhub? port ?		#
339url*	at uhub? port ?		# Realtek RTL8150L based adapters
340
341# USB 802.11b adapters
342atu*	at uhub? port ?		# Atmel AT76C50XX based adapters
343
344# Prolific PL2301/PL2302 host-to-host adapter
345upl*	at uhub? port ?
346
347# Serial adapters
348ubsa*	at uhub? port ?		# Belkin serial adapter
349ucom*	at ubsa? portno ?
350
351uftdi*	at uhub? port ?		# FTDI FT8U100AX serial adapter
352ucom*	at uftdi? portno ?
353
354umct*	at uhub? port ?		# MCT USB-RS232 serial adapter
355ucom*	at umct? portno ?
356
357uplcom* at uhub? port ? 	# I/O DATA USB-RSAQ2 serial adapter
358ucom*	at uplcom? portno ?
359
360uvscom* at uhub? port ? 	# SUNTAC Slipper U VS-10U serial adapter
361ucom*	at uvscom? portno ?
362
363# Diamond Multimedia Rio 500
364urio*	at uhub? port ?
365
366# USB Handspring Visor
367uvisor*	at uhub? port ?
368ucom*	at uvisor?
369
370# Kyocera AIR-EDGE PHONE
371ukyopon* at uhub? port ?
372ucom*	at ukyopon? portno ?
373
374# USB scanners
375uscanner* at uhub? port ?
376
377# USB scanners that use SCSI emulation, e.g., HP5300
378usscanner* at uhub? port ?
379
380# Y@P firmware loader
381uyap* at uhub? port ?
382
383# D-Link DSB-R100 USB radio
384udsbr*	at uhub? port ?
385radio*	at udsbr?
386
387# USB Generic driver
388ugen*	at uhub? port ?
389
390
391# Audio Devices
392
393# Audio support
394audio*	at audiobus?
395
396# MIDI support
397midi*	at midibus?
398
399
400# Miscellaneous Devices
401
402# Power switch
403pwrsw0	at obio?
404
405# Reset button, USL-5P misc button
406btn0	at obio?
407
408# Pull in optional local configuration
409include "arch/landisk/conf/GENERIC.local"
410
411
412# Pseudo-Devices
413
414# disk/mass storage pseudo-devices
415pseudo-device	ccd		4	# concatenated/striped disk devices
416#pseudo-device	cgd		4	# cryptographic disk devices
417pseudo-device	raid		8	# RAIDframe disk driver
418options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
419# Options to enable various other RAIDframe RAID types.
420#options 	RF_INCLUDE_EVENODD=1
421#options 	RF_INCLUDE_RAID5_RS=1
422#options 	RF_INCLUDE_PARITYLOGGING=1
423#options 	RF_INCLUDE_CHAINDECLUSTER=1
424#options 	RF_INCLUDE_INTERDECLUSTER=1
425#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
426#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
427pseudo-device	fss		4	# file system snapshot device
428
429pseudo-device	md		1	# memory disk device (ramdisk)
430pseudo-device	vnd			# disk-like interface to files
431options 	VND_COMPRESSION		# compressed vnd(4)
432
433# network pseudo-devices
434pseudo-device	bpfilter		# Berkeley packet filter
435pseudo-device	ipfilter		# IP filter (firewall) and NAT
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	strip			# Starmode Radio IP (Metricom)
441pseudo-device	irframetty		# IrDA frame line discipline
442pseudo-device	tap			# virtual Ethernet
443pseudo-device	tun			# network tunneling over tty
444pseudo-device	gre			# generic L3 over IP tunnel
445pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
446#pseudo-device	faith			# IPv[46] tcp relay translation i/f
447#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
448pseudo-device	vlan			# IEEE 802.1q encapsulation
449pseudo-device	bridge			# simple inter-network bridging
450#options 	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
451pseudo-device	agr			# IEEE 802.3ad link aggregation
452#pseudo-device	pf			# PF packet filter
453#pseudo-device	pflog			# PF log if
454
455# miscellaneous pseudo-devices
456pseudo-device	pty			# pseudo-terminals
457pseudo-device	sequencer	1	# MIDI sequencer
458pseudo-device	rnd			# /dev/random and in-kernel generator
459pseudo-device	clockctl		# user control of clock subsystem
460pseudo-device	ksyms			# /dev/ksyms
461
462# a pseudo device needed for Coda	# also needs CODA (above)
463pseudo-device	vcoda		4	# coda minicache <-> venus comm.
464
465# a pseudo device needed for SMBFS
466pseudo-device	nsmb			# experimental - SMB requester
467
468# wscons pseudo-devices
469pseudo-device	wsmux			# mouse & keyboard multiplexor
470#pseudo-device	wsfont
471