11.34Sjakllsch# $NetBSD: GENERIC_601,v 1.34 2025/02/16 18:04:57 jakllsch Exp $
21.1Smacallan#
31.1Smacallan# GENERIC machine description file
41.1Smacallan# 
51.1Smacallan# This machine description file is used to generate the default NetBSD
61.1Smacallan# kernel.  The generic kernel does not include all options, subsystems
71.1Smacallan# and device drivers, but should be useful for most applications.
81.1Smacallan#
91.1Smacallan# The machine description file can be customised for your specific
101.1Smacallan# machine to reduce the kernel size and improve its performance.
111.1Smacallan#
121.1Smacallan# For further information on compiling NetBSD kernels, see the config(8)
131.1Smacallan# man page.
141.1Smacallan#
151.1Smacallan# For further information on hardware support for this architecture, see
161.1Smacallan# the intro(4) man page.  For further information about kernel options
171.1Smacallan# for this architecture, see the options(4) man page.  For an explanation
181.1Smacallan# of each device driver in this file see the section 4 man page for the
191.1Smacallan# device.
201.1Smacallan#
211.1Smacallan# For PPC 601, need "CPUFLAGS+= -mcpu=601"
221.1Smacallan#
231.1Smacallan# Openfirmware 1.0.5 require a kernel < 4M for netbooting
241.1Smacallan#
251.1Smacallan# this config more or less matches a Power Macintosh 7200 with a USB card
261.1Smacallan
271.15Smrginclude 	"arch/macppc/conf/std.macppc.601"
281.1Smacallan
291.1Smacallanoptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
301.1Smacallan
311.34Sjakllschident 		"GENERIC-$Revision: 1.34 $"
321.1Smacallan
331.1Smacallanmaxusers	32
341.1Smacallan
351.1Smacallan# Standard system options
361.1Smacallanoptions 	INSECURE	# disable kernel security levels
371.1Smacallan
381.1Smacallanoptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
391.1Smacallanoptions 	NTP		# NTP phase/frequency locked loop
401.1Smacallanoptions 	KTRACE		# system call tracing via ktrace(1)
411.1Smacallan
421.1Smacallanoptions 	SYSVMSG		# System V message queues
431.1Smacallanoptions 	SYSVSEM		# System V semaphores
441.1Smacallanoptions 	SYSVSHM		# System V shared memory
451.1Smacallan
461.1Smacallanoptions 	MODULAR		# new style module(7) framework
471.5Sjnemethoptions 	MODULAR_DEFAULT_AUTOLOAD
481.1Smacallan
491.1Smacallan#options 	USERCONF	# userconf(4) support
501.1Smacallan#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
511.1Smacallanoptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
521.1Smacallan
531.16Ssevan# Alternate buffer queue strategies for better responsiveness under high
541.16Ssevan# disk I/O load.
551.1Smacallan#options 	BUFQ_READPRIO
561.18Ssevanoptions 	BUFQ_PRIOCSCAN
571.1Smacallan
581.1Smacallan# Diagnostic/debugging support options
591.1Smacallan#options 	DIAGNOSTIC	# cheap kernel consistency checks
601.1Smacallan#options 	DEBUG		# expensive debugging checks/support
611.1Smacallanoptions 	ZS_CONSOLE_ABORT# allow break to get into DDB on serial
621.1Smacallanoptions 	DDB		# in-kernel debugger
631.1Smacallan#options 	DDB_ONPANIC=0	# don't go into ddb on panic.
641.1Smacallanoptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
651.1Smacallan#options 	TRAP_PANICWAIT
661.17Ssevan#options 	DDB_COMMANDONENTER="bt"
671.1Smacallan
681.1Smacallan#makeoptions 	DEBUG="-g"	# compile full symbol table
691.1Smacallan
701.1Smacallan# Compatibility options
711.15Smrginclude 	"conf/compat_netbsd50.config"
721.15Smrg
731.1Smacallan#options 	COMPAT_386BSD_MBRPART # recognize old partition ID
741.1Smacallan#options 	COMPAT_LINUX	# Linux binary compatibility
751.29Snia#options 	COMPAT_OSSAUDIO	# Linux binary compatibility
761.1Smacallan
771.1Smacallan# Wedge support
781.1Smacallanoptions         DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
791.1Smacallanoptions         DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges
801.12Srin#options	DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
811.12Srin#options	DKWEDGE_METHOD_MBR      # Support MBR partitions as wedges
821.3Schristosoptions		DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
831.12Srin#options	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
841.32Scharlott#options	DKWEDGE_METHOD_TOS	# Support Atari "TOS" partitions as wedges
851.1Smacallan
861.1Smacallan# File systems
871.1Smacallanfile-system 	FFS		# UFS
881.1Smacallan#file-system 	EXT2FS		# second extended file system (linux)
891.1Smacallan#file-system 	LFS		# log-structured file system
901.1Smacallan#file-system 	MFS		# memory file system
911.1Smacallanfile-system 	NFS		# Network File System client
921.1Smacallanfile-system 	CD9660		# ISO 9660 + Rock Ridge file system
931.1Smacallan#file-system 	MSDOSFS		# MS-DOS file system
941.1Smacallanfile-system 	FDESC		# /dev/fd
951.1Smacallanfile-system 	KERNFS		# /kern
961.1Smacallan#file-system 	NULLFS		# loopback file system
971.1Smacallan#file-system 	OVERLAY		# overlay file system
981.1Smacallan#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
991.1Smacallanfile-system 	PROCFS		# /proc
1001.1Smacallan#file-system 	UMAPFS		# NULLFS + uid and gid remapping
1011.1Smacallan#file-system 	UNION		# union file system
1021.1Smacallanfile-system	PTYFS		# /dev/pts/N support
1031.1Smacallanfile-system	TMPFS		# Efficient memory file-system
1041.1Smacallan#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
1051.1Smacallan#file-system	HFS		# experimental - Apple HFS+ (read-only)
1061.1Smacallan
1071.1Smacallan# File system options
1081.30Ssimonb#options 	APPLE_UFS	# Apple UFS support in FFS
1091.30Ssimonb#options 	FFS_EI		# FFS Endian Independent support
1101.30Ssimonb#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1111.1Smacallan#options 	QUOTA		# legacy UFS quotas
1121.1Smacallan#options 	QUOTA2		# new, in-filesystem UFS quotas
1131.30Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
1141.30Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
1151.1Smacallanoptions 	WAPBL		# File system journaling support
1161.30Ssimonb#options 	NFSSERVER	# Network File System server
1171.1Smacallan
1181.1Smacallanoptions 	NFS_BOOT_DHCP	# Support DHCP NFS root
1191.1Smacallan
1201.1Smacallan# Networking options
1211.1Smacallan#options 	GATEWAY		# packet forwarding
1221.1Smacallanoptions 	INET		# IP + ICMP + TCP + UDP
1231.1Smacallanoptions 	INET6		# IPV6
1241.1Smacallan#options 	IPSEC		# IP security
1251.1Smacallan#options 	IPSEC_DEBUG	# debug for IP security
1261.1Smacallan#options 	MROUTING	# IP multicast routing
1271.1Smacallan#options 	PIM		# Protocol Independent Multicast
1281.1Smacallan#options 	NETATALK	# AppleTalk networking protocols
1291.1Smacallan#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1301.1Smacallan#options 	PPP_DEFLATE	# Deflate compression support for PPP
1311.1Smacallan#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1321.1Smacallan#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1331.1Smacallan
1341.1Smacallan#options 	ALTQ		# Manipulate network interfaces' output queues
1351.1Smacallan#options 	ALTQ_BLUE	# Stochastic Fair Blue
1361.1Smacallan#options 	ALTQ_CBQ	# Class-Based Queueing
1371.1Smacallan#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1381.1Smacallan#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1391.1Smacallan#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1401.1Smacallan#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1411.1Smacallan#options 	ALTQ_LOCALQ	# Local queueing discipline
1421.1Smacallan#options 	ALTQ_PRIQ	# Priority Queueing
1431.1Smacallan#options 	ALTQ_RED	# Random Early Detection
1441.1Smacallan#options 	ALTQ_RIO	# RED with IN/OUT
1451.1Smacallan#options 	ALTQ_WFQ	# Weighted Fair Queueing
1461.1Smacallan
1471.1Smacallan# These options enable verbose messages for several subsystems.
1481.1Smacallan# Warning, these may compile large string tables into the kernel!
1491.1Smacallanoptions 	PCIVERBOSE	# verbose PCI device autoconfig messages
1501.1Smacallanoptions 	MIIVERBOSE	# verbose PHY autoconfig messages
1511.1Smacallan#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1521.1Smacallanoptions 	SCSIVERBOSE	# human readable SCSI error messages
1531.1Smacallanoptions 	USBVERBOSE	# verbose USB device autoconfig messages
1541.1Smacallan
1551.1Smacallan# wscons options
1561.1Smacallan#options 	WSEMUL_SUN			# sun terminal emulation
1571.1Smacallanoptions 	WSEMUL_VT100			# VT100 / VT220 emulation
1581.1Smacallanoptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
1591.1Smacallanoptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
1601.1Smacallanoptions 	WSDISPLAY_COMPAT_USL		# VT handling
1611.1Smacallan
1621.1Smacallanoptions 	WS_DEFAULT_FG=WSCOL_BLACK
1631.1Smacallanoptions 	WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
1641.1Smacallanoptions 	WS_KERNEL_FG=WSCOL_GREEN
1651.1Smacallanoptions 	WS_KERNEL_BG=WSCOL_LIGHT_WHITE
1661.34Sjakllschoptions 	WSDISPLAY_SCROLLSUPPORT
1671.1Smacallan
1681.1Smacallan#options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1691.33Sjakllschoptions 	WSDISPLAY_CUSTOM_OUTPUT		# color customization from wsconsctl(8)
1701.1Smacallanoptions 	FONT_GALLANT12x22
1711.1Smacallanoptions 	FONT_QVSS8x15		# a smaller font for lower resolutions
1721.1Smacallanoptions         FONT_DROID_SANS_MONO12x22
1731.1Smacallan#options         FONT_DROID_SANS_MONO8x16
1741.1Smacallan
1751.1Smacallan# Optional Mac keyboard tweaks
1761.1Smacallan
1771.1Smacallan# Tweak the keyboard driver to treat the caps lock key on an ADB
1781.1Smacallan# keyboard as a control key; requires special remapping because of
1791.1Smacallan# ADB's strange emulation of a mechanically-locked key.
1801.1Smacallan#options 	CAPS_IS_CONTROL
1811.1Smacallan
1821.1Smacallan# On Mac laptops, several function keys double as "hot keys"
1831.1Smacallan# (brightness, volume, eject) when the Fn modifier is held down.  Mac
1841.1Smacallan# OS X likes to reprogram the keyboard controller to send hot key
1851.1Smacallan# events when Fn is not held down and send function key events when it
1861.1Smacallan# is.  This option transforms the non-keyboard "button" events back
1871.1Smacallan# into function key events.
1881.1Smacallan# enabled by default since trying to control brightness with those causes
1891.1Smacallan# trouble on pretty much all halfway recent Apple laptops
1901.1Smacallanoptions 	FORCE_FUNCTION_KEYS
1911.1Smacallan
1921.1Smacallan# Kernel root file system and dump configuration.
1931.1Smacallanconfig		netbsd	root on ? type ?
1941.1Smacallan
1951.1Smacallan#
1961.1Smacallan# Device configuration
1971.1Smacallan#
1981.1Smacallan
1991.1Smacallanmainbus* at root
2001.1Smacallan
2011.1Smacallancpu*	at mainbus?
2021.1Smacallanbandit*	at mainbus?
2031.1Smacallan
2041.1Smacallanpci*	at bandit? bus ?
2051.1Smacallanpci*	at ppb? bus ?
2061.1Smacallan
2071.1Smacallanpchb*	at pci? dev ? function ?	# PCI-Host bridges
2081.1Smacallanppb*	at pci? dev ? function ?	# PCI-PCI bridges
2091.1Smacallan
2101.1Smacallan# PCI SCSI controllers
2111.23Sscoleahc*	at pci? dev ? function ?	# Adaptec 294x, aic78x0 SCSI
2121.1Smacallan
2131.1Smacallan# Display devices
2141.1Smacallan#
2151.8Smacallan# The 7200's onboard video is unsupported by OF so we need either a
2161.1Smacallan# graphics card that works as OF console or a serial console.
2171.1Smacallan# The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
2181.1Smacallan# official Macintosh firmware from 3Dfx. The others should work but are
2191.1Smacallan# untested with OF 1.0.5
2201.1Smacallan
2211.25Sscole# this will take over the console if output-device is set to 'platinum'.
2221.25Sscole# It will provide a NetBSD console, but still won't work with OF
2231.8Smacallanplatinumfb0 	at mainbus?
2241.8Smacallan
2251.1Smacallan#gffb*		at pci?	function ?	# NVIDIA GeForce2 MX
2261.1Smacallan#machfb*		at pci? function ?	# ATI Mach 64, Rage, Rage Pro
2271.1Smacallan#r128fb*		at pci? function ?	# ATI Rage 128
2281.1Smacallanvoodoofb*	at pci? function ?	# 3Dfx Voodoo3 
2291.1Smacallan
2301.1Smacallan# ATI Radeon. Still has problems on some hardware
2311.1Smacallan#radeonfb*	at pci? function ?
2321.1Smacallan
2331.1Smacallan# generic PCI framebuffer, should work with everything supported by OF
2341.1Smacallangenfb*		at pci? function ?
2351.1Smacallan
2361.1Smacallan# make sure the console display is always wsdisplay0
2371.1Smacallanwsdisplay0	at wsemuldisplaydev? console 1
2381.1Smacallanwsdisplay*	at wsemuldisplaydev?
2391.1Smacallan
2401.1Smacallanobio*	at pci? dev ? function ?
2411.1Smacallan
2421.1Smacallanmc*	at obio?			# MACE ethernet
2431.1Smacallanesp*	at obio? flags 0x00ff		# 53c9x SCSI
2441.1Smacallan# the 7200 has no mesh but other PMacs with 601 cards may
2451.1Smacallanmesh*	at obio? flags 0xffff		# MESH SCSI
2461.1Smacallannvram*	at obio?			# nvram
2471.1Smacallan
2481.1Smacallan# the new, improved ADB subsystem
2491.1Smacallan
2501.1Smacallancuda*	at obio?			# CUDA, for Old World PowerMacs
2511.1Smacallannadb*	at adb_bus?			# ADB bus enumerator, at cuda or pmu
2521.1Smacallanadbkbd* at nadb?			# ADB keyboard
2531.1Smacallanadbms*	at nadb?			# ADB mice and touchpads
2541.1Smacallan
2551.1Smacallanwskbd*		at wskbddev? console ?
2561.1Smacallanwsmouse*	at wsmousedev?
2571.1Smacallan
2581.1Smacallaniic0	at cuda0		# CUDA's IIC bus
2591.1Smacallan
2601.1Smacallanzsc*	at obio?
2611.1Smacallanzstty*	at zsc? channel ?
2621.1Smacallan
2631.1Smacallanawacs*	at obio?			# Apple audio device
2641.1Smacallan
2651.1Smacallan# Cryptographic Devices
2661.1Smacallan
2671.1Smacallan# PCI cryptographic devices
2681.1Smacallan# (disabled, requires opencrypto framework which requires generic softints
2691.1Smacallan#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
2701.1Smacallan#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
2711.1Smacallan
2721.1Smacallan
2731.1Smacallanscsibus* at scsi?
2741.1Smacallan
2751.1Smacallansd*	at scsibus? target ? lun ?	# SCSI disks
2761.1Smacallan#st*	at scsibus? target ? lun ?	# SCSI tape drives
2771.1Smacallancd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
2781.1Smacallan#ch*	at scsibus? target ? lun ?	# SCSI autochangers
2791.1Smacallan#ss*	at scsibus? target ? lun ?	# SCSI scanners
2801.1Smacallan#uk*	at scsibus? target ? lun ?	# SCSI unknown
2811.1Smacallan
2821.1Smacallan# PCI USB controllers
2831.1Smacallanohci*	at pci? dev ? function ?	# USB Open Host Controller
2841.1Smacallan#ehci*	at pci? dev ? function ?	# USB Enhanced Host Controller
2851.1Smacallan
2861.1Smacallan#usb*	at ehci?					# USB bus support
2871.1Smacallanusb*	at ohci?					# USB bus support
2881.1Smacallanuhub*	at usb?						# USB Hubs
2891.1Smacallanuhub*	at uhub? port ?
2901.1Smacallan
2911.1Smacallanuhidev*	at uhub? port ? configuration ? interface ?	# USB HID device
2921.1Smacallan
2931.1Smacallanums*	at uhidev? reportid ?				# USB Mice
2941.22Sscolewsmouse* at ums? mux 0
2951.1Smacallanukbd*	at uhidev? reportid ?				# USB Keyboards
2961.1Smacallanuhid*	at uhidev? reportid ?				# USB Generic HID
2971.1Smacallan
2981.1Smacallanumass*	at uhub? port ? configuration ? interface ?	# USB Mass Storage
2991.1Smacallanugen*	at uhub? port ? configuration ? interface ?	# USB Generic driver
3001.1Smacallan
3011.1Smacallan# Audio Devices
3021.1Smacallan
3031.1Smacallan# Audio support
3041.1Smacallanaudio*	at audiobus?
3051.1Smacallan
3061.11Schristosspkr*	at audio?		# PC speaker (synthesized)
3071.9Snat
3081.1Smacallan#
3091.1Smacallan# accept filters
3101.1Smacallan#pseudo-device   accf_data		# "dataready" accept filter
3111.1Smacallan#pseudo-device   accf_http		# "httpready" accept filter
3121.1Smacallan
3131.1Smacallan#pseudo-device 	crypto			# /dev/crypto device
3141.1Smacallan					# (disabled, requires generic softints)
3151.1Smacallan#pseudo-device	swcrypto		# software crypto implementation
3161.1Smacallanpseudo-device	vnd			# disk-like interface to files
3171.1Smacallan#options 	VND_COMPRESSION		# compressed vnd(4)
3181.1Smacallan#pseudo-device	ccd			# concatenated/striped disk devices
3191.1Smacallan#pseudo-device	cgd			# cryptographic disk devices
3201.1Smacallan#pseudo-device	raid			# RAIDframe disk driver
3211.1Smacallan#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
3221.1Smacallan# Options to enable various other RAIDframe RAID types.
3231.1Smacallan# options 	RF_INCLUDE_EVENODD=1
3241.1Smacallan# options 	RF_INCLUDE_RAID5_RS=1
3251.1Smacallan# options 	RF_INCLUDE_PARITYLOGGING=1
3261.1Smacallan# options 	RF_INCLUDE_CHAINDECLUSTER=1
3271.1Smacallan# options 	RF_INCLUDE_INTERDECLUSTER=1
3281.1Smacallan# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
3291.1Smacallan# options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
3301.1Smacallanpseudo-device	fss			# file system snapshot device
3311.1Smacallan#pseudo-device	md			# memory disk device
3321.1Smacallanpseudo-device	loop			# network loopback
3331.22Sscolepseudo-device	bpfilter		# packet filter
3341.21Smaxv#pseudo-device	npf			# NPF packet filter
3351.1Smacallan#pseudo-device	ppp			# Point-to-Point Protocol
3361.1Smacallan#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
3371.1Smacallan#pseudo-device	sl			# Serial Line IP
3381.1Smacallan#pseudo-device	tun			# network tunneling over tty
3391.22Sscole#pseudo-device	tap			# virtual Ethernet
3401.1Smacallan#pseudo-device	gre			# generic L3 over IP tunnel
3411.1Smacallan#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
3421.1Smacallan#pseudo-device	faith			# IPv[46] tcp relay translation i/f
3431.1Smacallan#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
3441.1Smacallan#pseudo-device	vlan			# IEEE 802.1q encapsulation
3451.1Smacallan#pseudo-device	bridge			# simple inter-network bridging
3461.28Sroy#pseudo-device	vether			# Virtual Ethernet for bridge
3471.1Smacallan#pseudo-device	agr			# IEEE 802.3ad link aggregation
3481.1Smacallanpseudo-device	pty			# pseudo-terminals
3491.1Smacallanpseudo-device	openfirm		# /dev/openfirm
3501.1Smacallanpseudo-device	wsmux			# mouse and keyboard multiplexer
3511.1Smacallan#pseudo-device	swwdog			# software watchdog driver - swwdog(4)
3521.1Smacallanpseudo-device	clockctl		# user control of clock subsystem
3531.1Smacallanpseudo-device	ksyms			# /dev/ksyms
3541.1Smacallan#pseudo-device	putter			# for puffs and pud
3551.1Smacallan
3561.1Smacallan# userland interface to drivers, including autoconf and properties retrieval
3571.1Smacallanpseudo-device   drvctl
3581.1Smacallan
3591.1Smacallan# Veriexec
3601.24Ssevan# include "dev/veriexec.config"
3611.1Smacallan
3621.1Smacallan#options PAX_MPROTECT=0			# PaX mprotect(2) restrictions
3631.22Sscole
3641.23Sscolerlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
3651.23Sscolertk*	at pci? dev ? function ?	# Realtek 8129/8139
3661.22Sscole
3671.22Sscole#rgephy* at mii? phy ?			# Realtek 8169S/8110S internal PHYs
3681.22Sscole#ral*	at pci? dev ? function ?	# Ralink Technology RT25x0 802.11a/b/g
369