GENERIC32_IP2x revision 1.70
1#	$NetBSD: GENERIC32_IP2x,v 1.70 2007/11/04 14:34:25 xtraeme Exp $
2#
3# GENERIC32_IP2x 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#
21#
22# Currently this config file supports Indigo R4k, Indigo2 and Indy
23# (IP20, IP22 and IP24, respectively).
24#
25
26include		"arch/sgimips/conf/std.sgimips"
27
28makeoptions	TEXTADDR=0x88069000	# entry point
29
30options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
31
32#ident		"GENERIC32-IP2x-$Revision: 1.70 $"
33
34maxusers	32
35
36# CPU related options
37options 	MIPS3		# MIPS3 support
38options		INDY_R4600_CACHE	# Include routines to handle special
39					# R4600 cache -- required for Indy.
40
41makeoptions	WANT_ECOFF="yes"	# Create an ECOFF kernel in addition
42					# to an ELF kernel -- required for
43					# netbooting Indigo (IP20) and some
44					# Indigo2 (IP22) machines
45
46#options	BLINK		# blinkenlitzen
47
48# Standard system options
49#options 	INSECURE	# disable kernel security levels
50
51#options 	NTP		# NTP phase/frequence locked loop
52options 	KTRACE		# system call tracing via ktrace(1)
53#options 	SYSTRACE	# system call vetting via systrace(1)
54
55options 	SYSVMSG		# System V message queues
56options 	SYSVSEM		# System V semaphores
57options 	SYSVSHM		# System V shared memory
58options 	P1003_1B_SEMAPHORE # p1003.1b semaphore support
59
60#options 	LKM		# loadable kernel modules (XXX: working?)
61
62options 	USERCONF	# userconf(4) support
63#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
64options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
65
66# Enable experimental buffer queue strategy for better responsiveness under 
67# high disk I/O load. Use it with caution - it's not proven to be stable yet.
68#options 	BUFQ_READPRIO
69#options 	BUFQ_PRIOCSCAN
70
71# Diagnostic/debugging support options
72#options 	DIAGNOSTIC	# expensive kernel consistency checks
73#options 	DEBUG		# expensive debugging checks/support
74#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
75options 	DDB		# in-kernel debugger
76options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
77#options 	KGDB		# remote debugger
78#options 	KGDB_DEV=0x2301		# KGDB port - this is Serial(1)
79#options 	KGDB_DEVRATE=19200	# KGDB Baud Rate
80#makeoptions	DEBUG="-g"	# compile full symbol table
81
82# Compatibility options
83options 	COMPAT_15	# NetBSD 1.5
84options		COMPAT_16	# NetBSD 1.6
85options		COMPAT_20	# NetBSD 2.0
86options 	COMPAT_30	# NetBSD 3.0 compatibility.
87#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
88
89options 	COMPAT_IRIX	# binary compatibility with IRIX
90#options	COMPAT_LINUX	# binary compatibility with Linux
91#options	COMPAT_ULTRIX	# binary compatibility with Ultrix 
92options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
93
94# File systems
95file-system 	FFS		# UFS
96file-system 	EXT2FS		# second extended file system (linux)
97file-system 	LFS		# log-structured file system
98file-system 	MFS		# memory file system
99file-system 	NFS		# Network File System client
100file-system 	NTFS		# Windows/NT file system (experimental)
101file-system 	CD9660		# ISO 9660 + Rock Ridge file system
102file-system 	MSDOSFS		# MS-DOS file system
103file-system 	FDESC		# /dev/fd
104file-system 	KERNFS		# /kern
105file-system 	NULLFS		# loopback file system
106file-system 	OVERLAY		# overlay file system
107file-system 	PORTAL		# portal filesystem (still experimental)
108file-system 	PROCFS		# /proc
109file-system 	UMAPFS		# NULLFS + uid and gid remapping
110file-system 	UNION		# union file system
111file-system	CODA		# Coda File System; also needs vcoda (below)
112file-system	PTYFS		# /dev/pts/N support
113#file-system	TMPFS		# Efficient memory file-system
114#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
115file-system	EFS		# Silicon Graphics Extent File System
116
117# File system options
118options 	QUOTA		# UFS quotas
119#options 	FFS_EI		# FFS Endian Independent support
120options 	SOFTDEP		# FFS soft updates support.
121#options	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
122options 	NFSSERVER	# Network File System server
123#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
124#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
125				# immutable) behave as system flags.
126
127# Networking options
128#options 	GATEWAY		# packet forwarding
129options 	INET		# IP + ICMP + TCP + UDP
130options 	INET6		# IPV6
131#options 	IPSEC		# IP security
132#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
133#options 	IPSEC_NAT_T	# IPsec NAT traversal (NAT-T)
134#options 	IPSEC_DEBUG	# debug for IP security
135#options 	MROUTING	# IP multicast routing
136#options 	PIM		# Protocol Independent Multicast
137#options 	ISO,TPIP	# OSI
138#options 	EON		# OSI tunneling over IP
139options 	NETATALK	# AppleTalk networking protocols
140options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
141options 	PPP_DEFLATE	# Deflate compression support for PPP
142options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
143options 	PFIL_HOOKS	# pfil(9) packet filter hooks
144options 	IPFILTER_LOG	# ipmon(8) log support
145options 	IPFILTER_LOOKUP	# ippool(8) support
146#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
147#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
148
149#options 	ALTQ		# Manipulate network interfaces' output queues
150#options 	ALTQ_BLUE	# Stochastic Fair Blue
151#options 	ALTQ_CBQ	# Class-Based Queueing
152#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
153#options 	ALTQ_FIFOQ	# First-In First-Out Queue
154#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
155#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
156#options 	ALTQ_LOCALQ	# Local queueing discipline
157#options 	ALTQ_PRIQ	# Priority Queueing
158#options 	ALTQ_RED	# Random Early Detection
159#options 	ALTQ_RIO	# RED with IN/OUT
160#options 	ALTQ_WFQ	# Weighted Fair Queueing
161
162# These options enable verbose messages for several subsystems.
163# Warning, these may compile large string tables into the kernel!
164options 	MIIVERBOSE	# verbose PHY autoconfig messages
165options 	SCSIVERBOSE	# human readable SCSI error messages
166
167options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
168
169#options 	MEMORY_DISK_HOOKS
170#options 	MEMORY_DISK_IS_ROOT
171#options 	MEMORY_DISK_SERVER=0
172#options 	MINIROOTSIZE=8192
173
174#options 	SCSI_DELAY=5
175
176#
177# wscons options
178#
179# builtin terminal emulations
180#options 	WSEMUL_SUN		# sun terminal emulation
181options 	WSEMUL_VT100		# VT100 / VT220 emulation
182# different kernel output - see dev/wscons/wsdisplayvar.h
183options 	WS_KERNEL_FG=WSCOL_GREEN
184#options 	WS_KERNEL_BG=WSCOL_BLACK
185# compatibility to other console drivers
186options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
187# see dev/pckbport/wskbdmap_mfii.c for implemented layouts
188#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
189
190
191# Kernel root file system and dump configuration.
192config		netbsd	root on ? type ?
193
194# Main bus and CPU
195mainbus0 	at root
196cpu0 		at mainbus?
197
198sd*     at scsibus? target ? lun ?	# SCSI disks
199st*     at scsibus? target ? lun ?	# SCSI tapes
200cd*     at scsibus? target ? lun ?	# SCSI CD-ROMs
201ch*     at scsibus? target ? lun ?	# SCSI changer devices
202ss*     at scsibus? target ? lun ?	# SCSI scanners
203ses*    at scsibus? target ? lun ?	# SCSI SES/SAF-TE devices
204uk*     at scsibus? target ? lun ?	# unknown SCSI
205
206# Personal Iris / Indigo R3k
207pic0		at mainbus0 addr 0x1fa00000
208gio0		at pic0
209
210# Indy / Indigo^2
211imc0 		at mainbus0 addr 0x1fa00000
212gio0 		at imc0
213eisa0 		at imc0
214int0		at mainbus0		# Interrupt controller
215
216hpc0 		at gio? addr 0x1fb80000
217hpc1 		at gio? addr 0x1fb00000
218hpc2 		at gio? addr 0x1f980000
219
220newport*	at gio?			# Newport (NG1) graphics
221wsdisplay* 	at newport? console ?
222
223grtwo*		at gio?			# Express (GR2) graphics
224wsdisplay*	at grtwo? console ?
225
226light*		at gio?			# Light/Starter/Entry (LG1/LG2) graphics
227wsdisplay*	at light? console ?
228
229# PCI Fast Ethernet cards glued to the GIO bus
230giopci*		at gio? slot?
231pci*		at giopci? bus?
232options		PCI_NETBSD_CONFIGURE
233
234tlp*		at pci? dev ? function ? # Phobos G100/130/160 Fast Ethernet
235lxtphy*		at mii? phy ?		 # Level One LXT-970 PHYs 
236
237tl*		at pci? dev ? function ? # Set Engineering GIO Fast Ethernet
238nsphy*		at mii? phy ?		 # NS83840 PHYs
239tlphy*		at mii? phy ?		 # ThunderLAN PHY (unused)
240
241# HPC devices
242sq* 		at hpc? offset ?	# On-board ethernet / E++ adapter
243wdsc* 		at hpc? offset ?	# On-board SCSI / GIO32 SCSI adapter
244dpclock*	at hpc0 offset ?	# IP12 / IP20
245dsclock*	at hpc0 offset ?	# IP22 / 24
246haltwo*         at hpc0 offset ?	# IP22 / 24
247pckbc*		at hpc0 offset ?
248
249pckbd*  	at pckbc?
250pms* 		at pckbc?
251wskbd* 		at pckbd? console ?
252wskbd*		at zskbd? console ?
253wsmouse* 	at pms? mux 0
254wsmouse*	at zsms? mux 0
255
256# I/O Controller -- IP22/24
257ioc0		at mainbus0 addr 0x1fbd9800
258
259# IOC's parallel port
260pi1ppc0		at hpc0 offset ? 
261options		PI1PPC_INDY_ACK_HACK	# Indy hardware bug workaround.
262ppbus*		at pi1ppc?
263lpt*		at ppbus?		# Parallel printer
264
265#
266# As always, the zs chip is wired funny, so channel 1 is actually the
267# first serial port and channel 0 is the second.
268#
269zsc0 		at hpc0 offset ?
270zstty*		at zsc0 channel ?
271
272zsc1 		at hpc0 offset ?	# IP20 keyboard/mouse
273zskbd0		at zsc1 channel 0
274zsms0		at zsc1 channel 1
275
276scsibus*	at scsi?		# HPC SCSI
277audio*  	at audiobus?
278
279# Pseudo-Devices
280
281# disk/mass storage pseudo-devices
282pseudo-device	ccd		4	# concatenated/striped disk devices
283#pseudo-device	cgd		4	# cryptographic disk devices
284#pseudo-device	raid		4	# RAIDframe disk driver
285#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
286pseudo-device	fss		4	# file system snapshot device
287pseudo-device	md		1	# memory disk device (ramdisk)
288pseudo-device	vnd			# disk-like interface to files
289#options 	VND_COMPRESSION		# compressed vnd(4)
290
291# network pseudo-devices
292pseudo-device	bpfilter		# Berkeley packet filter
293#pseudo-device	carp			# Common Address Redundancy Protocol
294pseudo-device	ipfilter		# IP filter (firewall) and NAT
295pseudo-device	loop			# network loopback
296pseudo-device	ppp			# Point-to-Point Protocol
297pseudo-device	sl			# Serial Line IP
298pseudo-device	strip			# Starmode Radio IP (Metricom)
299pseudo-device	tun			# network tunneling over tty
300pseudo-device	tap			# virtual Ethernet
301pseudo-device	gre			# generic L3 over IP tunnel
302pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
303#pseudo-device	faith			# IPv[46] tcp relay translation i/f
304pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
305pseudo-device	vlan			# IEEE 802.1q encapsulation
306pseudo-device	bridge			# simple inter-network bridging
307pseudo-device	agr			# IEEE 802.3ad link aggregation
308#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
309#pseudo-device	pf			# PF packet filter
310#pseudo-device	pflog			# PF log if
311
312# miscellaneous pseudo-devices
313pseudo-device	pty			# pseudo-terminals
314pseudo-device	sequencer	1	# MIDI sequencer
315pseudo-device	rnd			# /dev/random and in-kernel generator
316pseudo-device	clockctl		# user control of clock subsystem
317pseudo-device	ksyms			# /dev/ksyms
318pseudo-device	wsmux                   # mouse & keyboard multiplexor
319pseudo-device	wsfont
320
321# a pseudo device needed for Coda	# also needs CODA (above)
322pseudo-device	vcoda		4	# coda minicache <-> venus comm.
323
324# pseudo devices used for IRIX binary compatibility
325pseudo-device	irix_kmem		# IRIX /dev/kmem
326pseudo-device	irix_usema		# IRIX /dev/usema
327
328# Veriexec
329#
330# a pseudo device needed for veriexec
331#pseudo-device	veriexec		1
332#
333# Uncomment the fingerprint methods below that are desired. Note that
334# removing fingerprint methods will have almost no impact on the kernel
335# code size.
336#
337#options VERIFIED_EXEC_FP_RMD160
338#options VERIFIED_EXEC_FP_SHA256
339#options VERIFIED_EXEC_FP_SHA384
340#options VERIFIED_EXEC_FP_SHA512
341#options VERIFIED_EXEC_FP_SHA1
342#options VERIFIED_EXEC_FP_MD5
343