MAMBO revision 1.11
11.4Sskrll# machine description file for the MAMBO simulator from IBM
21.1Sskrll# Author Sanjay Lal <sanjayl@kymasys.com>
31.1Sskrll 
41.1Sskrll
51.1Sskrllinclude		"arch/macppc/conf/std.macppc.g5"
61.1Sskrll
71.1Sskrlloptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
81.1Sskrll
91.1Sskrll#ident 		"GENERIC-$Revision: 1.11 $"
101.1Sskrll
111.1Sskrllmaxusers	32
121.1Sskrll
131.1Sskrlloptions 	ALTIVEC		# Include AltiVec support
141.1Sskrll
151.1Sskrll# Standard system options
161.1Sskrlloptions 	INSECURE	# disable kernel security levels
171.1Sskrll
181.1Sskrlloptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
191.1Sskrlloptions 	NTP		# NTP phase/frequency locked loop
201.1Sskrlloptions 	KTRACE		# system call tracing via ktrace(1)
211.1Sskrll
221.1Sskrlloptions 	SYSVMSG		# System V message queues
231.1Sskrlloptions 	SYSVSEM		# System V semaphores
241.1Sskrll#options 	SEMMNI=10	# number of semaphore identifiers
251.1Sskrll#options 	SEMMNS=60	# number of semaphores in system
261.1Sskrll#options 	SEMUME=10	# max number of undo entries per process
271.1Sskrll#options 	SEMMNU=30	# number of undo structures in system
281.1Sskrlloptions 	SYSVSHM		# System V shared memory
291.1Sskrlloptions 	P1003_1B_SEMAPHORE # p1003.1b semaphore support
301.1Sskrll
311.1Sskrll
321.1Sskrlloptions 	USERCONF	# userconf(4) support
331.1Sskrll#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
341.1Sskrlloptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
351.1Sskrll
361.4Sskrll# Enable experimental buffer queue strategy for better responsiveness under
371.1Sskrll# high disk I/O load. Use it with caution - it's not proven to be stable yet.
381.1Sskrll#options 	NEW_BUFQ_STRATEGY
391.1Sskrll
401.1Sskrll# Diagnostic/debugging support options
411.1Sskrlloptions 	DIAGNOSTIC	# cheap kernel consistency checks
421.1Sskrlloptions 	DEBUG		# expensive debugging checks/support
431.2Sskrlloptions 	ZS_CONSOLE_ABORT# allow break to get into DDB on serial
441.2Sskrlloptions 	DDB		# in-kernel debugger
451.1Sskrll#options 	DDB_ONPANIC=0	# don't go into ddb on panic.
461.1Sskrlloptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
471.1Sskrll#options 	TRAP_PANICWAIT
481.1Sskrll
491.1Sskrllmakeoptions 	DEBUG="-g"	# compile full symbol table
501.1Sskrll
511.1Sskrll# Compatibility options
521.1Sskrlloptions 	COMPAT_09	# NetBSD 0.9,
531.1Sskrlloptions 	COMPAT_10	# NetBSD 1.0,
541.1Sskrlloptions 	COMPAT_11	# NetBSD 1.1,
551.1Sskrlloptions 	COMPAT_12	# NetBSD 1.2,
561.1Sskrlloptions 	COMPAT_13	# NetBSD 1.3,
571.1Sskrlloptions 	COMPAT_14	# NetBSD 1.4,
581.1Sskrlloptions 	COMPAT_15	# NetBSD 1.5,
591.1Sskrlloptions 	COMPAT_16	# NetBSD 1.6,
601.1Sskrlloptions 	COMPAT_20	# NetBSD 2.0
611.1Sskrlloptions 	COMPAT_43	# and 4.3BSD
621.1Sskrll
631.1Sskrll#options 	COMPAT_386BSD_MBRPART # recognize old partition ID
641.1Sskrll#options 	COMPAT_DARWIN	# Darwin binary compatibility (experimental)
651.1Sskrll#options 	COMPAT_MACH	# Mach compatibility, needed for COMPAT_DARWIN 
661.1Sskrll#options 	EXEC_MACHO	# Mach-O binary support, needed for COMPAT_MACH
671.1Sskrll#options 	DEBUG_DARWIN	# COMPAT_DARWIN debugging
681.1Sskrll#options 	DEBUG_MACH	# COMPAT_MACH debugging
691.1Sskrll#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
701.1Sskrlloptions 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
711.1Sskrll
721.1Sskrll# File systems
731.1Sskrllfile-system 	FFS		# UFS
741.1Sskrllfile-system 	MFS		# memory file system
751.1Sskrllfile-system 	KERNFS		# /kern
761.1Sskrllfile-system 	NULLFS		# loopback file system
771.1Sskrllfile-system 	PROCFS		# /proc
781.1Sskrllfile-system 	OVERLAY		# overlay file system
791.1Sskrllfile-system 	UMAPFS		# NULLFS + uid and gid remapping
801.1Sskrllfile-system 	UNION		# union file system
811.1Sskrll
821.1Sskrll
831.1Sskrll# File system options
841.1Sskrlloptions 	QUOTA		# UFS quotas
851.1Sskrll#options 	FFS_EI		# FFS Endian Independant support
861.1Sskrll#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
871.2Sskrll#options 	FFS_NO_SNAPSHOT	# ffs snapshots
881.3Sskrll#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
891.1Sskrll				# immutable) behave as system flags.
901.1Sskrll
911.1Sskrll# Networking options
921.1Sskrll#options 	GATEWAY		# packet forwarding
931.1Sskrlloptions 	INET		# IP + ICMP + TCP + UDP
941.1Sskrll
951.1Sskrll# These options enable verbose messages for several subsystems.
961.1Sskrll# Warning, these may compile large string tables into the kernel!
971.1Sskrlloptions 	PCIVERBOSE	# verbose PCI device autoconfig messages
981.1Sskrlloptions 	MIIVERBOSE	# verbose PHY autoconfig messages
991.1Sskrll#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1001.1Sskrll
1011.1Sskrll# wscons options
1021.1Sskrll#options 	WSEMUL_SUN			# sun terminal emulation
1031.1Sskrlloptions 	WSEMUL_VT100			# VT100 / VT220 emulation
1041.1Sskrll#options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1051.1Sskrlloptions 	FONT_GALLANT12x22
1061.1Sskrll
1071.1Sskrll# Optional Mac keyboard tweaks
1081.1Sskrll
1091.1Sskrll# Tweak the keyboard driver to treat the caps lock key on an ADB
1101.1Sskrll# keyboard as a control key; requires special remapping because of
1111.1Sskrll# ADB's strange emulation of a mechanically-locked key.
1121.1Sskrll#options 	CAPS_IS_CONTROL
1131.1Sskrll
1141.1Sskrll# On Mac laptops, several function keys double as "hot keys"
1151.1Sskrll# (brightness, volume, eject) when the Fn modifier is held down.  Mac
1161.1Sskrll# OS X likes to reprogram the keyboard controller to send hot key
1171.1Sskrll# events when Fn is not held down and send function key events when it
1181.1Sskrll# is.  This option transforms the non-keyboard "button" events back
1191.1Sskrll# into function key events.
1201.1Sskrll#options 	FORCE_FUNCTION_KEYS
1211.1Sskrll
1221.1Sskrll# Kernel root file system and dump configuration.
1231.1Sskrllconfig		netbsd	root on ? type ?
1241.1Sskrll
1251.1Sskrll#
1261.4Sskrll# Device configuration
1271.4Sskrll#
1281.1Sskrll
1291.1Sskrllmainbus* at root
1301.1Sskrll
1311.1Sskrllcpu*	at mainbus?
1321.1Sskrllbandit*	at mainbus?
1331.1Sskrllgrackle* at mainbus?
1341.1Sskrlluninorth* at mainbus?
1351.1Sskrllibmcpc* at mainbus?
1361.1Sskrll
1371.1Sskrllpci*	at bandit? bus ?
1381.1Sskrllpci*	at grackle? bus ?
1391.2Sskrllpci*	at uninorth? bus ?
1401.3Sskrllpci*	at ibmcpc? bus ?
1411.1Sskrllpci*	at ppb? bus ?
1421.1Sskrll
1431.1Sskrllpchb*	at pci? dev ? function ?	# PCI-Host bridges
144ppb*	at pci? dev ? function ?	# PCI-PCI bridges
145
146# Other  PCI devices
147#ofb*	at pci? dev ? function ?	# Generic Open Firmware Framebuffer
148# OFB_ENABLE_CACHE speeds up the console on many machines, but should
149# not be enabled on some older machines, such as the rev. A-D iMacs.
150#options 	OFB_ENABLE_CACHE	# Speed up console
151pciide* at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
152obio*	at pci? dev ? function ?
153macofcons0 at pci? dev ? function ?	# OpenFirmware console (for debugging)
154#macofcons0 at mainbus? 		# OpenFirmware console (for debugging)
155
156# PCI serial interfaces
157nvram*	at obio?			# nvram
158# awacs is disabled because on most systems (7300 - 9600 PowerMacs,
159# many kinds of G4s), very heavy load can cause the machine to lock
160# up. ONLY enable this if your machine is never under heavy load, or
161# you'd rather have audio than worry about occasional lockups.
162#awacs*	at obio?			# Apple audio device
163#ki2c*	at obio?			# Keywest I2C
164wi*	at obio?			# AirMac
165#snapper* at obio?			# Snapper audio device
166
167#wsdisplay0 at ofb? console ?
168
169# Cryptographic Devices
170
171# PCI cryptographic devices
172# (disabled, requires opencrypto framework which requires generic softints
173#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
174#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
175
176
177wdc*	at obio? flags 0x1
178atabus* at ata?
179wd*	at atabus? drive ? flags 0x0000
180
181atapibus* at atapi?
182
183cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
184sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
185uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
186
187
188#pseudo-device 	crypto			# opencrypto framework
189					# (disabled, requires generic softints)
190pseudo-device	vnd		4	# disk-like interface to files
191pseudo-device	md			# memory disk device
192pseudo-device	loop			# network loopback
193pseudo-device	pty			# pseudo-terminals
194pseudo-device	rnd			# /dev/random and in-kernel generator
195pseudo-device	openfirm		# /dev/openfirm
196pseudo-device	wsmux			# mouse and keyboard multiplexor
197pseudo-device	clockctl		# user control of clock subsystem
198pseudo-device	ksyms			# /dev/ksyms
199pseudo-device	nsmb			# SMB requester
200#pseudo-device	pf			# PF packet filter
201#pseudo-device	pflog			# PF log if
202
203# Enable the hooks used for initializing the ram-disk.
204options 	MEMORY_DISK_HOOKS
205options 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
206options 	MEMORY_DISK_ROOT_SIZE=4224	# 2112 KiB
207options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
208
209options 	MAMBO
210
211# For Mambo console
212com* at mainbus?
213#options 	COM_DEBUG
214