MAMBO revision 1.8
11.1Ssanjayl# machine description file for the MAMBO simulator from IBM
21.1Ssanjayl# Author Sanjay Lal <sanjayl@kymasys.com>
31.1Ssanjayl 
41.1Ssanjayl
51.1Ssanjaylinclude		"arch/macppc/conf/std.macppc.g5"
61.1Ssanjayl
71.1Ssanjayloptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
81.1Ssanjayl
91.8Sjym#ident 		"GENERIC-$Revision: 1.8 $"
101.1Ssanjayl
111.1Ssanjaylmaxusers	32
121.1Ssanjayl
131.1Ssanjayloptions 	ALTIVEC		# Include AltiVec support
141.1Ssanjayl
151.1Ssanjayl# Standard system options
161.1Ssanjayloptions 	INSECURE	# disable kernel security levels
171.1Ssanjayl
181.1Ssanjayloptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
191.1Ssanjayloptions 	NTP		# NTP phase/frequency locked loop
201.1Ssanjayloptions 	KTRACE		# system call tracing via ktrace(1)
211.1Ssanjayl
221.1Ssanjayloptions 	SYSVMSG		# System V message queues
231.1Ssanjayloptions 	SYSVSEM		# System V semaphores
241.1Ssanjayl#options 	SEMMNI=10	# number of semaphore identifiers
251.1Ssanjayl#options 	SEMMNS=60	# number of semaphores in system
261.1Ssanjayl#options 	SEMUME=10	# max number of undo entries per process
271.1Ssanjayl#options 	SEMMNU=30	# number of undo structures in system
281.1Ssanjayloptions 	SYSVSHM		# System V shared memory
291.1Ssanjayl#options 	SHMMAXPGS=1024	# 1024 pages is the default
301.1Ssanjayloptions 	P1003_1B_SEMAPHORE # p1003.1b semaphore support
311.1Ssanjayl
321.1Ssanjayl
331.1Ssanjayloptions 	USERCONF	# userconf(4) support
341.1Ssanjayl#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
351.1Ssanjayloptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
361.1Ssanjayl
371.1Ssanjayl# Enable experimental buffer queue strategy for better responsiveness under
381.1Ssanjayl# high disk I/O load. Use it with caution - it's not proven to be stable yet.
391.1Ssanjayl#options 	NEW_BUFQ_STRATEGY
401.1Ssanjayl
411.1Ssanjayl# Diagnostic/debugging support options
421.1Ssanjayloptions 	DIAGNOSTIC	# cheap kernel consistency checks
431.1Ssanjayloptions 	DEBUG		# expensive debugging checks/support
441.1Ssanjayloptions 	ZS_CONSOLE_ABORT# allow break to get into DDB on serial
451.1Ssanjayloptions 	DDB		# in-kernel debugger
461.1Ssanjayl#options 	DDB_ONPANIC=0	# don't go into ddb on panic.
471.1Ssanjayloptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
481.1Ssanjayl#options 	TRAP_PANICWAIT
491.1Ssanjayl
501.1Ssanjaylmakeoptions 	DEBUG="-g"	# compile full symbol table
511.1Ssanjayl
521.1Ssanjayl# Compatibility options
531.1Ssanjayloptions 	COMPAT_09	# NetBSD 0.9,
541.1Ssanjayloptions 	COMPAT_10	# NetBSD 1.0,
551.1Ssanjayloptions 	COMPAT_11	# NetBSD 1.1,
561.1Ssanjayloptions 	COMPAT_12	# NetBSD 1.2,
571.1Ssanjayloptions 	COMPAT_13	# NetBSD 1.3,
581.1Ssanjayloptions 	COMPAT_14	# NetBSD 1.4,
591.3Smanuoptions 	COMPAT_15	# NetBSD 1.5,
601.1Ssanjayloptions 	COMPAT_16	# NetBSD 1.6,
611.1Ssanjayloptions 	COMPAT_20	# NetBSD 2.0
621.1Ssanjayloptions 	COMPAT_43	# and 4.3BSD
631.1Ssanjayl
641.1Ssanjayl#options 	COMPAT_386BSD_MBRPART # recognize old partition ID
651.1Ssanjayl#options 	COMPAT_DARWIN	# Darwin binary compatibility (experimental)
661.1Ssanjayl#options 	COMPAT_MACH	# Mach compatibility, needed for COMPAT_DARWIN 
671.1Ssanjayl#options 	EXEC_MACHO	# Mach-O binary support, needed for COMPAT_MACH
681.4Suwe#options 	DEBUG_DARWIN	# COMPAT_DARWIN debugging
691.4Suwe#options 	DEBUG_MACH	# COMPAT_MACH debugging
701.1Ssanjayl#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
711.4Suweoptions 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
721.1Ssanjayl
731.1Ssanjayl# File systems
741.1Ssanjaylfile-system 	FFS		# UFS
751.1Ssanjaylfile-system 	MFS		# memory file system
761.1Ssanjaylfile-system 	KERNFS		# /kern
771.1Ssanjaylfile-system 	NULLFS		# loopback file system
781.1Ssanjaylfile-system 	PROCFS		# /proc
791.1Ssanjaylfile-system 	OVERLAY		# overlay file system
801.1Ssanjaylfile-system 	UMAPFS		# NULLFS + uid and gid remapping
811.1Ssanjaylfile-system 	UNION		# union file system
821.1Ssanjayl
831.1Ssanjayl
841.1Ssanjayl# File system options
851.1Ssanjayloptions 	QUOTA		# UFS quotas
861.1Ssanjayl#options 	FFS_EI		# FFS Endian Independant support
871.4Suwe#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
881.1Ssanjayl#options 	FFS_NO_SNAPSHOT	# ffs snapshots
891.1Ssanjayl#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
901.1Ssanjayl				# immutable) behave as system flags.
911.1Ssanjayl
921.1Ssanjayl# Networking options
931.1Ssanjayl#options 	GATEWAY		# packet forwarding
941.1Ssanjayloptions 	INET		# IP + ICMP + TCP + UDP
951.1Ssanjayl
961.1Ssanjayl# These options enable verbose messages for several subsystems.
971.1Ssanjayl# Warning, these may compile large string tables into the kernel!
981.1Ssanjayloptions 	PCIVERBOSE	# verbose PCI device autoconfig messages
991.1Ssanjayloptions 	MIIVERBOSE	# verbose PHY autoconfig messages
1001.1Ssanjayl#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1011.1Ssanjayl
1021.1Ssanjayl# wscons options
1031.1Ssanjayl#options 	WSEMUL_SUN			# sun terminal emulation
1041.1Ssanjayloptions 	WSEMUL_VT100			# VT100 / VT220 emulation
1051.1Ssanjayl#options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1061.1Ssanjayloptions 	FONT_GALLANT12x22
1071.1Ssanjayl
1081.1Ssanjayl# Optional Mac keyboard tweaks
1091.1Ssanjayl
1101.1Ssanjayl# Tweak the keyboard driver to treat the caps lock key on an ADB
1111.1Ssanjayl# keyboard as a control key; requires special remapping because of
1121.1Ssanjayl# ADB's strange emulation of a mechanically-locked key.
1131.4Suwe#options 	CAPS_IS_CONTROL
1141.1Ssanjayl
1151.1Ssanjayl# On Mac laptops, several function keys double as "hot keys"
1161.1Ssanjayl# (brightness, volume, eject) when the Fn modifier is held down.  Mac
1171.1Ssanjayl# OS X likes to reprogram the keyboard controller to send hot key
1181.1Ssanjayl# events when Fn is not held down and send function key events when it
1191.1Ssanjayl# is.  This option transforms the non-keyboard "button" events back
1201.1Ssanjayl# into function key events.
1211.4Suwe#options 	FORCE_FUNCTION_KEYS
1221.1Ssanjayl
1231.1Ssanjayl# Kernel root file system and dump configuration.
1241.1Ssanjaylconfig		netbsd	root on ? type ?
1251.1Ssanjayl
1261.1Ssanjayl#
1271.1Ssanjayl# Device configuration
1281.1Ssanjayl#
1291.1Ssanjayl
1301.1Ssanjaylmainbus* at root
1311.1Ssanjayl
1321.1Ssanjaylcpu*	at mainbus?
1331.1Ssanjaylbandit*	at mainbus?
1341.1Ssanjaylgrackle* at mainbus?
1351.1Ssanjayluninorth* at mainbus?
1361.1Ssanjaylibmcpc* at mainbus?
1371.1Ssanjayl
1381.1Ssanjaylpci*	at bandit? bus ?
1391.1Ssanjaylpci*	at grackle? bus ?
1401.1Ssanjaylpci*	at uninorth? bus ?
1411.1Ssanjaylpci*	at ibmcpc? bus ?
1421.1Ssanjaylpci*	at ppb? bus ?
1431.1Ssanjayl
1441.1Ssanjaylpchb*	at pci? dev ? function ?	# PCI-Host bridges
1451.1Ssanjaylppb*	at pci? dev ? function ?	# PCI-PCI bridges
1461.1Ssanjayl
1471.1Ssanjayl# Other  PCI devices
1481.1Ssanjayl#ofb*	at pci? dev ? function ?	# Generic Open Firmware Framebuffer
1491.1Ssanjayl# OFB_ENABLE_CACHE speeds up the console on many machines, but should
1501.1Ssanjayl# not be enabled on some older machines, such as the rev. A-D iMacs.
1511.1Ssanjayl#options 	OFB_ENABLE_CACHE	# Speed up console
1521.1Ssanjaylpciide* at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
1531.1Ssanjaylobio*	at pci? dev ? function ?
1541.1Ssanjaylmacofcons0 at pci? dev ? function ?	# OpenFirmware console (for debugging)
1551.1Ssanjayl#macofcons0 at mainbus? 		# OpenFirmware console (for debugging)
1561.1Ssanjayl
1571.1Ssanjayl# PCI serial interfaces
1581.1Ssanjaylnvram*	at obio?			# nvram
1591.1Ssanjayl# awacs is disabled because on most systems (7300 - 9600 PowerMacs,
1601.1Ssanjayl# many kinds of G4s), very heavy load can cause the machine to lock
1611.1Ssanjayl# up. ONLY enable this if your machine is never under heavy load, or
1621.1Ssanjayl# you'd rather have audio than worry about occasional lockups.
1631.1Ssanjayl#awacs*	at obio?			# Apple audio device
1641.1Ssanjayl#ki2c*	at obio?			# Keywest I2C
1651.1Ssanjaylwi*	at obio?			# AirMac
1661.1Ssanjayl#snapper* at obio?			# Snapper audio device
1671.1Ssanjayl
1681.1Ssanjayl#wsdisplay0 at ofb? console ?
1691.1Ssanjayl
1701.1Ssanjayl# Cryptographic Devices
1711.1Ssanjayl
1721.1Ssanjayl# PCI cryptographic devices
1731.1Ssanjayl# (disabled, requires opencrypto framework which requires generic softints
1741.1Ssanjayl#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
1751.1Ssanjayl#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
1761.1Ssanjayl
1771.1Ssanjayl
1781.1Ssanjaylwdc*	at obio? flags 0x1
1791.1Ssanjaylatabus* at ata?
1801.1Ssanjaylwd*	at atabus? drive ? flags 0x0000
1811.1Ssanjayl
1821.1Ssanjaylatapibus* at atapi?
1831.1Ssanjayl
1841.1Ssanjaylcd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
1851.1Ssanjaylsd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
1861.1Ssanjayluk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
1871.1Ssanjayl
1881.1Ssanjayl
1891.1Ssanjayl#pseudo-device 	crypto			# opencrypto framework
1901.1Ssanjayl					# (disabled, requires generic softints)
1911.1Ssanjaylpseudo-device	vnd		4	# disk-like interface to files
1921.1Ssanjaylpseudo-device	md		1	# memory disk device
1931.1Ssanjaylpseudo-device	loop			# network loopback
1941.1Ssanjaylpseudo-device	pty			# pseudo-terminals
1951.1Ssanjaylpseudo-device	rnd			# /dev/random and in-kernel generator
1961.1Ssanjaylpseudo-device	openfirm		# /dev/openfirm
1971.1Ssanjaylpseudo-device	wsmux			# mouse and keyboard multiplexor
1981.1Ssanjaylpseudo-device	clockctl		# user control of clock subsystem
1991.1Ssanjaylpseudo-device	ksyms			# /dev/ksyms
2001.1Ssanjaylpseudo-device	nsmb			# SMB requester
2011.1Ssanjayl#pseudo-device	pf			# PF packet filter
2021.1Ssanjayl#pseudo-device	pflog			# PF log if
2031.1Ssanjayl
2041.1Ssanjayl# Enable the hooks used for initializing the ram-disk.
2051.1Ssanjayloptions 	MEMORY_DISK_HOOKS
2061.1Ssanjayloptions 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
2071.1Ssanjayloptions 	MEMORY_DISK_ROOT_SIZE=4096	# 2 Megabytes
2081.8Sjymoptions 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
2091.8Sjym
2101.4Suweoptions 	MAMBO
2111.1Ssanjayl
2121.1Ssanjayl# For Mambo console
2131.1Ssanjaylcom* at mainbus?
2141.4Suwe#options 	COM_DEBUG
215