1# $NetBSD: GENERIC,v 1.74 2022/09/29 10:10:08 riastradh 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.74 $" 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# Alternate buffer queue strategies for better responsiveness under high 69# disk I/O load. 70#options BUFQ_READPRIO 71options 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 82include "conf/compat_netbsd16.config" 83 84# Executable format options 85options EXEC_COFF # COFF executables 86 87# File systems 88file-system FFS # UFS 89file-system EXT2FS # second extended file system (linux) 90file-system LFS # log-structured file system 91file-system MFS # memory file system 92file-system NFS # Network File System client 93file-system NTFS # Windows/NT file system (experimental) 94file-system CD9660 # ISO 9660 + Rock Ridge file system 95file-system MSDOSFS # MS-DOS file system 96file-system FDESC # /dev/fd 97file-system KERNFS # /kern 98file-system NULLFS # loopback file system 99file-system OVERLAY # overlay file system 100file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 101file-system PROCFS # /proc 102file-system UMAPFS # NULLFS + uid and gid remapping 103file-system UNION # union file system 104file-system CODA # Coda File System; also needs vcoda (below) 105file-system PTYFS # /dev/pts/N support 106file-system TMPFS # Efficient memory file-system 107#file-system UDF # experimental - OSTA UDF CD/DVD file-system 108 109# File system options 110#options FFS_EI # FFS Endian Independent support 111#options FFS_NO_SNAPSHOT # No FFS snapshot support 112options QUOTA # legacy UFS quotas 113options QUOTA2 # new, in-filesystem UFS quotas 114#options UFS_DIRHASH # UFS Large Directory Hashing 115options UFS_EXTATTR # Extended attribute support for UFS1 116options WAPBL # File system journaling support 117#options LFS_DIRHASH # LFS version of UFS_DIRHASH - experimental 118#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 119 # immutable) behave as system flags. 120#options DISKLABEL_EI # disklabel Endian Independent support 121options NFSSERVER # Network File System server 122 123# Networking options 124#options GATEWAY # packet forwarding 125options INET # IP + ICMP + TCP + UDP 126options INET6 # IPV6 127#options IPSEC # IP security 128#options IPSEC_DEBUG # debug for IP security 129#options MROUTING # IP multicast routing 130#options PIM # Protocol Independent Multicast 131#options NETATALK # AppleTalk networking protocols 132#options PPP_BSDCOMP # BSD-Compress compression support for PPP 133#options PPP_DEFLATE # Deflate compression support for PPP 134#options PPP_FILTER # Active filter support for PPP (requires bpf) 135#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 136 137#options ALTQ # Manipulate network interfaces' output queues 138#options ALTQ_BLUE # Stochastic Fair Blue 139#options ALTQ_CBQ # Class-Based Queueing 140#options ALTQ_CDNR # Diffserv Traffic Conditioner 141#options ALTQ_FIFOQ # First-In First-Out Queue 142#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 143#options ALTQ_HFSC # Hierarchical Fair Service Curve 144#options ALTQ_LOCALQ # Local queueing discipline 145#options ALTQ_PRIQ # Priority Queueing 146#options ALTQ_RED # Random Early Detection 147#options ALTQ_RIO # RED with IN/OUT 148#options ALTQ_WFQ # Weighted Fair Queueing 149 150# These options enable verbose messages for several subsystems. 151# Warning, these may compile large string tables into the kernel! 152options MIIVERBOSE # verbose PHY autoconfig messages 153options PCIVERBOSE # verbose PCI device autoconfig messages 154#options PCI_CONFIG_DUMP # verbosely dump PCI config space 155options SCSIVERBOSE # human readable SCSI error messages 156options USBVERBOSE # verbose USB device autoconfig messages 157 158options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM 159 160 161# Kernel root file system and dump configuration. 162#config netbsd root on ? type ? 163config netbsd root on wd0a type ffs 164#config netbsd root on ? type nfs 165 166 167# 168# Device configuration 169# 170 171mainbus0 at root 172 173cpu* at mainbus? 174 175# Basic Bus Support 176 177# PCI bus support 178options PCI_NETBSD_CONFIGURE 179shpcic* at mainbus? # SH7751 PCIC 180pci0 at shpcic? bus ? 181 182# SH bus 183shb* at mainbus? 184 185# ob-board I/O bus 186obio0 at mainbus? 187 188# Serial Devices 189 190options SCIFCONSOLE 191options SCIFCN_SPEED=9600 192scif0 at shb? 193 194rs5c313rtc0 at shb0 # time-of-day clock 195 196# SCSI Controllers and Devices 197 198# SCSI devices 199sd* at scsibus? target ? lun ? # SCSI disk drives 200st* at scsibus? target ? lun ? # SCSI tape drives 201cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 202ch* at scsibus? target ? lun ? # SCSI autochangers 203ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices 204ss* at scsibus? target ? lun ? # SCSI scanners 205uk* at scsibus? target ? lun ? # SCSI unknown 206 207# IDE and related devices 208# PCI IDE controllers - see pciide(4) for supported hardware. 209# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know 210# how to set up DMA modes for this chip. This may work, or may cause 211# a machine hang with some controllers. 212pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 213acardide* at pci? dev ? function ? # Acard IDE controllers 214 215wdc0 at obio? port 0x14000000 irq 10 # CF 216#wdc1 at obio? port 0x18000000 irq 9 # iConnect 217 218# ATA (IDE) bus support 219atabus* at ata? 220 221# IDE drives 222# Flags are used only with controllers that support DMA operations 223# and mode settings (e.g. some pciide controllers) 224# The lowest order four bits (rightmost digit) of the flags define the PIO 225# mode to use, the next set of four bits the DMA mode and the third set the 226# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 227# to use, and the last bit must be 1 for this setting to be used. 228# For DMA and UDMA, 0xf (1111) means 'disable'. 229# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 230# (0xc=1100, 0xa=1010, 0xf=1111) 231# 0x0000 means "use whatever the drive claims to support". 232wd* at atabus? drive ? flags 0x0000 233 234# ATAPI bus support 235atapibus* at atapi? 236 237# ATAPI devices 238# flags have the same meaning as for IDE drives. 239cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 240sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 241uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 242 243# Network Interfaces 244 245# PCI network interfaces 246re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S 247rtk* at pci? dev ? function ? # Realtek 8129/8139 248 249# MII/PHY support 250rgephy* at mii? phy ? # Realtek 8169S/8110S/8211 PHYs 251rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 252urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 253ukphy* at mii? phy ? # generic unknown PHYs 254 255 256# USB Controller and Devices 257 258# PCI USB controllers 259ehci* at pci? dev ? function ? # Enhanced Host Controller 260ohci* at pci? dev ? function ? # Open Host Controller 261 262# USB bus support 263usb* at ehci? 264usb* at ohci? 265 266# USB Hubs 267uhub* at usb? 268uhub* at uhub? port ? 269 270# USB HID device 271uhidev* at uhub? port ? configuration ? interface ? 272 273# USB Mice 274ums* at uhidev? reportid ? 275wsmouse* at ums? mux 0 276 277# USB Keyboards 278ukbd* at uhidev? reportid ? 279wskbd* at ukbd? console ? mux 1 280 281# USB LCDs and USB-VGA adaptors 282udl* at uhub? port ? # DisplayLink DL-1x0/1x5 283wsdisplay* at udl? 284 285# USB serial adpater 286ucycom* at uhidev? reportid ? 287 288# USB Generic HID devices 289uhid* at uhidev? reportid ? 290 291# USB Printer 292ulpt* at uhub? port ? configuration ? interface ? 293 294# USB Modem 295umodem* at uhub? port ? configuration ? 296ucom* at umodem? 297 298# Option N.V. Wireless WAN modems 299uhso* at uhub? port ? configuration ? 300 301# USB Mass Storage 302umass* at uhub? port ? configuration ? interface ? 303scsibus* at umass? 304 305# USB audio 306uaudio* at uhub? port ? configuration ? 307 308# USB MIDI 309umidi* at uhub? port ? configuration ? 310 311# USB IrDA 312# USB-IrDA bridge spec 313uirda* at uhub? port ? configuration ? interface ? 314irframe* at uirda? 315 316# SigmaTel STIr4200 USB/IrDA Bridge 317ustir* at uhub? port ? 318irframe* at ustir? 319 320# USB Ethernet adapters 321aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 322axe* at uhub? port ? # ASIX AX88172 based adapters 323cdce* at uhub? port ? # CDC, Ethernet Networking Control Model 324cue* at uhub? port ? # CATC USB-EL1201A based adapters 325kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 326mue* at uhub? port ? # Microchip LAN75xx/LAN78xx based adapters 327udav* at uhub? port ? # Davicom DM9601 based adapters 328ural* at uhub? port ? # Ralink Technology RT2500USB 802.11a/b/g 329ure* at uhub? port ? # Realtek RTL8152/RTL8153 based adapters 330url* at uhub? port ? # Realtek RTL8150L based adapters 331 332# USB 802.11b adapters 333atu* at uhub? port ? # Atmel AT76C50XX based adapters 334 335# Prolific PL2301/PL2302 host-to-host adapter 336upl* at uhub? port ? 337 338# Serial adapters 339ubsa* at uhub? port ? # Belkin serial adapter 340ucom* at ubsa? portno ? 341 342uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 343ucom* at uftdi? portno ? 344 345umct* at uhub? port ? # MCT USB-RS232 serial adapter 346ucom* at umct? portno ? 347 348uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 349ucom* at uplcom? portno ? 350 351uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 352ucom* at uvscom? portno ? 353 354# USB Handspring Visor 355uvisor* at uhub? port ? 356ucom* at uvisor? 357 358# Kyocera AIR-EDGE PHONE 359ukyopon* at uhub? port ? 360ucom* at ukyopon? portno ? 361 362# USB scanners that use SCSI emulation, e.g., HP5300 363usscanner* at uhub? port ? 364 365# D-Link DSB-R100 USB radio 366udsbr* at uhub? port ? 367radio* at udsbr? 368 369# USB Generic driver 370ugen* at uhub? port ? 371 372 373# Audio Devices 374 375# Audio support 376audio* at audiobus? 377 378spkr* at audio? # PC speaker (synthesized) 379 380# MIDI support 381midi* at midibus? 382 383 384# Miscellaneous Devices 385 386# Power switch 387pwrsw0 at obio? 388 389# Reset button, USL-5P misc button 390btn0 at obio? 391 392# Pull in optional local configuration 393cinclude "arch/landisk/conf/GENERIC.local" 394 395 396# Pseudo-Devices 397 398# 399# accept filters 400pseudo-device accf_data # "dataready" accept filter 401pseudo-device accf_http # "httpready" accept filter 402 403# disk/mass storage pseudo-devices 404pseudo-device ccd # concatenated/striped disk devices 405pseudo-device cgd # cryptographic disk devices 406pseudo-device raid # RAIDframe disk driver 407options RAID_AUTOCONFIG # auto-configuration of RAID components 408# Options to enable various other RAIDframe RAID types. 409#options RF_INCLUDE_EVENODD=1 410#options RF_INCLUDE_RAID5_RS=1 411#options RF_INCLUDE_PARITYLOGGING=1 412#options RF_INCLUDE_CHAINDECLUSTER=1 413#options RF_INCLUDE_INTERDECLUSTER=1 414#options RF_INCLUDE_PARITY_DECLUSTERING=1 415#options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 416pseudo-device fss # file system snapshot device 417 418pseudo-device crypto # /dev/crypto device 419pseudo-device swcrypto # software crypto implementation 420pseudo-device md # memory disk device (ramdisk) 421pseudo-device vnd # disk-like interface to files 422options VND_COMPRESSION # compressed vnd(4) 423 424# network pseudo-devices 425pseudo-device bpfilter # Berkeley packet filter 426pseudo-device carp # Common Address Redundancy Protocol 427pseudo-device npf # NPF packet filter 428pseudo-device loop # network loopback 429pseudo-device ppp # Point-to-Point Protocol 430pseudo-device pppoe # PPP over Ethernet (RFC 2516) 431pseudo-device sl # Serial Line IP 432pseudo-device irframetty # IrDA frame line discipline 433pseudo-device tap # virtual Ethernet 434pseudo-device tun # network tunneling over tty 435pseudo-device gre # generic L3 over IP tunnel 436pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 437#pseudo-device faith # IPv[46] tcp relay translation i/f 438#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 439pseudo-device vlan # IEEE 802.1q encapsulation 440pseudo-device bridge # simple inter-network bridging 441pseudo-device vether # Virtual Ethernet for bridge 442pseudo-device agr # IEEE 802.3ad link aggregation 443 444# miscellaneous pseudo-devices 445pseudo-device pty # pseudo-terminals 446pseudo-device sequencer # MIDI sequencer 447pseudo-device clockctl # user control of clock subsystem 448pseudo-device drvctl # user control of drive subsystem 449pseudo-device ksyms # /dev/ksyms 450pseudo-device putter # for puffs and pud 451pseudo-device swwdog # software watchdog timer -- swwdog(4) 452 453# a pseudo device needed for Coda # also needs CODA (above) 454pseudo-device vcoda # coda minicache <-> venus comm. 455 456# wscons pseudo-devices 457pseudo-device wsmux # mouse & keyboard multiplexor 458#pseudo-device wsfont 459 460include "dev/veriexec.config" 461 462options PAX_ASLR_DEBUG=1 # PaX ASLR debug 463options PAX_SEGVGUARD=0 # PaX Segmentation fault guard 464options PAX_MPROTECT=1 # PaX mprotect(2) restrictions 465options PAX_MPROTECT_DEBUG=1 # PaX mprotect debug 466options PAX_ASLR=1 # PaX Address Space Layout Randomization 467