GENERIC revision 1.51
1# $NetBSD: GENERIC,v 1.51 2016/12/08 11:31:11 nat 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 21include "arch/landisk/conf/std.landisk" 22 23options INCLUDE_CONFIG_FILE # embed config file in kernel binary 24 25#ident "GENERIC-$Revision: 1.51 $" 26 27maxusers 16 # estimated number of users 28 29makeoptions CPUFLAGS="-m4-nofpu" # XXX: move to std.landisk? 30#makeoptions COPTS="-Os -freorder-blocks" # -O2 is too -falign-* zealous 31 32# CPU-related options. 33options PCLOCK=33333333 # 33.33MHz 34options DONT_INIT_BSC 35#options DONT_INIT_PCIBSC 36 37# Cache options. 38options SH4_CACHE_DISABLE_EMODE 39#options SH4_CACHE_DISABLE_ICACHE 40#options SH4_CACHE_DISABLE_DCACHE 41#options SH4_CACHE_WB_U0_P0_P3 42#options SH4_CACHE_WB_P1 43 44# kloader-related 45#options KLOADER 46#options KLOADER_KERNEL_PATH="\"/netbsd\"" 47#options KLOADER_DEBUG 48 49# Standard system options 50 51options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 52#options HZ=64 # clock interrupt generates every 1/HZ sec 53options NTP # NTP phase/frequency locked loop 54 55options KTRACE # system call tracing via ktrace(1) 56 57options SYSVMSG # System V-like message queues 58options SYSVSEM # System V-like semaphores 59options SYSVSHM # System V-like memory sharing 60 61#options MODULAR # new style module(7) framework 62#options MODULAR_DEFAULT_AUTOLOAD 63 64options USERCONF # userconf(4) support 65#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 66options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 67 68# Enable experimental buffer queue strategy for better responsiveness under 69# high disk I/O load. Likely stable but not yet the default. 70#options BUFQ_READPRIO 71#options BUFQ_PRIOCSCAN 72 73# Diagnostic/debugging support options 74#options DIAGNOSTIC # cheap kernel consistency checks 75#options DEBUG # expensive debugging checks/support 76options DDB # in-kernel debugger 77#options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic' 78options DDB_HISTORY_SIZE=512 # Enable history editing in DDB 79#makeoptions DEBUG="-g -fno-omit-frame-pointer" 80 81# Compatibility options 82options COMPAT_16 # NetBSD 1.6, 83options COMPAT_20 # NetBSD 2.0, 84options COMPAT_30 # NetBSD 3.0, 85options COMPAT_40 # NetBSD 4.0, 86options COMPAT_50 # NetBSD 5.0, 87options COMPAT_60 # NetBSD 6.0, and 88options COMPAT_70 # NetBSD 7.0 binary compatibility. 89options COMPAT_43 # and 4.3BSD 90#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 91 92options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility 93options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 94 95# Executable format options 96options EXEC_COFF # COFF executables 97 98# File systems 99file-system FFS # UFS 100file-system EXT2FS # second extended file system (linux) 101file-system LFS # log-structured file system 102file-system MFS # memory file system 103file-system NFS # Network File System client 104file-system NTFS # Windows/NT file system (experimental) 105file-system CD9660 # ISO 9660 + Rock Ridge file system 106file-system MSDOSFS # MS-DOS file system 107file-system FDESC # /dev/fd 108file-system KERNFS # /kern 109file-system NULLFS # loopback file system 110file-system OVERLAY # overlay file system 111file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 112file-system PROCFS # /proc 113file-system UMAPFS # NULLFS + uid and gid remapping 114file-system UNION # union file system 115file-system CODA # Coda File System; also needs vcoda (below) 116file-system SMBFS # experimental - CIFS; also needs nsmb (below) 117file-system PTYFS # /dev/pts/N support 118file-system TMPFS # Efficient memory file-system 119#file-system UDF # experimental - OSTA UDF CD/DVD file-system 120 121# File system options 122options QUOTA # legacy UFS quotas 123options QUOTA2 # new, in-filesystem UFS quotas 124#options FFS_EI # FFS Endian Independent support 125options WAPBL # File system journaling support 126#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 127options NFSSERVER # Network File System server 128#options FFS_NO_SNAPSHOT # ffs snapshots 129options UFS_EXTATTR # Extended attribute support for UFS1 130#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 131 # immutable) behave as system flags. 132 133# Networking options 134#options GATEWAY # packet forwarding 135options INET # IP + ICMP + TCP + UDP 136options INET6 # IPV6 137#options IPSEC # IP security 138#options IPSEC_DEBUG # debug for IP security 139#options MROUTING # IP multicast routing 140#options PIM # Protocol Independent Multicast 141#options NETATALK # AppleTalk networking protocols 142#options PPP_BSDCOMP # BSD-Compress compression support for PPP 143#options PPP_DEFLATE # Deflate compression support for PPP 144#options PPP_FILTER # Active filter support for PPP (requires bpf) 145#options IPFILTER_LOG # ipmon(8) log support 146options IPFILTER_COMPAT # Compat for IP-Filter 147#options IPFILTER_DEFAULT_BLOCK # block all packets by default 148#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 149 150#options ALTQ # Manipulate network interfaces' output queues 151#options ALTQ_BLUE # Stochastic Fair Blue 152#options ALTQ_CBQ # Class-Based Queueing 153#options ALTQ_CDNR # Diffserv Traffic Conditioner 154#options ALTQ_FIFOQ # First-In First-Out Queue 155#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 156#options ALTQ_HFSC # Hierarchical Fair Service Curve 157#options ALTQ_LOCALQ # Local queueing discipline 158#options ALTQ_PRIQ # Priority Queueing 159#options ALTQ_RED # Random Early Detection 160#options ALTQ_RIO # RED with IN/OUT 161#options ALTQ_WFQ # Weighted Fair Queueing 162 163# These options enable verbose messages for several subsystems. 164# Warning, these may compile large string tables into the kernel! 165options MIIVERBOSE # verbose PHY autoconfig messages 166options PCIVERBOSE # verbose PCI device autoconfig messages 167#options PCI_CONFIG_DUMP # verbosely dump PCI config space 168options SCSIVERBOSE # human readable SCSI error messages 169options USBVERBOSE # verbose USB device autoconfig messages 170 171options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM 172 173 174# Kernel root file system and dump configuration. 175#config netbsd root on ? type ? 176config netbsd root on wd0a type ffs 177#config netbsd root on ? type nfs 178 179 180# 181# Device configuration 182# 183 184mainbus0 at root 185 186cpu* at mainbus? 187 188# Basic Bus Support 189 190# PCI bus support 191options PCI_NETBSD_CONFIGURE 192shpcic* at mainbus? # SH7751 PCIC 193pci0 at shpcic? bus ? 194 195# SH bus 196shb* at mainbus? 197 198# ob-board I/O bus 199obio0 at mainbus? 200 201# Serial Devices 202 203options SCIFCONSOLE 204options SCIFCN_SPEED=9600 205scif0 at shb? 206 207rs5c313rtc0 at shb0 # time-of-day clock 208 209# SCSI Controllers and Devices 210 211# SCSI devices 212sd* at scsibus? target ? lun ? # SCSI disk drives 213st* at scsibus? target ? lun ? # SCSI tape drives 214cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 215ch* at scsibus? target ? lun ? # SCSI autochangers 216ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices 217ss* at scsibus? target ? lun ? # SCSI scanners 218uk* at scsibus? target ? lun ? # SCSI unknown 219 220# IDE and related devices 221# PCI IDE controllers - see pciide(4) for supported hardware. 222# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know 223# how to set up DMA modes for this chip. This may work, or may cause 224# a machine hang with some controllers. 225pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 226acardide* at pci? dev ? function ? # Acard IDE controllers 227 228wdc0 at obio? port 0x14000000 irq 10 # CF 229#wdc1 at obio? port 0x18000000 irq 9 # iConnect 230 231# ATA (IDE) bus support 232atabus* at ata? 233 234# IDE drives 235# Flags are used only with controllers that support DMA operations 236# and mode settings (e.g. some pciide controllers) 237# The lowest order four bits (rightmost digit) of the flags define the PIO 238# mode to use, the next set of four bits the DMA mode and the third set the 239# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 240# to use, and the last bit must be 1 for this setting to be used. 241# For DMA and UDMA, 0xf (1111) means 'disable'. 242# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 243# (0xc=1100, 0xa=1010, 0xf=1111) 244# 0x0000 means "use whatever the drive claims to support". 245wd* at atabus? drive ? flags 0x0000 246 247# ATAPI bus support 248atapibus* at atapi? 249 250# ATAPI devices 251# flags have the same meaning as for IDE drives. 252cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 253sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 254uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 255 256# Network Interfaces 257 258# PCI network interfaces 259re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S 260rtk* at pci? dev ? function ? # Realtek 8129/8139 261 262# MII/PHY support 263rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 264urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 265ukphy* at mii? phy ? # generic unknown PHYs 266 267 268# USB Controller and Devices 269 270# PCI USB controllers 271ehci* at pci? dev ? function ? # Enhanced Host Controller 272ohci* at pci? dev ? function ? # Open Host Controller 273 274# USB bus support 275usb* at ehci? 276usb* at ohci? 277 278# USB Hubs 279uhub* at usb? 280uhub* at uhub? port ? 281 282# USB HID device 283uhidev* at uhub? port ? configuration ? interface ? 284 285# USB Mice 286ums* at uhidev? reportid ? 287wsmouse* at ums? mux 0 288 289# USB Keyboards 290ukbd* at uhidev? reportid ? 291wskbd* at ukbd? console ? mux 1 292 293# USB LCDs and USB-VGA adaptors 294udl* at uhub? port ? # DisplayLink DL-1x0/1x5 295wsdisplay* at udl? 296 297# USB serial adpater 298ucycom* at uhidev? reportid ? 299 300# USB Generic HID devices 301uhid* at uhidev? reportid ? 302 303# USB Printer 304ulpt* at uhub? port ? configuration ? interface ? 305 306# USB Modem 307umodem* at uhub? port ? configuration ? 308ucom* at umodem? 309 310# Option N.V. Wireless WAN modems 311uhso* at uhub? port ? configuration ? 312 313# USB Mass Storage 314umass* at uhub? port ? configuration ? interface ? 315scsibus* at umass? 316wd* at umass? 317 318# USB audio 319uaudio* at uhub? port ? configuration ? 320 321# USB MIDI 322umidi* at uhub? port ? configuration ? 323 324# USB IrDA 325# USB-IrDA bridge spec 326uirda* at uhub? port ? configuration ? interface ? 327irframe* at uirda? 328 329# SigmaTel STIr4200 USB/IrDA Bridge 330ustir* at uhub? port ? 331irframe* at ustir? 332 333# USB Ethernet adapters 334aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 335axe* at uhub? port ? # ASIX AX88172 based adapters 336cdce* at uhub? port ? # CDC, Ethernet Networking Control Model 337cue* at uhub? port ? # CATC USB-EL1201A based adapters 338kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 339udav* at uhub? port ? # Davicom DM9601 based adapters 340ural* at uhub? port ? # Ralink Technology RT2500USB 802.11a/b/g 341url* at uhub? port ? # Realtek RTL8150L based adapters 342 343# USB 802.11b adapters 344atu* at uhub? port ? # Atmel AT76C50XX based adapters 345 346# Prolific PL2301/PL2302 host-to-host adapter 347upl* at uhub? port ? 348 349# Serial adapters 350ubsa* at uhub? port ? # Belkin serial adapter 351ucom* at ubsa? portno ? 352 353uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 354ucom* at uftdi? portno ? 355 356umct* at uhub? port ? # MCT USB-RS232 serial adapter 357ucom* at umct? portno ? 358 359uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 360ucom* at uplcom? portno ? 361 362uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 363ucom* at uvscom? portno ? 364 365# Diamond Multimedia Rio 500 366urio* at uhub? port ? 367 368# USB Handspring Visor 369uvisor* at uhub? port ? 370ucom* at uvisor? 371 372# Kyocera AIR-EDGE PHONE 373ukyopon* at uhub? port ? 374ucom* at ukyopon? portno ? 375 376# USB scanners 377#uscanner* at uhub? port ? 378 379# USB scanners that use SCSI emulation, e.g., HP5300 380usscanner* at uhub? port ? 381 382# Y@P firmware loader 383uyap* at uhub? port ? 384 385# D-Link DSB-R100 USB radio 386udsbr* at uhub? port ? 387radio* at udsbr? 388 389# USB Generic driver 390ugen* at uhub? port ? 391 392 393# Audio Devices 394 395# Audio support 396audio* at audiobus? 397 398options VAUDIOSPEAKER 399spkr0 at audio0 # PC speaker (synthesized) 400 401# MIDI support 402midi* at midibus? 403 404 405# Miscellaneous Devices 406 407# Power switch 408pwrsw0 at obio? 409 410# Reset button, USL-5P misc button 411btn0 at obio? 412 413# Pull in optional local configuration 414cinclude "arch/landisk/conf/GENERIC.local" 415 416 417# Pseudo-Devices 418 419# 420# accept filters 421pseudo-device accf_data # "dataready" accept filter 422pseudo-device accf_http # "httpready" accept filter 423 424# disk/mass storage pseudo-devices 425pseudo-device ccd # concatenated/striped disk devices 426#pseudo-device cgd # cryptographic disk devices 427pseudo-device raid # RAIDframe disk driver 428options RAID_AUTOCONFIG # auto-configuration of RAID components 429# Options to enable various other RAIDframe RAID types. 430#options RF_INCLUDE_EVENODD=1 431#options RF_INCLUDE_RAID5_RS=1 432#options RF_INCLUDE_PARITYLOGGING=1 433#options RF_INCLUDE_CHAINDECLUSTER=1 434#options RF_INCLUDE_INTERDECLUSTER=1 435#options RF_INCLUDE_PARITY_DECLUSTERING=1 436#options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 437pseudo-device fss # file system snapshot device 438 439pseudo-device md # memory disk device (ramdisk) 440pseudo-device vnd # disk-like interface to files 441options VND_COMPRESSION # compressed vnd(4) 442 443# network pseudo-devices 444pseudo-device bpfilter # Berkeley packet filter 445pseudo-device ipfilter # IP filter (firewall) and NAT 446pseudo-device loop # network loopback 447pseudo-device ppp # Point-to-Point Protocol 448pseudo-device pppoe # PPP over Ethernet (RFC 2516) 449pseudo-device sl # Serial Line IP 450pseudo-device strip # Starmode Radio IP (Metricom) 451pseudo-device irframetty # IrDA frame line discipline 452pseudo-device tap # virtual Ethernet 453pseudo-device tun # network tunneling over tty 454pseudo-device gre # generic L3 over IP tunnel 455pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 456#pseudo-device faith # IPv[46] tcp relay translation i/f 457#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 458pseudo-device vlan # IEEE 802.1q encapsulation 459pseudo-device bridge # simple inter-network bridging 460#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 461pseudo-device agr # IEEE 802.3ad link aggregation 462#pseudo-device pf # PF packet filter 463#pseudo-device pflog # PF log if 464 465# miscellaneous pseudo-devices 466pseudo-device pty # pseudo-terminals 467pseudo-device sequencer # MIDI sequencer 468pseudo-device clockctl # user control of clock subsystem 469pseudo-device drvctl # user control of drive subsystem 470pseudo-device ksyms # /dev/ksyms 471pseudo-device putter # for puffs and pud 472 473# a pseudo device needed for Coda # also needs CODA (above) 474pseudo-device vcoda # coda minicache <-> venus comm. 475 476# a pseudo device needed for SMBFS 477pseudo-device nsmb # experimental - SMB requester 478 479# wscons pseudo-devices 480pseudo-device wsmux # mouse & keyboard multiplexor 481#pseudo-device wsfont 482 483options FILEASSOC # fileassoc(9) - required for Veriexec 484 # and PAX_SEGVGUARD 485 486# Veriexec 487pseudo-device veriexec 488# 489# Uncomment the fingerprint methods below that are desired. Note that 490# removing fingerprint methods will have almost no impact on the kernel 491# code size. 492# 493options VERIFIED_EXEC_FP_RMD160 494options VERIFIED_EXEC_FP_SHA256 495options VERIFIED_EXEC_FP_SHA384 496options VERIFIED_EXEC_FP_SHA512 497options VERIFIED_EXEC_FP_SHA1 498options VERIFIED_EXEC_FP_MD5 499 500options PAX_ASLR_DEBUG=1 # PaX ASLR debug 501options PAX_SEGVGUARD=0 # PaX Segmentation fault guard 502options PAX_MPROTECT=1 # PaX mprotect(2) restrictions 503options PAX_MPROTECT_DEBUG=1 # PaX mprotect debug 504options PAX_ASLR=1 # PaX Address Space Layout Randomization 505