1 1.117 christos # $NetBSD: GENERIC,v 1.117 2024/01/29 18:27:13 christos Exp $ 2 1.1 gavan # 3 1.37 abs # GENERIC machine description file 4 1.1 gavan # 5 1.37 abs # This machine description file is used to generate the default NetBSD 6 1.37 abs # kernel. The generic kernel does not include all options, subsystems 7 1.37 abs # and device drivers, but should be useful for most applications. 8 1.37 abs # 9 1.37 abs # The machine description file can be customised for your specific 10 1.37 abs # machine to reduce the kernel size and improve its performance. 11 1.37 abs # 12 1.37 abs # For further information on compiling NetBSD kernels, see the config(8) 13 1.37 abs # man page. 14 1.37 abs # 15 1.37 abs # For further information on hardware support for this architecture, see 16 1.37 abs # the intro(4) man page. For further information about kernel options 17 1.37 abs # for this architecture, see the options(4) man page. For an explanation 18 1.37 abs # of each device driver in this file see the section 4 man page for the 19 1.37 abs # device. 20 1.1 gavan 21 1.1 gavan include "arch/iyonix/conf/std.iyonix" 22 1.1 gavan 23 1.1 gavan options INCLUDE_CONFIG_FILE # embed config file in kernel binary 24 1.1 gavan 25 1.117 christos #ident "GENERIC-$Revision: 1.117 $" 26 1.1 gavan 27 1.37 abs maxusers 32 # estimated number of users 28 1.1 gavan 29 1.96 mrg options MSGBUFSIZE=65536 30 1.1 gavan 31 1.1 gavan # CPU options 32 1.1 gavan 33 1.1 gavan # For XScale systems 34 1.1 gavan options CPU_XSCALE_80321 # Support the XScale core 35 1.1 gavan makeoptions CPUFLAGS="-mcpu=xscale" 36 1.1 gavan 37 1.1 gavan # Architecture options 38 1.1 gavan options XSCALE_CACHE_READ_WRITE_ALLOCATE 39 1.1 gavan #options HZ=512 40 1.1 gavan 41 1.37 abs # Standard system options 42 1.1 gavan 43 1.37 abs options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 44 1.37 abs #options NTP # NTP phase/frequency locked loop 45 1.1 gavan 46 1.37 abs #options KTRACE # system call tracing via ktrace(1) 47 1.1 gavan 48 1.1 gavan 49 1.1 gavan #options SYSVMSG # System V-like message queues 50 1.1 gavan #options SYSVSEM # System V-like semaphores 51 1.1 gavan #options SYSVSHM # System V-like memory sharing 52 1.1 gavan 53 1.1 gavan # Device options 54 1.1 gavan 55 1.1 gavan # Console options. The default console is speed is 115200 baud. 56 1.1 gavan #options CONSPEED=9600 # Console speed 57 1.1 gavan 58 1.1 gavan # Miscellaneous kernel options 59 1.1 gavan options KTRACE # system call tracing, a la ktrace(1) 60 1.1 gavan options IRQSTATS # manage IRQ statistics 61 1.1 gavan #options SCSIVERBOSE # Verbose SCSI errors 62 1.1 gavan options PCIVERBOSE # Verbose PCI descriptions 63 1.1 gavan options MIIVERBOSE # Verbose MII autoconfuration messages 64 1.1 gavan #options PCI_CONFIG_DUMP # verbosely dump PCI config space 65 1.37 abs 66 1.1 gavan options USERCONF # userconf(4) support 67 1.37 abs #options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 68 1.37 abs #options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 69 1.1 gavan 70 1.1 gavan # Development and Debugging options 71 1.1 gavan 72 1.97 sevan # Alternate buffer queue strategies for better responsiveness under high 73 1.97 sevan # disk I/O load. 74 1.37 abs #options BUFQ_READPRIO 75 1.107 sevan options BUFQ_PRIOCSCAN 76 1.37 abs 77 1.37 abs # Diagnostic/debugging support options 78 1.37 abs #options DIAGNOSTIC # expensive kernel consistency checks 79 1.37 abs #options DEBUG # expensive debugging checks/support 80 1.37 abs options DDB # in-kernel debugger 81 1.82 szptvlfn #options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic' 82 1.37 abs options DDB_HISTORY_SIZE=512 # enable history editing in DDB 83 1.37 abs #options DDB_KEYCODE=0x40 84 1.37 abs #options KGDB # remote debugger 85 1.37 abs #options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600 86 1.105 macallan #makeoptions DEBUG="-g" # compile full symbol table 87 1.85 joerg makeoptions COPY_SYMTAB=1 88 1.111 skrll #options UVMHIST # kernhist for uvm/pmap subsystems 89 1.1 gavan #options VERBOSE_INIT_ARM # verbose bootstraping messages 90 1.1 gavan 91 1.37 abs #options PMAP_INCLUDE_PTE_SYNC 92 1.37 abs #options LOCKDEBUG 93 1.37 abs 94 1.37 abs 95 1.37 abs # Compatibility options 96 1.96 mrg 97 1.105 macallan include "conf/compat_netbsd70.config" 98 1.96 mrg options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries 99 1.37 abs 100 1.37 abs # File systems 101 1.37 abs file-system FFS # UFS 102 1.37 abs #file-system EXT2FS # second extended file system (linux) 103 1.37 abs #file-system LFS # log-structured file system 104 1.37 abs #file-system MFS # memory file system 105 1.37 abs file-system NFS # Network File System client 106 1.37 abs #file-system NTFS # Windows/NT file system (experimental) 107 1.37 abs file-system CD9660 # ISO 9660 + Rock Ridge file system 108 1.37 abs file-system MSDOSFS # MS-DOS file system 109 1.37 abs #file-system FDESC # /dev/fd 110 1.105 macallan file-system KERNFS # /kern 111 1.37 abs #file-system NULLFS # loopback file system 112 1.37 abs #file-system OVERLAY # overlay file system 113 1.105 macallan file-system PROCFS # /proc 114 1.37 abs #file-system UMAPFS # NULLFS + uid and gid remapping 115 1.37 abs #file-system UNION # union file system 116 1.37 abs #file-system CODA # Coda File System; also needs vcoda (below) 117 1.105 macallan file-system PTYFS # /dev/ptm support 118 1.105 macallan file-system TMPFS # Efficient memory file-system 119 1.37 abs #file-system UDF # experimental - OSTA UDF CD/DVD file-system 120 1.37 abs #file-system HFS # experimental - Apple HFS+ (read-only) 121 1.37 abs file-system FILECORE # Acorn filecore file system 122 1.37 abs 123 1.37 abs # File system options 124 1.114 simonb #options FFS_EI # FFS Endian Independent support 125 1.114 simonb options FFS_NO_SNAPSHOT # No FFS snapshot support 126 1.62 bouyer #options QUOTA # legacy UFS quotas 127 1.62 bouyer #options QUOTA2 # new, in-filesystem UFS quotas 128 1.114 simonb #options UFS_DIRHASH # UFS Large Directory Hashing 129 1.114 simonb #options UFS_EXTATTR # Extended attribute support for UFS1 130 1.69 dholland options WAPBL # File system journaling support 131 1.114 simonb #options NFSSERVER # Network File System server 132 1.37 abs 133 1.37 abs # Networking options 134 1.37 abs #options GATEWAY # packet forwarding 135 1.37 abs options INET # IP + ICMP + TCP + UDP 136 1.105 macallan options INET6 # IPV6 137 1.37 abs #options IPSEC # IP security 138 1.37 abs #options IPSEC_DEBUG # debug for IP security 139 1.37 abs #options MROUTING # IP multicast routing 140 1.37 abs #options PIM # Protocol Independent Multicast 141 1.37 abs #options NETATALK # AppleTalk networking protocols 142 1.37 abs #options PPP_BSDCOMP # BSD-Compress compression support for PPP 143 1.37 abs #options PPP_DEFLATE # Deflate compression support for PPP 144 1.37 abs #options PPP_FILTER # Active filter support for PPP (requires bpf) 145 1.37 abs #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 146 1.37 abs 147 1.37 abs #options ALTQ # Manipulate network interfaces' output queues 148 1.37 abs #options ALTQ_BLUE # Stochastic Fair Blue 149 1.37 abs #options ALTQ_CBQ # Class-Based Queueing 150 1.37 abs #options ALTQ_CDNR # Diffserv Traffic Conditioner 151 1.37 abs #options ALTQ_FIFOQ # First-In First-Out Queue 152 1.37 abs #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 153 1.37 abs #options ALTQ_HFSC # Hierarchical Fair Service Curve 154 1.37 abs #options ALTQ_LOCALQ # Local queueing discipline 155 1.37 abs #options ALTQ_PRIQ # Priority Queueing 156 1.37 abs #options ALTQ_RED # Random Early Detection 157 1.37 abs #options ALTQ_RIO # RED with IN/OUT 158 1.37 abs #options ALTQ_WFQ # Weighted Fair Queueing 159 1.37 abs 160 1.37 abs 161 1.37 abs options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM 162 1.37 abs 163 1.105 macallan #options DKWEDGE_AUTODISCOVER 164 1.105 macallan #options DKWEDGE_METHOD_BSDLABEL 165 1.105 macallan #options DKWEDGE_METHOD_MBR 166 1.105 macallan 167 1.105 macallan options INSECURE 168 1.105 macallan 169 1.37 abs # Kernel root file system and dump configuration. 170 1.37 abs config netbsd root on ? type ? 171 1.105 macallan #config netbsd root on wd1a type ffs 172 1.105 macallan #config netbsd root on wm0 type nfs 173 1.105 macallan #config netbsd root on "wedge:system/a" type ffs 174 1.1 gavan 175 1.37 abs # 176 1.37 abs # Device configuration 177 1.37 abs # 178 1.1 gavan 179 1.37 abs mainbus0 at root 180 1.1 gavan 181 1.37 abs cpu0 at mainbus? 182 1.1 gavan 183 1.1 gavan # i80321 I/O Processor peripheral support 184 1.1 gavan iopxs* at mainbus? 185 1.1 gavan 186 1.1 gavan iopaau* at iopxs? # Application Accelerator Unit 187 1.110 skrll iopiic* at iopxs? # I2C Controller Unit(s) 188 1.1 gavan iic0 at iopiic? 189 1.1 gavan iic1 at iopiic? 190 1.1 gavan iopwdog* at iopxs? # Watchdog timer 191 1.1 gavan pci0 at iopxs? bus ? # PCI/PCI-X support 192 1.1 gavan 193 1.55 gavan # The curious can see their RAM timings. 194 1.55 gavan spdmem* at iic1 addr 0x56 195 1.55 gavan 196 1.105 macallan # onboard RTC. RISC OS starts counting years at 2000 197 1.105 macallan dsrtc0 at iic0 addr 0x68 198 1.105 macallan options DSRTC_YEAR_START_2K 199 1.105 macallan 200 1.1 gavan # PCI bridges 201 1.37 abs ppb* at pci? dev ? function ? # PCI-PCI bridges 202 1.37 abs pci* at ppb? bus ? 203 1.37 abs # XXX 'puc's aren't really bridges, but there's no better place for them here 204 1.37 abs #puc* at pci? dev ? function ? # PCI "universal" comm. cards 205 1.1 gavan 206 1.55 gavan #options COMCONSOLE 207 1.55 gavan 208 1.1 gavan # VGA 209 1.1 gavan #vga* at pci? dev ? function ? 210 1.55 gavan genfb* at pci? dev ? function ? 211 1.105 macallan #options GENFB_PCI_DEBUG 212 1.105 macallan #gffb* at pci? dev ? function ? 213 1.105 macallan 214 1.105 macallan # these exist but aren't configured by RISC OS 215 1.105 macallan #alipm* at pci? 216 1.105 macallan #iic* at alipm? 217 1.55 gavan 218 1.55 gavan # Display 219 1.55 gavan wsdisplay0 at wsemuldisplaydev? console 1 220 1.55 gavan wsdisplay* at wsemuldisplaydev? 221 1.55 gavan 222 1.105 macallan #options WSEMUL_SUN # sun terminal emulation 223 1.105 macallan options WSEMUL_VT100 # vt100 terminal emulation 224 1.105 macallan options WS_DEFAULT_FG=WSCOL_BLACK 225 1.105 macallan options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE 226 1.105 macallan options WS_KERNEL_FG=WSCOL_GREEN 227 1.105 macallan options WS_KERNEL_BG=WSCOL_LIGHT_WHITE 228 1.105 macallan options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 229 1.105 macallan options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 230 1.105 macallan options WSDISPLAY_COMPAT_USL # VT handling 231 1.105 macallan options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 232 1.105 macallan #options WSDISPLAY_DEFAULTSCREENS=4 233 1.105 macallan options FONT_GO_MONO12x23 234 1.105 macallan options WSDISPLAY_SCROLLSUPPORT 235 1.105 macallan options VCONS_DRAW_INTR 236 1.105 macallan options RASOPS_DEFAULT_WIDTH=100 237 1.105 macallan options RASOPS_DEFAULT_HEIGHT=30 238 1.37 abs 239 1.1 gavan # IDE and related devices 240 1.1 gavan # PCI IDE controllers - see pciide(4) for supported hardware. 241 1.1 gavan # The 0x0001 flag force the driver to use DMA, even if the driver doesn't know 242 1.1 gavan # how to set up DMA modes for this chip. This may work, or may cause 243 1.1 gavan # a machine hang with some controllers. 244 1.105 macallan #pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 245 1.1 gavan aceride* at pci? dev ? function ? # Acer Lab IDE controllers 246 1.105 macallan #mvsata* at pci? dev ? function ? 247 1.37 abs 248 1.1 gavan # ATA (IDE) bus support 249 1.1 gavan atabus* at ata? 250 1.37 abs #options ATADEBUG 251 1.1 gavan 252 1.1 gavan # IDE drives 253 1.1 gavan # Flags are used only with controllers that support DMA operations 254 1.1 gavan # and mode settings (e.g. some pciide controllers) 255 1.1 gavan # The lowest order four bits (rightmost digit) of the flags define the PIO 256 1.1 gavan # mode to use, the next set of four bits the DMA mode and the third set the 257 1.1 gavan # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 258 1.1 gavan # to use, and the last bit must be 1 for this setting to be used. 259 1.1 gavan # For DMA and UDMA, 0xf (1111) means 'disable'. 260 1.1 gavan # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 261 1.1 gavan # (0xc=1100, 0xa=1010, 0xf=1111) 262 1.1 gavan # 0x0000 means "use whatever the drive claims to support". 263 1.1 gavan wd* at atabus? drive ? flags 0x0000 264 1.1 gavan 265 1.1 gavan # ATAPI bus support 266 1.1 gavan atapibus* at atapi? 267 1.1 gavan 268 1.1 gavan # ATAPI devices 269 1.1 gavan # flags have the same meaning as for IDE drives. 270 1.1 gavan # XXX No DMA on IDE devices for now 271 1.1 gavan cd* at atapibus? drive ? flags 0x0ff0 # ATAPI CD-ROM drives 272 1.1 gavan sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 273 1.1 gavan st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives 274 1.1 gavan uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 275 1.1 gavan 276 1.37 abs 277 1.37 abs # Network Interfaces 278 1.37 abs 279 1.105 macallan # onboard ethernet 280 1.1 gavan wm* at pci? dev ? function ? # Intel 8254x gigabit 281 1.1 gavan 282 1.1 gavan # MII/PHY support 283 1.1 gavan makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 284 1.1 gavan ukphy* at mii? phy ? # generic unknown PHYs 285 1.1 gavan 286 1.37 abs 287 1.1 gavan # USB Controller and Devices 288 1.1 gavan 289 1.105 macallan # Iyonix ships with an ehci/ohci card 290 1.105 macallan ehci* at pci? dev ? function ? # Enhanced Host Controller 291 1.1 gavan ohci* at pci? dev ? function ? # Open Host Controller 292 1.105 macallan #uhci* at pci? dev ? function ? # Universal Host Controller (Intel) 293 1.41 kiyohara 294 1.1 gavan # USB bus support 295 1.105 macallan usb* at ehci? 296 1.1 gavan usb* at ohci? 297 1.105 macallan #usb* at uhci? 298 1.1 gavan #usb* at slhci? 299 1.1 gavan 300 1.1 gavan # USB Hubs 301 1.37 abs uhub* at usb? 302 1.37 abs uhub* at uhub? port ? 303 1.1 gavan 304 1.1 gavan # USB HID device 305 1.37 abs uhidev* at uhub? port ? configuration ? interface ? 306 1.1 gavan 307 1.1 gavan # USB Mice 308 1.37 abs ums* at uhidev? reportid ? 309 1.37 abs wsmouse* at ums? mux 0 310 1.1 gavan 311 1.1 gavan # USB eGalax touch-panel 312 1.37 abs #uep* at uhub? port ? 313 1.37 abs #wsmouse* at uep? mux 0 314 1.1 gavan 315 1.1 gavan # USB Keyboards 316 1.37 abs ukbd* at uhidev? reportid ? 317 1.37 abs wskbd* at ukbd? console ? mux 1 318 1.1 gavan 319 1.1 gavan # USB Generic HID devices 320 1.37 abs uhid* at uhidev? reportid ? 321 1.1 gavan 322 1.1 gavan # USB Mass Storage 323 1.37 abs umass* at uhub? port ? configuration ? interface ? 324 1.1 gavan 325 1.1 gavan # USB audio 326 1.37 abs uaudio* at uhub? port ? configuration ? 327 1.1 gavan 328 1.1 gavan # USB MIDI 329 1.37 abs #umidi* at uhub? port ? configuration ? 330 1.1 gavan 331 1.1 gavan # USB Ethernet adapters 332 1.37 abs #axe* at uhub? port ? # ASIX AX88172 based adapters 333 1.1 gavan 334 1.37 abs uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 335 1.37 abs ucom* at uplcom? portno ? 336 1.1 gavan 337 1.1 gavan # USB Generic driver 338 1.37 abs #ugen* at uhub? port ? 339 1.1 gavan 340 1.1 gavan 341 1.105 macallan # Iyonix onboard audio 342 1.1 gavan autri* at pci? dev ? function ? # Trident 4DWAVE based AC'97 Audio 343 1.1 gavan 344 1.1 gavan # Audio support 345 1.1 gavan audio* at audiobus? 346 1.1 gavan 347 1.93 christos spkr* at audio? # PC speaker (synthesized) 348 1.91 nat 349 1.1 gavan # On-board device support 350 1.37 abs 351 1.1 gavan obio* at mainbus? 352 1.105 macallan com1 at obio? addr 0x900003e8 xint 1 # on-board UART 353 1.1 gavan com0 at obio? addr 0x900002f8 xint 1 # on-board UART 354 1.1 gavan #com* at obio? addr 0x900003e8 xint 1 # on-board UART 355 1.1 gavan #com* at obio? addr 0x900003f8 xint 1 # on-board UART 356 1.1 gavan 357 1.1 gavan # Pseudo-Devices 358 1.1 gavan 359 1.37 abs #pseudo-device crypto # /dev/crypto device 360 1.37 abs #pseudo-device swcrypto # software crypto implementation 361 1.37 abs 362 1.1 gavan # disk/mass storage pseudo-devices 363 1.37 abs 364 1.59 pooka pseudo-device fss # file system snapshot device 365 1.37 abs 366 1.1 gavan # network pseudo-devices 367 1.26 rpaulo pseudo-device bpfilter # Berkeley packet filter 368 1.107 sevan pseudo-device carp # Common Address Redundancy Protocol 369 1.99 maxv #pseudo-device npf # NPF packet filter 370 1.1 gavan pseudo-device loop # network loopback 371 1.37 abs #pseudo-device ppp # Point-to-Point Protocol 372 1.37 abs #pseudo-device pppoe # PPP over Ethernet (RFC 2516) 373 1.37 abs #pseudo-device sl # Serial Line IP 374 1.37 abs #pseudo-device irframetty # IrDA frame line discipline 375 1.37 abs #pseudo-device tap # virtual Ethernet 376 1.37 abs #pseudo-device tun # network tunneling over tty 377 1.37 abs #pseudo-device gre # generic L3 over IP tunnel 378 1.37 abs #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 379 1.37 abs #pseudo-device faith # IPv[46] tcp relay translation i/f# 380 1.37 abs #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 381 1.37 abs #pseudo-device vlan # IEEE 802.1q encapsulation 382 1.37 abs #pseudo-device bridge # simple inter-network bridging 383 1.113 roy #pseudo-device vether # Virtual Ethernet for bridge 384 1.38 martin #pseudo-device agr # IEEE 802.3ad link aggregation 385 1.37 abs # srt is EXPERIMENTAL 386 1.37 abs #pseudo-device srt # source-address-based routing 387 1.1 gavan 388 1.50 tls # 389 1.50 tls # accept filters 390 1.50 tls pseudo-device accf_data # "dataready" accept filter 391 1.50 tls pseudo-device accf_http # "httpready" accept filter 392 1.50 tls 393 1.1 gavan # miscellaneous pseudo-devices 394 1.1 gavan pseudo-device pty # pseudo-terminals 395 1.37 abs #options RND_COM # use "com" randomness as well (BROKEN) 396 1.1 gavan pseudo-device clockctl # user control of clock subsystem 397 1.106 isaki pseudo-device drvctl # user control of drive subsystem 398 1.1 gavan pseudo-device ksyms # /dev/ksyms 399 1.115 riastrad pseudo-device swwdog # software watchdog timer -- swwdog(4) 400 1.1 gavan 401 1.37 abs # wscons pseudo-devices 402 1.37 abs pseudo-device wsmux # mouse & keyboard multiplexor 403 1.55 gavan pseudo-device wsfont 404 1.37 abs 405 1.107 sevan include "dev/veriexec.config" 406 1.37 abs 407 1.105 macallan #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions 408 1.116 abs 409 1.116 abs # Pull in optional local configuration - always at end 410 1.116 abs cinclude "arch/iyonix/conf/GENERIC.local" 411