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