GENERIC_601 revision 1.23
11.23Sscole# $NetBSD: GENERIC_601,v 1.23 2019/01/07 01:44:59 scole 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.23Sscoleident 		"GENERIC-$Revision: 1.23 $"
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.1Smacallan
761.1Smacallan# Wedge support
771.1Smacallanoptions         DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
781.1Smacallanoptions         DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges
791.12Srin#options	DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
801.12Srin#options	DKWEDGE_METHOD_MBR      # Support MBR partitions as wedges
811.3Schristosoptions		DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
821.12Srin#options	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
831.1Smacallan
841.1Smacallan# File systems
851.1Smacallanfile-system 	FFS		# UFS
861.1Smacallan#file-system 	EXT2FS		# second extended file system (linux)
871.1Smacallan#file-system 	LFS		# log-structured file system
881.1Smacallan#file-system 	MFS		# memory file system
891.1Smacallanfile-system 	NFS		# Network File System client
901.1Smacallanfile-system 	CD9660		# ISO 9660 + Rock Ridge file system
911.1Smacallan#file-system 	MSDOSFS		# MS-DOS file system
921.1Smacallanfile-system 	FDESC		# /dev/fd
931.1Smacallanfile-system 	KERNFS		# /kern
941.1Smacallan#file-system 	NULLFS		# loopback file system
951.1Smacallan#file-system 	OVERLAY		# overlay file system
961.1Smacallan#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
971.1Smacallanfile-system 	PROCFS		# /proc
981.1Smacallan#file-system 	UMAPFS		# NULLFS + uid and gid remapping
991.1Smacallan#file-system 	UNION		# union file system
1001.1Smacallan#file-system	SMBFS		# CIFS; also needs nsmb (below)
1011.1Smacallanfile-system	PTYFS		# /dev/pts/N support
1021.1Smacallanfile-system	TMPFS		# Efficient memory file-system
1031.1Smacallan#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
1041.1Smacallan#file-system	HFS		# experimental - Apple HFS+ (read-only)
1051.1Smacallan
1061.1Smacallan# File system options
1071.1Smacallan#options 	QUOTA		# legacy UFS quotas
1081.1Smacallan#options 	QUOTA2		# new, in-filesystem UFS quotas
1091.1Smacallan#options 	FFS_EI		# FFS Endian Independent support
1101.1Smacallanoptions 	WAPBL		# File system journaling support
1111.1Smacallan#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
1121.1Smacallan#options 	NFSSERVER	# Network File System server
1131.1Smacallan#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1141.1Smacallan#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
1151.1Smacallan				# immutable) behave as system flags.
1161.1Smacallan#options 	APPLE_UFS	# Apple UFS support in FFS
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.22Sscoleoptions         WSDISPLAY_SCROLLSUPPORT
1671.1Smacallan
1681.1Smacallan#options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1691.1Smacallanoptions 	FONT_GALLANT12x22
1701.1Smacallanoptions 	FONT_QVSS8x15		# a smaller font for lower resolutions
1711.1Smacallanoptions         FONT_DROID_SANS_MONO12x22
1721.1Smacallan#options         FONT_DROID_SANS_MONO8x16
1731.1Smacallan
1741.1Smacallan# Optional Mac keyboard tweaks
1751.1Smacallan
1761.1Smacallan# Tweak the keyboard driver to treat the caps lock key on an ADB
1771.1Smacallan# keyboard as a control key; requires special remapping because of
1781.1Smacallan# ADB's strange emulation of a mechanically-locked key.
1791.1Smacallan#options 	CAPS_IS_CONTROL
1801.1Smacallan
1811.1Smacallan# On Mac laptops, several function keys double as "hot keys"
1821.1Smacallan# (brightness, volume, eject) when the Fn modifier is held down.  Mac
1831.1Smacallan# OS X likes to reprogram the keyboard controller to send hot key
1841.1Smacallan# events when Fn is not held down and send function key events when it
1851.1Smacallan# is.  This option transforms the non-keyboard "button" events back
1861.1Smacallan# into function key events.
1871.1Smacallan# enabled by default since trying to control brightness with those causes
1881.1Smacallan# trouble on pretty much all halfway recent Apple laptops
1891.1Smacallanoptions 	FORCE_FUNCTION_KEYS
1901.1Smacallan
1911.1Smacallan# Kernel root file system and dump configuration.
1921.1Smacallanconfig		netbsd	root on ? type ?
1931.1Smacallan
1941.1Smacallan#
1951.1Smacallan# Device configuration
1961.1Smacallan#
1971.1Smacallan
1981.1Smacallanmainbus* at root
1991.1Smacallan
2001.1Smacallancpu*	at mainbus?
2011.1Smacallanbandit*	at mainbus?
2021.1Smacallan
2031.1Smacallanpci*	at bandit? bus ?
2041.1Smacallanpci*	at ppb? bus ?
2051.1Smacallan
2061.1Smacallanpchb*	at pci? dev ? function ?	# PCI-Host bridges
2071.1Smacallanppb*	at pci? dev ? function ?	# PCI-PCI bridges
2081.1Smacallan
2091.1Smacallan# PCI SCSI controllers
2101.23Sscoleahc*	at pci? dev ? function ?	# Adaptec 294x, aic78x0 SCSI
2111.1Smacallan
2121.1Smacallan# Display devices
2131.1Smacallan#
2141.8Smacallan# The 7200's onboard video is unsupported by OF so we need either a
2151.1Smacallan# graphics card that works as OF console or a serial console.
2161.1Smacallan# The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
2171.1Smacallan# official Macintosh firmware from 3Dfx. The others should work but are
2181.1Smacallan# untested with OF 1.0.5
2191.1Smacallan
2201.8Smacallan# this will take over the console if output-device is set to 'screen' or
2211.8Smacallan# 'platinum'. It will provide a NetBSD console, but still won't work with OF
2221.8Smacallanplatinumfb0 	at mainbus?
2231.8Smacallan
2241.1Smacallan#gffb*		at pci?	function ?	# NVIDIA GeForce2 MX
2251.1Smacallan#machfb*		at pci? function ?	# ATI Mach 64, Rage, Rage Pro
2261.1Smacallan#r128fb*		at pci? function ?	# ATI Rage 128
2271.1Smacallanvoodoofb*	at pci? function ?	# 3Dfx Voodoo3 
2281.1Smacallan
2291.1Smacallan# ATI Radeon. Still has problems on some hardware
2301.1Smacallan#radeonfb*	at pci? function ?
2311.1Smacallan
2321.1Smacallan# generic PCI framebuffer, should work with everything supported by OF
2331.1Smacallangenfb*		at pci? function ?
2341.1Smacallan
2351.1Smacallan# make sure the console display is always wsdisplay0
2361.1Smacallanwsdisplay0	at wsemuldisplaydev? console 1
2371.1Smacallanwsdisplay*	at wsemuldisplaydev?
2381.1Smacallan
2391.1Smacallanobio*	at pci? dev ? function ?
2401.1Smacallan
2411.1Smacallanmc*	at obio?			# MACE ethernet
2421.1Smacallanesp*	at obio? flags 0x00ff		# 53c9x SCSI
2431.1Smacallan# the 7200 has no mesh but other PMacs with 601 cards may
2441.1Smacallanmesh*	at obio? flags 0xffff		# MESH SCSI
2451.1Smacallannvram*	at obio?			# nvram
2461.1Smacallan
2471.1Smacallan# the new, improved ADB subsystem
2481.1Smacallan
2491.1Smacallancuda*	at obio?			# CUDA, for Old World PowerMacs
2501.1Smacallannadb*	at adb_bus?			# ADB bus enumerator, at cuda or pmu
2511.1Smacallanadbkbd* at nadb?			# ADB keyboard
2521.1Smacallanadbms*	at nadb?			# ADB mice and touchpads
2531.1Smacallan
2541.1Smacallanwskbd*		at wskbddev? console ?
2551.1Smacallanwsmouse*	at wsmousedev?
2561.1Smacallan
2571.1Smacallaniic0	at cuda0		# CUDA's IIC bus
2581.1Smacallan
2591.1Smacallanzsc*	at obio?
2601.1Smacallanzstty*	at zsc? channel ?
2611.1Smacallan
2621.1Smacallanawacs*	at obio?			# Apple audio device
2631.1Smacallan
2641.1Smacallan# Cryptographic Devices
2651.1Smacallan
2661.1Smacallan# PCI cryptographic devices
2671.1Smacallan# (disabled, requires opencrypto framework which requires generic softints
2681.1Smacallan#hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
2691.1Smacallan#ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
2701.1Smacallan
2711.1Smacallan
2721.1Smacallanscsibus* at scsi?
2731.1Smacallan
2741.1Smacallansd*	at scsibus? target ? lun ?	# SCSI disks
2751.1Smacallan#st*	at scsibus? target ? lun ?	# SCSI tape drives
2761.1Smacallancd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
2771.1Smacallan#ch*	at scsibus? target ? lun ?	# SCSI autochangers
2781.1Smacallan#ss*	at scsibus? target ? lun ?	# SCSI scanners
2791.1Smacallan#uk*	at scsibus? target ? lun ?	# SCSI unknown
2801.1Smacallan
2811.1Smacallan# PCI USB controllers
2821.1Smacallanohci*	at pci? dev ? function ?	# USB Open Host Controller
2831.1Smacallan#ehci*	at pci? dev ? function ?	# USB Enhanced Host Controller
2841.1Smacallan
2851.1Smacallan#usb*	at ehci?					# USB bus support
2861.1Smacallanusb*	at ohci?					# USB bus support
2871.1Smacallanuhub*	at usb?						# USB Hubs
2881.1Smacallanuhub*	at uhub? port ?
2891.1Smacallan
2901.1Smacallanuhidev*	at uhub? port ? configuration ? interface ?	# USB HID device
2911.1Smacallan
2921.1Smacallanums*	at uhidev? reportid ?				# USB Mice
2931.22Sscolewsmouse* at ums? mux 0
2941.1Smacallanukbd*	at uhidev? reportid ?				# USB Keyboards
2951.1Smacallanuhid*	at uhidev? reportid ?				# USB Generic HID
2961.1Smacallan
2971.1Smacallanumass*	at uhub? port ? configuration ? interface ?	# USB Mass Storage
2981.1Smacallanugen*	at uhub? port ? configuration ? interface ?	# USB Generic driver
2991.1Smacallan
3001.1Smacallan# Audio Devices
3011.1Smacallan
3021.1Smacallan# Audio support
3031.1Smacallanaudio*	at audiobus?
3041.1Smacallan
3051.11Schristosspkr*	at audio?		# PC speaker (synthesized)
3061.9Snat
3071.1Smacallan#
3081.1Smacallan# accept filters
3091.1Smacallan#pseudo-device   accf_data		# "dataready" accept filter
3101.1Smacallan#pseudo-device   accf_http		# "httpready" accept filter
3111.1Smacallan
3121.1Smacallan#pseudo-device 	crypto			# /dev/crypto device
3131.1Smacallan					# (disabled, requires generic softints)
3141.1Smacallan#pseudo-device	swcrypto		# software crypto implementation
3151.1Smacallanpseudo-device	vnd			# disk-like interface to files
3161.1Smacallan#options 	VND_COMPRESSION		# compressed vnd(4)
3171.1Smacallan#pseudo-device	ccd			# concatenated/striped disk devices
3181.1Smacallan#pseudo-device	cgd			# cryptographic disk devices
3191.1Smacallan#pseudo-device	raid			# RAIDframe disk driver
3201.1Smacallan#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
3211.1Smacallan# Options to enable various other RAIDframe RAID types.
3221.1Smacallan# options 	RF_INCLUDE_EVENODD=1
3231.1Smacallan# options 	RF_INCLUDE_RAID5_RS=1
3241.1Smacallan# options 	RF_INCLUDE_PARITYLOGGING=1
3251.1Smacallan# options 	RF_INCLUDE_CHAINDECLUSTER=1
3261.1Smacallan# options 	RF_INCLUDE_INTERDECLUSTER=1
3271.1Smacallan# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
3281.1Smacallan# options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
3291.1Smacallanpseudo-device	fss			# file system snapshot device
3301.1Smacallan#pseudo-device	md			# memory disk device
3311.1Smacallanpseudo-device	loop			# network loopback
3321.22Sscolepseudo-device	bpfilter		# packet filter
3331.21Smaxv#pseudo-device	npf			# NPF packet filter
3341.1Smacallan#pseudo-device	ppp			# Point-to-Point Protocol
3351.1Smacallan#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
3361.1Smacallan#pseudo-device	sl			# Serial Line IP
3371.1Smacallan#pseudo-device	tun			# network tunneling over tty
3381.22Sscole#pseudo-device	tap			# virtual Ethernet
3391.1Smacallan#pseudo-device	gre			# generic L3 over IP tunnel
3401.1Smacallan#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
3411.1Smacallan#pseudo-device	faith			# IPv[46] tcp relay translation i/f
3421.1Smacallan#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
3431.1Smacallan#pseudo-device	vlan			# IEEE 802.1q encapsulation
3441.1Smacallan#pseudo-device	bridge			# simple inter-network bridging
3451.1Smacallan#options 	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
3461.1Smacallan#pseudo-device	agr			# IEEE 802.3ad link aggregation
3471.1Smacallanpseudo-device	pty			# pseudo-terminals
3481.1Smacallanpseudo-device	openfirm		# /dev/openfirm
3491.1Smacallanpseudo-device	wsmux			# mouse and keyboard multiplexer
3501.1Smacallan#pseudo-device	swwdog			# software watchdog driver - swwdog(4)
3511.1Smacallanpseudo-device	clockctl		# user control of clock subsystem
3521.1Smacallanpseudo-device	ksyms			# /dev/ksyms
3531.1Smacallan#pseudo-device	nsmb			# SMB requester
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.1Smacallan#
3611.1Smacallan# a pseudo device needed for veriexec
3621.1Smacallan#pseudo-device	veriexec
3631.1Smacallan#
3641.1Smacallan# Uncomment the fingerprint methods below that are desired. Note that
3651.1Smacallan# removing fingerprint methods will have almost no impact on the kernel
3661.1Smacallan# code size.
3671.1Smacallan#
3681.1Smacallan#options VERIFIED_EXEC_FP_SHA256
3691.1Smacallan#options VERIFIED_EXEC_FP_SHA384
3701.1Smacallan#options VERIFIED_EXEC_FP_SHA512
3711.1Smacallan
3721.1Smacallan#options PAX_MPROTECT=0			# PaX mprotect(2) restrictions
3731.22Sscole
3741.23Sscolerlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
3751.23Sscolertk*	at pci? dev ? function ?	# Realtek 8129/8139
3761.22Sscole
3771.22Sscole#rgephy* at mii? phy ?			# Realtek 8169S/8110S internal PHYs
3781.22Sscole#ral*	at pci? dev ? function ?	# Ralink Technology RT25x0 802.11a/b/g
379