11.1Ssanjayl# Lean and mean config file for the POWERMAC G5
21.1Ssanjayl# Author: Sanjay Lal <sanjayl@kymasys.com>
31.1Ssanjayl
41.32Smacallaninclude		"arch/macppc/conf/std.macppc.g5"
51.1Ssanjayl
61.1Ssanjayloptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
71.1Ssanjaylmaxusers	32
81.1Ssanjayl
91.3Suweoptions 	PMAC_G5
101.32Smacallan#options 	OFWOEA_DEBUG
111.32Smacallan#no makeoptions	MACHINE_ARCH
121.32Smacallan#makeoptions	MACHINE_ARCH="powerpc64"
131.32Smacallan
141.1Ssanjayloptions 	ALTIVEC		# Include AltiVec support
151.33Ssevanoptions 	EXSTORAGE_MAX=64
161.32Smacallan#options 	MULTIPROCESSOR
171.1Ssanjayl
181.1Ssanjayl# Standard system options
191.1Ssanjayloptions 	INSECURE	# disable kernel security levels
201.1Ssanjayl
211.1Ssanjayloptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
221.1Ssanjayloptions 	NTP		# NTP phase/frequency locked loop
231.1Ssanjayloptions 	KTRACE		# system call tracing via ktrace(1)
241.1Ssanjayl
251.1Ssanjayloptions 	SYSVMSG		# System V message queues
261.1Ssanjayloptions 	SYSVSEM		# System V semaphores
271.1Ssanjayl#options 	SEMMNI=10	# number of semaphore identifiers
281.1Ssanjayl#options 	SEMMNS=60	# number of semaphores in system
291.1Ssanjayl#options 	SEMUME=10	# max number of undo entries per process
301.1Ssanjayl#options 	SEMMNU=30	# number of undo structures in system
311.1Ssanjayloptions 	SYSVSHM		# System V shared memory
321.32Smacallan#options 	SHMMAXPGS=1024	# 1024 pages is the default
331.32Smacallan
341.32Smacallanoptions 	MODULAR		# loadable kernel modules
351.1Ssanjayl
361.1Ssanjayloptions 	USERCONF	# userconf(4) support
371.1Ssanjayl#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
381.1Ssanjayloptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
391.1Ssanjayl
401.33Ssevan# Alternate buffer queue strategies for better responsiveness under high
411.33Ssevan# disk I/O load.
421.33Ssevan#options 	BUFQ_READPRIO
431.33Ssevanoptions 	BUFQ_PRIOCSCAN
441.1Ssanjayl
451.1Ssanjayl# Diagnostic/debugging support options
461.1Ssanjayloptions 	DIAGNOSTIC	# cheap kernel consistency checks
471.32Smacallan#options 	DEBUG		# expensive debugging checks/support
481.1Ssanjayloptions 	ZS_CONSOLE_ABORT# allow break to get into DDB on serial
491.1Ssanjayloptions 	DDB		# in-kernel debugger
501.1Ssanjayloptions 	DDB_ONPANIC=1	# don't go into ddb on panic.
511.1Ssanjayloptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
521.1Ssanjayloptions 	TRAP_PANICWAIT
531.33Ssevan#options 	DDB_COMMANDONENTER="bt"
541.1Ssanjayl
551.1Ssanjayl# Compatibility options
561.32Smacallaninclude 	"conf/compat_netbsd70.config"
571.32Smacallan#options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
581.1Ssanjayl
591.49Smartin# Wedge support
601.49Smartinoptions         DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
611.49Smartinoptions         DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges
621.49Smartin#options	DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
631.49Smartin#options	DKWEDGE_METHOD_MBR      # Support MBR partitions as wedges
641.49Smartin#options	DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
651.49Smartin#options 	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
661.58Scharlott#options 	DKWEDGE_METHOD_TOS	# Support Atari "TOS" partitions as wedges
671.49Smartin
681.1Ssanjayl# File systems
691.1Ssanjaylfile-system 	FFS		# UFS
701.33Ssevanfile-system 	MFS		# memory file system
711.32Smacallanfile-system 	TMPFS		# memory file system
721.1Ssanjaylfile-system 	KERNFS		# /kern
731.1Ssanjaylfile-system 	PROCFS		# /proc
741.1Ssanjaylfile-system 	NFS		# Network File System client
751.47Smartinfile-system 	CD9660		# ISO 9660 + Rock Ridge file system
761.47Smartinfile-system 	MSDOSFS		# MS-DOS file system
771.32Smacallanfile-system	PTYFS		# /dev/pts/N support
781.33Ssevan#file-system	HFS		# experimental - Apple HFS+ (read-only)
791.1Ssanjayl
801.1Ssanjayl# File system options
811.55Ssimonb#options 	APPLE_UFS	# Apple UFS support in FFS
821.55Ssimonb#options 	FFS_EI		# FFS Endian Independent support
831.55Ssimonb#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
841.47Smartinoptions 	QUOTA		# legacy UFS quotas
851.47Smartinoptions 	QUOTA2		# new, in-filesystem UFS quotas
861.55Ssimonboptions 	UFS_DIRHASH	# UFS Large Directory Hashing
871.55Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
881.47Smartinoptions 	WAPBL		# File system journaling support
891.55Ssimonb#options 	NFSSERVER	# Network File System server
901.55Ssimonb
911.1Ssanjayl# Networking options
921.1Ssanjayl#options 	GATEWAY		# packet forwarding
931.1Ssanjayloptions 	INET		# IP + ICMP + TCP + UDP
941.32Smacallanoptions 	INET6		# IPV6
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.32Smacallan#options 	PCIVERBOSE	# verbose PCI device autoconfig messages
991.32Smacallan#options 	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.54Smacallanoptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
1061.54Smacallanoptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
1071.53Smacallanoptions 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
1081.1Ssanjayl#options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1091.32Smacallanoptions 	WS_DEFAULT_FG=WSCOL_BLACK
1101.32Smacallanoptions 	WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
1111.32Smacallanoptions 	WS_KERNEL_FG=WSCOL_GREEN
1121.32Smacallanoptions 	WS_KERNEL_BG=WSCOL_LIGHT_WHITE
1131.59Sjakllschoptions 	WSDISPLAY_CUSTOM_OUTPUT		# color customization from wsconsctl(8)
1141.60Sjakllschoptions 	WSDISPLAY_SCROLLSUPPORT
1151.1Ssanjayloptions 	FONT_GALLANT12x22
1161.1Ssanjayl
1171.1Ssanjayl# Kernel root file system and dump configuration.
1181.34Smacallanconfig		netbsd	root on ? type ?
1191.34Smacallan#config		netbsd	root on gem0 type nfs
1201.32Smacallanoptions         NFS_BOOT_DHCP
1211.1Ssanjayl
1221.1Ssanjayl#
1231.1Ssanjayl# Device configuration
1241.1Ssanjayl#
1251.1Ssanjayl
1261.1Ssanjaylmainbus* at root
1271.1Ssanjayl
1281.39Smacallancpu0 	at mainbus?
1291.32Smacallanuni_n*	at mainbus?
1301.32Smacallanmemory* at mainbus?
1311.32Smacallanspdmem* at memory? addr ?
1321.32Smacallanki2c*	at uni_n?			# Keywest I2C
1331.32Smacallan
1341.32Smacallanibmcpc* 	at mainbus?
1351.32Smacallanuninorth* 	at mainbus?
1361.32Smacallansmu* 		at mainbus?
1371.32Smacallan#options 	SMU_DEBUG
1381.32Smacallansmuiic* 	at smu?
1391.38Smacallaniic* 		at smuiic?
1401.38Smacallan
1411.1Ssanjayl
1421.1Ssanjaylpci*	at ibmcpc? bus ?
1431.32Smacallanpci*	at uninorth? bus ?
1441.1Ssanjaylpci*	at ppb? bus ?
1451.1Ssanjayl
1461.1Ssanjaylpchb*	at pci? dev ? function ?	# PCI-Host bridges
1471.1Ssanjaylppb*	at pci? dev ? function ?	# PCI-PCI bridges
1481.1Ssanjayl
1491.32Smacallanobio0		at pci? dev ? function ?
1501.32Smacallanzsc*		at obio?
1511.32Smacallanzstty*		at zsc? channel ?
1521.37Smacallansnapper* 	at obio?
1531.32Smacallanki2c*		at obio?	# Keywest I2C
1541.32Smacallaniic*		at i2cbus?
1551.32Smacallan
1561.32Smacallanadmtemp* 	at iic?
1571.32Smacallanlmtemp* 	at iic?
1581.32Smacallandstemp* 	at iic?
1591.36Smacallanadadc* 		at iic?
1601.35Smacallanfcu* 		at iic?
1611.38Smacallansmusat* 	at iic?
1621.32Smacallandeq* 		at iic?
1631.32Smacallan
1641.53Smacallanobiofan* 	at obio?	# PSU fan on PowerMac7,3
1651.53Smacallan
1661.32Smacallanpmu* 		at obio?	# Apple PMU
1671.32Smacallan
1681.32Smacallan# Audio support
1691.37Smacallanaudio*	at audiobus?
1701.32Smacallan
1711.37Smacallanspkr*	at audio?		# PC speaker (synthesized)
1721.37Smacallanwsbell* at spkr?
1731.32Smacallan
1741.1Ssanjaylgem*	at pci? dev ? function ?	# gmac ethernet
1751.37Smacallan#options 	GEM_DEBUG
1761.32Smacallanbge*	at pci? dev ? function ?	# borgcom ethernet
1771.32Smacallanbmtphy*	at mii? phy ?			# Broadcom BCM5201/BCM5202 PHYs
1781.32Smacallanbrgphy*	at mii? phy ?			# Broadcom BCM5400 PHYs
1791.1Ssanjaylukphy*	at mii? phy ?			# generic unknown PHYs
1801.1Ssanjayl
1811.1Ssanjayl# PCI IEEE1394 controllers
1821.1Ssanjayl#fwohci*	at pci? dev ? function ?	# IEEE1394 Open Host Controller
1831.1Ssanjayl
1841.1Ssanjayl# IEEE1394 nodes
1851.1Ssanjayl#ieee1394if* at fwohci?
1861.1Ssanjayl#fwip*	at ieee1394if?			# IP over IEEE1394
1871.1Ssanjayl#sbp*	at ieee1394if? euihi ? euilo ?
1881.1Ssanjayl#scsibus* at sbp?
1891.1Ssanjayl
1901.1Ssanjayl
1911.1Ssanjayl# PCI USB controllers
1921.1Ssanjaylohci*	at pci? dev ? function ?	# USB Open Host Controller
1931.32Smacallanehci*	at pci? dev ? function ?	# USB Enhanced Host Controller
1941.1Ssanjayl
1951.1Ssanjaylusb*	at ohci?					# USB bus support
1961.32Smacallanusb*	at ehci?					# USB bus support
1971.1Ssanjayluhub*	at usb?						# USB Hubs
1981.4Sdrochneruhub*	at uhub? port ?
1991.1Ssanjayluhidev*	at uhub? port ? configuration ? interface ?	# USB HID device
2001.1Ssanjayluhid*	at uhidev? reportid ?				# USB Generic HID
2011.1Ssanjaylukbd*	at uhidev? reportid ?				# USB Keyboards
2021.1Ssanjaylwskbd*	at ukbd? console ?
2031.1Ssanjaylums*	at uhidev? reportid ?				# USB Mice
2041.1Ssanjaylwsmouse* at ums?
2051.1Ssanjayl
2061.32Smacallangenfb*	at pci? dev ? function ?	# Generic Open Firmware Framebuffer
2071.44Smacallangffb*	at pci? dev ? function ?	# some iMacs have nvidia graphics chips
2081.32Smacallanradeonfb*	at pci? dev ? function ?
2091.32Smacallanoptions 	RADEONFB_ALWAYS_ACCEL_PUTCHAR
2101.32Smacallan
2111.32Smacallan#radeon* 	at pci? dev ? function ?
2121.32Smacallan#radeondrmkmsfb* at radeonfbbus?
2131.32Smacallan
2141.32Smacallan#pciide* at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
2151.32Smacallanwdc* 	at pci? dev ? function ?		# Kauai ATA
2161.1Ssanjaylsvwsata* at pci? dev ? function ?		# ServerWorks SATA controllers
2171.45Smartinsiisata* at pci? dev ? function ?		# SiI SteelVine controllers
2181.32Smacallan#options 	ATADEBUG
2191.45Smartin
2201.1Ssanjaylobio*	at pci? dev ? function ?
2211.1Ssanjaylzsc*	at obio?
2221.1Ssanjaylzstty*	at zsc? channel ?
2231.1Ssanjayl
2241.32Smacallanwsdisplay0	at wsemuldisplaydev? console 1
2251.32Smacallanwsdisplay*	at wsemuldisplaydev?
2261.1Ssanjayl
2271.1Ssanjaylatabus* at ata?
2281.1Ssanjaylwd*	at atabus? drive ? flags 0x0000
2291.1Ssanjaylatapibus* at atapi?
2301.1Ssanjaylcd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2311.1Ssanjaylsd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2321.1Ssanjayluk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown
2331.1Ssanjayl
2341.1Ssanjayl
2351.52Smartinpseudo-device 	crypto			# /dev/crypto device
2361.52Smartinpseudo-device	swcrypto		# software crypto implementation
2371.33Ssevanpseudo-device	vnd			# disk-like interface to files
2381.33Ssevan#pseudo-device	md			# memory disk device
2391.1Ssanjaylpseudo-device	loop			# network loopback
2401.1Ssanjaylpseudo-device	pty			# pseudo-terminals
2411.1Ssanjaylpseudo-device	openfirm		# /dev/openfirm
2421.1Ssanjaylpseudo-device	wsmux			# mouse and keyboard multiplexor
2431.1Ssanjaylpseudo-device	clockctl		# user control of clock subsystem
2441.41Sisakipseudo-device	drvctl			# user control of drive subsystem
2451.1Ssanjaylpseudo-device	ksyms			# /dev/ksyms
2461.48Smartinpseudo-device	bpfilter		# packet filter
2471.40Smaxv#pseudo-device	npf			# NPF packet filter
2481.1Ssanjayl
2491.1Ssanjayl# Enable the hooks used for initializing the ram-disk.
2501.32Smacallan#options 	MEMORY_DISK_HOOKS
2511.32Smacallan#options 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
2521.32Smacallan#options 	MEMORY_DISK_ROOT_SIZE=4096	# 2 Megabytes
2531.33Ssevan#options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
2541.51Smartin
2551.61Smartinoptions 	PAX_SEGVGUARD=0 	# PaX Segmentation fault guard
2561.61Smartinoptions 	PAX_MPROTECT=1		# PaX mprotect(2) restrictions
2571.61Smartinoptions 	PAX_MPROTECT_DEBUG=1	# PaX mprotect debug
2581.61Smartinoptions 	PAX_ASLR=1		# PaX Address Space Layout Randomization
2591.61Smartinoptions 	PAX_ASLR_DEBUG=1	# PaX ASLR debug
2601.61Smartin
2611.56Sabs# Pull in optional local configuration - always at end
2621.51Smartincinclude	"arch/macppc/conf/POWERMAC_G5.local"
263