1# $NetBSD: GENERIC_601,v 1.8 2016/06/10 21:32:46 macallan Exp $ 2# 3# GENERIC machine description file 4# 5# This machine description file is used to generate the default NetBSD 6# kernel. The generic kernel does not include all options, subsystems 7# and device drivers, but should be useful for most applications. 8# 9# The machine description file can be customised for your specific 10# machine to reduce the kernel size and improve its performance. 11# 12# For further information on compiling NetBSD kernels, see the config(8) 13# man page. 14# 15# For further information on hardware support for this architecture, see 16# the intro(4) man page. For further information about kernel options 17# for this architecture, see the options(4) man page. For an explanation 18# of each device driver in this file see the section 4 man page for the 19# device. 20# 21# For PPC 601, need "CPUFLAGS+= -mcpu=601" 22# 23# Openfirmware 1.0.5 require a kernel < 4M for netbooting 24# 25# this config more or less matches a Power Macintosh 7200 with a USB card 26 27include "arch/macppc/conf/std.macppc.601" 28 29options INCLUDE_CONFIG_FILE # embed config file in kernel binary 30 31ident "GENERIC-$Revision: 1.8 $" 32 33maxusers 32 34 35# Standard system options 36options INSECURE # disable kernel security levels 37 38options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 39options NTP # NTP phase/frequency locked loop 40options KTRACE # system call tracing via ktrace(1) 41 42options SYSVMSG # System V message queues 43options SYSVSEM # System V semaphores 44options SYSVSHM # System V shared memory 45 46options MODULAR # new style module(7) framework 47options MODULAR_DEFAULT_AUTOLOAD 48 49#options USERCONF # userconf(4) support 50#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 51options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 52 53# Enable experimental buffer queue strategy for better responsiveness under 54# high disk I/O load. Use it with caution - it's not proven to be stable yet. 55#options BUFQ_READPRIO 56#options BUFQ_PRIOCSCAN 57 58# Diagnostic/debugging support options 59#options DIAGNOSTIC # cheap kernel consistency checks 60#options DEBUG # expensive debugging checks/support 61options ZS_CONSOLE_ABORT# allow break to get into DDB on serial 62options DDB # in-kernel debugger 63#options DDB_ONPANIC=0 # don't go into ddb on panic. 64options DDB_HISTORY_SIZE=512 # enable history editing in DDB 65#options TRAP_PANICWAIT 66options DDB_COMMANDONENTER="bt" 67 68#makeoptions DEBUG="-g" # compile full symbol table 69 70# Compatibility options 71options COMPAT_50 # NetBSD 5.0, 72options COMPAT_60 # NetBSD 6.0, and 73options COMPAT_70 # NetBSD 7.0 binary compatibility. 74#options COMPAT_386BSD_MBRPART # recognize old partition ID 75#options COMPAT_LINUX # Linux binary compatibility 76#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 77options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 78 79# Wedge support 80options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances 81options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges 82#options DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges 83#options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges 84options DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges 85 86# File systems 87file-system FFS # UFS 88#file-system EXT2FS # second extended file system (linux) 89#file-system LFS # log-structured file system 90#file-system MFS # memory file system 91file-system NFS # Network File System client 92file-system CD9660 # ISO 9660 + Rock Ridge file system 93#file-system MSDOSFS # MS-DOS file system 94file-system FDESC # /dev/fd 95file-system KERNFS # /kern 96#file-system NULLFS # loopback file system 97#file-system OVERLAY # overlay file system 98#file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 99file-system PROCFS # /proc 100#file-system UMAPFS # NULLFS + uid and gid remapping 101#file-system UNION # union file system 102#file-system SMBFS # CIFS; also needs nsmb (below) 103file-system PTYFS # /dev/pts/N support 104file-system TMPFS # Efficient memory file-system 105#file-system UDF # experimental - OSTA UDF CD/DVD file-system 106#file-system HFS # experimental - Apple HFS+ (read-only) 107 108# File system options 109#options QUOTA # legacy UFS quotas 110#options QUOTA2 # new, in-filesystem UFS quotas 111#options FFS_EI # FFS Endian Independent support 112options WAPBL # File system journaling support 113#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 114#options NFSSERVER # Network File System server 115#options FFS_NO_SNAPSHOT # No FFS snapshot support 116#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 117 # immutable) behave as system flags. 118#options APPLE_UFS # Apple UFS support in FFS 119 120options NFS_BOOT_DHCP # Support DHCP NFS root 121 122# Networking options 123#options GATEWAY # packet forwarding 124options INET # IP + ICMP + TCP + UDP 125options INET6 # IPV6 126#options IPSEC # IP security 127#options IPSEC_DEBUG # debug for IP security 128#options MROUTING # IP multicast routing 129#options PIM # Protocol Independent Multicast 130#options NETATALK # AppleTalk networking protocols 131#options PPP_BSDCOMP # BSD-Compress compression support for PPP 132#options PPP_DEFLATE # Deflate compression support for PPP 133#options PPP_FILTER # Active filter support for PPP (requires bpf) 134#options IPFILTER_LOG # ipmon(8) log support 135#options IPFILTER_LOOKUP # ippool(8) support 136#options IPFILTER_COMPAT # Compat for IP-Filter 137#options IPFILTER_DEFAULT_BLOCK # block all packets by default 138#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 139 140#options ALTQ # Manipulate network interfaces' output queues 141#options ALTQ_BLUE # Stochastic Fair Blue 142#options ALTQ_CBQ # Class-Based Queueing 143#options ALTQ_CDNR # Diffserv Traffic Conditioner 144#options ALTQ_FIFOQ # First-In First-Out Queue 145#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 146#options ALTQ_HFSC # Hierarchical Fair Service Curve 147#options ALTQ_LOCALQ # Local queueing discipline 148#options ALTQ_PRIQ # Priority Queueing 149#options ALTQ_RED # Random Early Detection 150#options ALTQ_RIO # RED with IN/OUT 151#options ALTQ_WFQ # Weighted Fair Queueing 152 153# These options enable verbose messages for several subsystems. 154# Warning, these may compile large string tables into the kernel! 155options PCIVERBOSE # verbose PCI device autoconfig messages 156options MIIVERBOSE # verbose PHY autoconfig messages 157#options PCI_CONFIG_DUMP # verbosely dump PCI config space 158options SCSIVERBOSE # human readable SCSI error messages 159options USBVERBOSE # verbose USB device autoconfig messages 160 161# wscons options 162#options WSEMUL_SUN # sun terminal emulation 163options WSEMUL_VT100 # VT100 / VT220 emulation 164options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 165options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 166options WSDISPLAY_COMPAT_USL # VT handling 167 168options WS_DEFAULT_FG=WSCOL_BLACK 169options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE 170options WS_KERNEL_FG=WSCOL_GREEN 171options WS_KERNEL_BG=WSCOL_LIGHT_WHITE 172 173#options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 174options FONT_GALLANT12x22 175options FONT_QVSS8x15 # a smaller font for lower resolutions 176options FONT_DROID_SANS_MONO12x22 177#options FONT_DROID_SANS_MONO8x16 178 179# Optional Mac keyboard tweaks 180 181# Tweak the keyboard driver to treat the caps lock key on an ADB 182# keyboard as a control key; requires special remapping because of 183# ADB's strange emulation of a mechanically-locked key. 184#options CAPS_IS_CONTROL 185 186# On Mac laptops, several function keys double as "hot keys" 187# (brightness, volume, eject) when the Fn modifier is held down. Mac 188# OS X likes to reprogram the keyboard controller to send hot key 189# events when Fn is not held down and send function key events when it 190# is. This option transforms the non-keyboard "button" events back 191# into function key events. 192# enabled by default since trying to control brightness with those causes 193# trouble on pretty much all halfway recent Apple laptops 194options FORCE_FUNCTION_KEYS 195 196# Kernel root file system and dump configuration. 197config netbsd root on ? type ? 198 199# 200# Device configuration 201# 202 203mainbus* at root 204 205cpu* at mainbus? 206bandit* at mainbus? 207 208pci* at bandit? bus ? 209pci* at ppb? bus ? 210 211pchb* at pci? dev ? function ? # PCI-Host bridges 212ppb* at pci? dev ? function ? # PCI-PCI bridges 213 214# PCI SCSI controllers 215#ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI 216 217# Display devices 218# 219# The 7200's onboard video is unsupported by OF so we need either a 220# graphics card that works as OF console or a serial console. 221# The only cards known to work ( so far ) are PCI Voodoo3s flashed with the 222# official Macintosh firmware from 3Dfx. The others should work but are 223# untested with OF 1.0.5 224 225# this will take over the console if output-device is set to 'screen' or 226# 'platinum'. It will provide a NetBSD console, but still won't work with OF 227platinumfb0 at mainbus? 228 229#gffb* at pci? function ? # NVIDIA GeForce2 MX 230#machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro 231#r128fb* at pci? function ? # ATI Rage 128 232voodoofb* at pci? function ? # 3Dfx Voodoo3 233 234# ATI Radeon. Still has problems on some hardware 235#radeonfb* at pci? function ? 236 237# generic PCI framebuffer, should work with everything supported by OF 238genfb* at pci? function ? 239 240# make sure the console display is always wsdisplay0 241wsdisplay0 at wsemuldisplaydev? console 1 242wsdisplay* at wsemuldisplaydev? 243 244#macofcons0 at pci? dev ? function ? # OpenFirmware console (for debugging) 245 246obio* at pci? dev ? function ? 247 248mc* at obio? # MACE ethernet 249esp* at obio? flags 0x00ff # 53c9x SCSI 250# the 7200 has no mesh but other PMacs with 601 cards may 251mesh* at obio? flags 0xffff # MESH SCSI 252nvram* at obio? # nvram 253 254# the new, improved ADB subsystem 255 256cuda* at obio? # CUDA, for Old World PowerMacs 257nadb* at adb_bus? # ADB bus enumerator, at cuda or pmu 258adbkbd* at nadb? # ADB keyboard 259adbms* at nadb? # ADB mice and touchpads 260 261wskbd* at wskbddev? console ? 262wsmouse* at wsmousedev? 263 264iic0 at cuda0 # CUDA's IIC bus 265 266zsc* at obio? 267zstty* at zsc? channel ? 268 269# awacs is disabled because on most systems (7300 - 9600 PowerMacs, 270# many kinds of G4s), very heavy load can cause the machine to lock 271# up. ONLY enable this if your machine is never under heavy load, or 272# you'd rather have audio than worry about occasional lockups. 273awacs* at obio? # Apple audio device 274 275# Cryptographic Devices 276 277# PCI cryptographic devices 278# (disabled, requires opencrypto framework which requires generic softints 279#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x 280#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x 281 282 283scsibus* at scsi? 284 285sd* at scsibus? target ? lun ? # SCSI disks 286#st* at scsibus? target ? lun ? # SCSI tape drives 287cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 288#ch* at scsibus? target ? lun ? # SCSI autochangers 289#ss* at scsibus? target ? lun ? # SCSI scanners 290#uk* at scsibus? target ? lun ? # SCSI unknown 291 292# PCI USB controllers 293ohci* at pci? dev ? function ? # USB Open Host Controller 294#ehci* at pci? dev ? function ? # USB Enhanced Host Controller 295 296#usb* at ehci? # USB bus support 297usb* at ohci? # USB bus support 298uhub* at usb? # USB Hubs 299uhub* at uhub? port ? 300 301uhidev* at uhub? port ? configuration ? interface ? # USB HID device 302 303ums* at uhidev? reportid ? # USB Mice 304ukbd* at uhidev? reportid ? # USB Keyboards 305uhid* at uhidev? reportid ? # USB Generic HID 306 307umass* at uhub? port ? configuration ? interface ? # USB Mass Storage 308ugen* at uhub? port ? configuration ? interface ? # USB Generic driver 309 310# Audio Devices 311 312# Audio support 313audio* at audiobus? 314 315# 316# accept filters 317#pseudo-device accf_data # "dataready" accept filter 318#pseudo-device accf_http # "httpready" accept filter 319 320#pseudo-device crypto # /dev/crypto device 321 # (disabled, requires generic softints) 322#pseudo-device swcrypto # software crypto implementation 323pseudo-device vnd # disk-like interface to files 324#options VND_COMPRESSION # compressed vnd(4) 325#pseudo-device ccd # concatenated/striped disk devices 326#pseudo-device cgd # cryptographic disk devices 327#pseudo-device raid # RAIDframe disk driver 328#options RAID_AUTOCONFIG # auto-configuration of RAID components 329# Options to enable various other RAIDframe RAID types. 330# options RF_INCLUDE_EVENODD=1 331# options RF_INCLUDE_RAID5_RS=1 332# options RF_INCLUDE_PARITYLOGGING=1 333# options RF_INCLUDE_CHAINDECLUSTER=1 334# options RF_INCLUDE_INTERDECLUSTER=1 335# options RF_INCLUDE_PARITY_DECLUSTERING=1 336# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 337pseudo-device fss # file system snapshot device 338#pseudo-device md # memory disk device 339pseudo-device loop # network loopback 340#pseudo-device bpfilter # packet filter 341#pseudo-device ipfilter # IP filter (firewall) and NAT 342#pseudo-device ppp # Point-to-Point Protocol 343#pseudo-device pppoe # PPP over Ethernet (RFC 2516) 344#pseudo-device sl # Serial Line IP 345#pseudo-device tun # network tunneling over tty 346pseudo-device tap # virtual Ethernet 347#pseudo-device gre # generic L3 over IP tunnel 348#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 349#pseudo-device faith # IPv[46] tcp relay translation i/f 350#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 351#pseudo-device vlan # IEEE 802.1q encapsulation 352#pseudo-device bridge # simple inter-network bridging 353#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 354#pseudo-device agr # IEEE 802.3ad link aggregation 355pseudo-device pty # pseudo-terminals 356pseudo-device openfirm # /dev/openfirm 357pseudo-device wsmux # mouse and keyboard multiplexer 358#pseudo-device swwdog # software watchdog driver - swwdog(4) 359pseudo-device clockctl # user control of clock subsystem 360pseudo-device ksyms # /dev/ksyms 361#pseudo-device nsmb # SMB requester 362#pseudo-device pf # PF packet filter 363#pseudo-device pflog # PF log if 364#pseudo-device putter # for puffs and pud 365 366# userland interface to drivers, including autoconf and properties retrieval 367pseudo-device drvctl 368 369# Veriexec 370# 371# a pseudo device needed for veriexec 372#pseudo-device veriexec 373# 374# Uncomment the fingerprint methods below that are desired. Note that 375# removing fingerprint methods will have almost no impact on the kernel 376# code size. 377# 378#options VERIFIED_EXEC_FP_RMD160 379#options VERIFIED_EXEC_FP_SHA256 380#options VERIFIED_EXEC_FP_SHA384 381#options VERIFIED_EXEC_FP_SHA512 382#options VERIFIED_EXEC_FP_SHA1 383#options VERIFIED_EXEC_FP_MD5 384 385#options PAX_MPROTECT=0 # PaX mprotect(2) restrictions 386