GENERIC revision 1.87
11.87Suwe# $NetBSD: GENERIC,v 1.87 2007/06/24 23:04:24 uwe Exp $ 21.1Smatt# 31.11Sgmcgarry# GENERIC machine description file 41.11Sgmcgarry# 51.11Sgmcgarry# This machine description file is used to generate the default NetBSD 61.11Sgmcgarry# kernel. The generic kernel does not include all options, subsystems 71.11Sgmcgarry# and device drivers, but should be useful for most applications. 81.1Smatt# 91.11Sgmcgarry# The machine description file can be customised for your specific 101.11Sgmcgarry# machine to reduce the kernel size and improve its performance. 111.11Sgmcgarry# 121.11Sgmcgarry# For further information on compiling NetBSD kernels, see the config(8) 131.11Sgmcgarry# man page. 141.11Sgmcgarry# 151.11Sgmcgarry# For further information on hardware support for this architecture, see 161.11Sgmcgarry# the intro(4) man page. For further information about kernel options 171.11Sgmcgarry# for this architecture, see the options(4) man page. For an explanation 181.11Sgmcgarry# of each device driver in this file see the section 4 man page for the 191.11Sgmcgarry# device. 201.1Smatt 211.11Sgmcgarryinclude "arch/netwinder/conf/std.netwinder" 221.23Satatat 231.23Satatatoptions INCLUDE_CONFIG_FILE # embed config file in kernel binary 241.1Smatt 251.1Smatt# estimated number of users 261.1Smatt 271.1Smattmaxusers 32 281.1Smatt 291.1Smatt# Standard system options 301.1Smatt 311.1Smattoptions RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 321.1Smatt#options NTP # NTP phase/frequency locked loop 331.29Sjunyoung 341.30Swiz# Enable experimental buffer queue strategy for better responsiveness under 351.29Sjunyoung# high disk I/O load. Use it with caution - it's not proven to be stable yet. 361.61Stsutsui#options BUFQ_READPRIO 371.61Stsutsui#options BUFQ_PRIOCSCAN 381.1Smatt 391.1Smatt# CPU options 401.1Smatt 411.1Smatt# For StrongARM systems 421.1Smattoptions CPU_SA110 # Support the SA110 core 431.36Suwemakeoptions CPUFLAGS="-march=armv4 -mtune=strongarm" 441.1Smatt 451.1Smatt# FPA options 461.1Smatt 471.1Smatt#options ARMFPE # ARM Ltd FPE 481.1Smatt 491.35Suwe# Default console is wscons, if igsfb(4) and pckbc(4) are configured, 501.35Suwe# or com(4) otherwise. You can force a serial console with these options 511.35Suwe#options CONSDEVNAME="\"com\"",CONCOMADDR=0x3f8,CONSPEED=115200 521.35Suwe 531.35Suwe 541.1Smatt# File systems 551.1Smatt 561.1Smattfile-system FFS # UFS 571.1Smatt#file-system LFS # log-structured file system 581.1Smattfile-system MFS # memory file system 591.1Smattfile-system NFS # Network file system 601.1Smatt#file-system ADOSFS # AmigaDOS-compatible file system 611.1Smattfile-system EXT2FS # second extended file system (linux) 621.1Smatt#file-system CD9660 # ISO 9660 + Rock Ridge file system 631.1Smattfile-system MSDOSFS # MS-DOS file system 641.18Sthorpejfile-system FDESC # /dev/fd 651.18Sthorpejfile-system KERNFS # /kern 661.1Smattfile-system NULLFS # loopback file system 671.1Smatt#file-system PORTAL # portal filesystem (still experimental) 681.18Sthorpejfile-system PROCFS # /proc 691.1Smatt#file-system UMAPFS # NULLFS + uid and gid remapping 701.1Smatt#file-system UNION # union file system 711.68Schristosfile-system PTYFS # /dev/pts/N support 721.86Sjmmv#file-system TMPFS # Efficient memory file-system 731.76Sreinoud#file-system UDF # experimental - OSTA UDF CD/DVD file-system 741.1Smatt 751.1Smatt# File system options 761.1Smatt#options QUOTA # UFS quotas 771.1Smatt#options FFS_EI # FFS Endian Independant support 781.74Stsutsui#options FFS_NO_SNAPSHOT # No FFS snapshot support 791.1Smattoptions NFSSERVER 801.3Smattoptions SOFTDEP 811.87Suwe#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 821.1Smatt 831.1Smatt# Networking options 841.1Smatt 851.1Smatt#options GATEWAY # packet forwarding 861.1Smattoptions INET # IP + ICMP + TCP + UDP 871.1Smattoptions INET6 # IPV6 881.1Smatt#options IPSEC # IP security 891.1Smatt#options IPSEC_ESP # IP security (encryption part; define w/ IPSEC) 901.63Stron#options IPSEC_NAT_T # IPsec NAT traversal (NAT-T) 911.1Smatt#options IPSEC_DEBUG # debug for IP security 921.1Smatt#options MROUTING # IP multicast routing 931.53Smanu#options PIM # Protocol Independent Multicast 941.1Smatt#options ISO,TPIP # OSI 951.1Smatt#options EON # OSI tunneling over IP 961.1Smatt#options NETATALK # AppleTalk networking 971.1Smatt#options PFIL_HOOKS # pfil(9) packet filter hooks 981.1Smatt#options PPP_BSDCOMP # BSD-Compress compression support for PPP 991.1Smatt#options PPP_DEFLATE # Deflate compression support for PPP 1001.1Smatt#options PPP_FILTER # Active filter support for PPP (requires bpf) 1011.5Sabs#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 1021.1Smatt 1031.49Sabs#options ALTQ # Manipulate network interfaces' output queues 1041.49Sabs#options ALTQ_BLUE # Stochastic Fair Blue 1051.49Sabs#options ALTQ_CBQ # Class-Based Queueing 1061.49Sabs#options ALTQ_CDNR # Diffserv Traffic Conditioner 1071.49Sabs#options ALTQ_FIFOQ # First-In First-Out Queue 1081.49Sabs#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 1091.49Sabs#options ALTQ_HFSC # Hierarchical Fair Service Curve 1101.49Sabs#options ALTQ_LOCALQ # Local queueing discipline 1111.49Sabs#options ALTQ_PRIQ # Priority Queueing 1121.49Sabs#options ALTQ_RED # Random Early Detection 1131.49Sabs#options ALTQ_RIO # RED with IN/OUT 1141.49Sabs#options ALTQ_WFQ # Weighted Fair Queueing 1151.49Sabs 1161.1Smattoptions NFS_BOOT_BOOTP 1171.1Smattoptions NFS_BOOT_DHCP 1181.1Smatt#options NFS_BOOT_BOOTPARAM 1191.1Smatt 1201.1Smatt# Compatibility options 1211.1Smatt 1221.1Smatt#options COMPAT_43 # 4.3BSD compatibility. 1231.87Suweoptions COMPAT_40 # NetBSD 4.0 compatibility. 1241.67Schristosoptions COMPAT_30 # NetBSD 3.0 compatibility. 1251.59Ssimonboptions COMPAT_20 # NetBSD 2.0 compatibility. 1261.37Schrisoptions COMPAT_16 # NetBSD 1.6 compatibility. 1271.2Smattoptions COMPAT_15 # NetBSD 1.5 compatibility. 1281.1Smattoptions COMPAT_14 # NetBSD 1.4 compatibility. 1291.1Smatt#options COMPAT_13 # NetBSD 1.3 compatibility. 1301.1Smatt#options COMPAT_12 # NetBSD 1.2 compatibility. 1311.1Smatt#options COMPAT_11 # NetBSD 1.1 compatibility. 1321.1Smatt#options COMPAT_10 # NetBSD 1.0 compatibility. 1331.1Smatt#options COMPAT_09 # NetBSD 0.9 compatibility. 1341.5Sabs#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 1351.1Smatt 1361.19Sthorpejoptions COMPAT_LINUX # binary compatibility with Linux 1371.87Suweoptions COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 1381.19Sthorpej 1391.1Smatt# Shared memory options 1401.1Smatt 1411.1Smattoptions SYSVMSG # System V-like message queues 1421.1Smattoptions SYSVSEM # System V-like semaphores 1431.9Slukem#options SEMMNI=10 # number of semaphore identifiers 1441.9Slukem#options SEMMNS=60 # number of semaphores in system 1451.9Slukem#options SEMUME=10 # max number of undo entries per process 1461.9Slukem#options SEMMNU=30 # number of undo structures in system 1471.1Smattoptions SYSVSHM # System V-like memory sharing 1481.1Smattoptions SHMMAXPGS=1024 # 1024 pages is the default 1491.50Sbouyeroptions P1003_1B_SEMAPHORE # p1003.1b semaphore support 1501.1Smatt 1511.1Smatt# Device options 1521.1Smatt 1531.2Smatt#options MEMORY_DISK_HOOKS # boottime setup of ramdisk 1541.16Slukem#options MEMORY_DISK_ROOT_SIZE=3400 # Size in blocks 1551.1Smatt#options MEMORY_DISK_IS_ROOT # use memory disk as root 1561.1Smatt 1571.1Smatt# Miscellaneous kernel options 1581.1Smattoptions KTRACE # system call tracing, a la ktrace(1) 1591.82Schristos#options SYSTRACE # system call vetting via systrace(1) 1601.1Smattoptions IRQSTATS # manage IRQ statistics 1611.1Smatt#options LKM # loadable kernel modules 1621.1Smatt#options KMEMSTATS # kernel memory statistics 1631.1Smatt#options SCSIVERBOSE # Verbose SCSI errors 1641.3Smattoptions PCIVERBOSE # Verbose PCI descriptions 1651.3Smattoptions MIIVERBOSE # Verbose MII autoconfuration messages 1661.2Smatt#options PCI_CONFIG_DUMP # verbosely dump PCI config space 1671.1Smatt#options DDB_KEYCODE=0x40 1681.25Slukemoptions USERCONF # userconf(4) support 1691.87Suwe#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 1701.51Satatatoptions SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 1711.1Smatt 1721.1Smatt# Development and Debugging options 1731.1Smatt 1741.1Smatt#options ARM700BUGTRACK # track the ARM700 swi bug 1751.1Smatt#options PORTMASTER # Enable PortMaster only options 1761.70Schs#options DIAGNOSTIC # internally consistency checks 1771.9Slukem#options PMAP_DEBUG # Enable pmap_debug_level code 1781.1Smatt#options IPKDB # remote kernel debugging 1791.1Smattoptions DDB # in-kernel debugger 1801.1Smattoptions DDB_HISTORY_SIZE=100 # Enable history editing in DDB 1811.17Sthorpejmakeoptions DEBUG="-g" # compile full symbol table 1821.60Smattoptions SYMTAB_SPACE=480000 1831.1Smatt 1841.1Smattconfig netbsd root on ? type ? 1851.1Smatt 1861.1Smatt# The main bus device 1871.2Smattmainbus0 at root 1881.1Smatt 1891.45Swiz# The boot CPU 1901.2Smattcpu0 at mainbus? 1911.1Smatt 1921.1Smatt# Core logic 1931.1Smattfootbridge0 at mainbus? 1941.1Smatt 1951.1Smatt# footbridge uart 1961.2Smatt#fcom0 at footbridge? 1971.1Smatt 1981.1Smatt# system clock via footbridge 1991.2Smatt#clock* at footbridge? 2001.1Smatt 2011.1Smatt# PCI bus via footbridge 2021.2Smattpci0 at footbridge? # PCI bus 2031.1Smatt 2041.1Smatt# ISA bus support 2051.2Smattpcib* at pci? dev ? function ? # ISA bridge 2061.2Smattisa* at pcib? 2071.1Smatt 2081.1Smatt 2091.1Smatt# PCI IDE Controllers and Devices 2101.1Smatt# PCI IDE controllers - see pciide(4) for supported hardware. 2111.1Smatt# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know 2121.1Smatt# how to set up DMA modes for this chip. This may work, or may cause 2131.1Smatt# a machine hang with some controllers. 2141.42Sthorpej#pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 2151.39Sbouyerslide* at pci? dev ? function ? # Symphony Labs IDE controllers 2161.38Sbouyer 2171.40Slukem# ATA (IDE) bus support 2181.40Slukematabus* at ata? 2191.1Smatt 2201.1Smatt# IDE drives 2211.1Smatt# Flags are used only with controllers that support DMA operations 2221.1Smatt# and mode settings (e.g. some pciide controllers) 2231.1Smatt# The lowest order four bits (rightmost digit) of the flags define the PIO 2241.1Smatt# mode to use, the next set of four bits the DMA mode and the third set the 2251.1Smatt# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 2261.1Smatt# to use, and the last bit must be 1 for this setting to be used. 2271.1Smatt# For DMA and UDMA, 0xf (1111) means 'disable'. 2281.1Smatt# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 2291.1Smatt# (0xc=1100, 0xa=1010, 0xf=1111) 2301.1Smatt# 0x0000 means "use whatever the drive claims to support". 2311.38Sbouyerwd* at atabus? drive ? flags 0x0000 # the drives themselves 2321.1Smatt 2331.1Smatt# PCI network interfaces 2341.2Smattne* at pci? dev ? function ? # NE2000 compat ethernet 2351.2Smatttlp* at pci? dev ? function ? # DECchip 21x4x (and clones) Ethernet 2361.1Smattoptions TLP_MATCH_21142 2371.1Smatt 2381.1Smatt# MII/PHY support 2391.14Swizicsphy* at mii? phy ? # ISC-189x PHYs 2401.2Smattukphy* at mii? phy ? # generic unknown PHYs 2411.1Smatt 2421.26Suwe 2431.1Smatt# WSCONS Support 2441.1Smattoptions WSEMUL_VT100 # VT100 / VT220 emulation 2451.79Suwe 2461.79Suwe# customization of console and kernel output - see dev/wscons/wsdisplayvar.h 2471.79Suweoptions WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8) 2481.79Suwe#options WS_DEFAULT_FG=WSCOL_WHITE 2491.79Suwe#options WS_DEFAULT_BG=WSCOL_BLACK 2501.79Suwe#options WS_DEFAULT_COLATTR="(0)" 2511.79Suwe#options WS_DEFAULT_MONOATTR="(0)" 2521.1Smattoptions WS_KERNEL_FG=WSCOL_GREEN 2531.26Suwe#options WS_KERNEL_BG=WSCOL_BLACK 2541.26Suweoptions WS_KERNEL_COLATTR=WSATTR_HILIT 2551.79Suwe#options WS_KERNEL_MONOATTR="(0)" 2561.79Suwe 2571.26Suwe# compatibility to other console drivers 2581.26Suweoptions WSDISPLAY_COMPAT_PCVT # emulate some ioctls 2591.26Suweoptions WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 2601.26Suweoptions WSDISPLAY_COMPAT_USL # VT handling 2611.26Suweoptions WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 2621.26Suwe 2631.26Suweoptions FONT_GALLANT12x22 # Sun PROM font look-alike 2641.26Suwe 2651.2Smattpckbc0 at isa? 2661.1Smattpckbd* at pckbc? 2671.1Smattwskbd* at pckbd? console ? 2681.1Smattpms* at pckbc? 2691.1Smattwsmouse* at pms? mux 0 2701.1Smatt 2711.33Suweigsfb* at pci? dev ? function ? 2721.33Suwewsdisplay* at igsfb? console ? 2731.26Suwe 2741.1Smatt 2751.1Smatt# ISA Devices 2761.1Smattcom0 at isa? port 0x3f8 irq 4 2771.2Smattlpt0 at isa? port 0x378 irq 7 2781.1Smatt 2791.1Smatt 2801.1Smatt# Audio Devices 2811.1Smatt 2821.2Smatt# ISA audio devices 2831.2Smattsb0 at isa? port 0x220 irq 3 drq 1 drq2 7 # SoundBlaster 2841.2Smattopl* at sb? 2851.2Smattmpu* at sb? 2861.2Smattmidi* at sb? # SB1 MIDI port 2871.1Smatt 2881.1Smatt# Audio support 2891.2Smattaudio* at sb? 2901.1Smatt 2911.1Smatt# Pseudo-Devices 2921.1Smatt 2931.72Sthorpejpseudo-device crypto # /dev/crypto device 2941.73Sthorpejpseudo-device swcrypto # software crypto implementation 2951.43Sjonathan 2961.1Smatt# disk/mass storage pseudo-devices 2971.2Smatt#pseudo-device md 1 # memory disk device (ramdisk) 2981.78Scubepseudo-device vnd # disk-like interface to files 2991.64Shubertf#options VND_COMPRESSION # compressed vnd(4) 3001.56Shannkenpseudo-device fss 4 # file system snapshot device 3011.28Selric#pseudo-device cgd 4 # cryptographic disk devices 3021.1Smatt 3031.1Smatt# network pseudo-devices 3041.77Srpaulopseudo-device bpfilter # Berkeley packet filter 3051.81Sliamjfoy#pseudo-device carp # Common Address Redundancy Protocol 3061.12Smartinpseudo-device pppoe # PPP over Ethernet (RFC 2516) 3071.10Satatatpseudo-device bridge # simple inter-network bridging 3081.87Suwe#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 3091.1Smattpseudo-device loop # network loopback 3101.1Smatt 3111.1Smatt# miscellaneous pseudo-devices 3121.1Smattpseudo-device pty # pseudo-terminals 3131.1Smattpseudo-device rnd # /dev/random and in-kernel generator 3141.24Slukempseudo-device clockctl # user control of clock subsystem 3151.32Sraggepseudo-device ksyms # /dev/ksyms 3161.48Sitojun#pseudo-device pf # PF packet filter 3171.48Sitojun#pseudo-device pflog # PF log if 3181.26Suwe 3191.26Suwe# wscons pseudo-devices 3201.26Suwepseudo-device wsmux # mouse & keyboard multiplexor 3211.26Suwe#pseudo-device wsfont 3221.75Selad 3231.75Selad# Veriexec 3241.75Selad# 3251.75Selad# a pseudo device needed for veriexec 3261.75Selad#pseudo-device veriexec 1 3271.75Selad# 3281.75Selad# Uncomment the fingerprint methods below that are desired. Note that 3291.75Selad# removing fingerprint methods will have almost no impact on the kernel 3301.75Selad# code size. 3311.75Selad# 3321.75Selad#options VERIFIED_EXEC_FP_RMD160 3331.75Selad#options VERIFIED_EXEC_FP_SHA256 3341.75Selad#options VERIFIED_EXEC_FP_SHA384 3351.75Selad#options VERIFIED_EXEC_FP_SHA512 3361.75Selad#options VERIFIED_EXEC_FP_SHA1 3371.75Selad#options VERIFIED_EXEC_FP_MD5 338