Home | History | Annotate | Line # | Download | only in conf
GENERIC.common revision 1.10
      1 #
      2 #	$NetBSD: GENERIC.common,v 1.10 2024/01/29 18:27:14 christos Exp $
      3 #
      4 #	GENERIC common RISC-V kernel config items shared between 32 and 64
      5 #	kernels
      6 #
      7 
      8 maxusers 	64		# estimated number of users
      9 
     10 options 	FDT
     11 options 	MULTIPROCESSOR
     12 
     13 # Standard system options
     14 options 	FPE		# Floating-point extension support
     15 options 	NTP		# NTP phase/frequency locked loop
     16 
     17 options 	KTRACE		# system call tracing via ktrace(1)
     18 
     19 # Heartbeat checks
     20 options 	HEARTBEAT
     21 options 	HEARTBEAT_MAX_PERIOD_DEFAULT=15
     22 
     23 # Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
     24 options 	SYSVMSG		# System V-like message queues
     25 options 	SYSVSEM		# System V-like semaphores
     26 options 	SYSVSHM		# System V-like memory sharing
     27 
     28 options 	MODULAR		# new style module(7) framework
     29 options 	MODULAR_DEFAULT_AUTOLOAD
     30 options 	USERCONF	# userconf(4) support
     31 #options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
     32 options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
     33 
     34 # Alternate buffer queue strategies for better responsiveness under high
     35 # disk I/O load.
     36 #options 	BUFQ_READPRIO
     37 options 	BUFQ_PRIOCSCAN
     38 
     39 # These options enable verbose messages for several subsystems.
     40 # Warning, these may compile large string tables into the kernel!
     41 #options 	USBVERBOSE	# verbose USB device autoconfig messages
     42 
     43 #
     44 # Because gcc omits the frame pointer for any -O level, the line below
     45 # is needed to make backtraces in DDB work.
     46 #
     47 makeoptions 	COPTS="-O2 -fno-omit-frame-pointer"
     48 makeoptions 	COPY_SYMTAB=1
     49 options 	DDB		# in-kernel debugger
     50 #options 	DDB_COMMANDONENTER="bt"	# execute command when ddb is entered
     51 options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
     52 options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
     53 #options 	KGDB		# remote debugger
     54 #options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
     55 #options 	SYSCALL_STATS	# per syscall counts
     56 #options 	SYSCALL_TIMES	# per syscall times
     57 #options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
     58 
     59 # Compatibility options
     60 include 	"conf/compat_netbsd100.config"
     61 
     62 # Wedge support
     63 options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
     64 options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
     65 options 	DKWEDGE_METHOD_BSDLABEL	# Support disklabel entries as wedges
     66 options 	DKWEDGE_METHOD_MBR	# Support MBR partitions as wedges
     67 options 	DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
     68 #options 	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
     69 
     70 include 	"conf/filesystems.config"
     71 
     72 # File system options
     73 options 	FFS_EI		# FFS Endian Independent support
     74 #options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
     75 options 	QUOTA		# legacy UFS quotas
     76 options 	QUOTA2		# new, in-filesystem UFS quotas
     77 #options 	UFS_DIRHASH	# UFS Large Directory Hashing
     78 options 	WAPBL		# File system journaling support
     79 #options 	DISKLABEL_EI	# disklabel Endian Independent support
     80 options 	NFSSERVER	# Network File System server
     81 options 	NFS_BOOT_DHCP	# Support DHCP NFS root
     82 
     83 # Networking options
     84 #options 	GATEWAY		# packet forwarding
     85 options 	INET		# IP + ICMP + TCP + UDP
     86 options 	INET6		# IPV6
     87 options 	IPSEC		# IP security
     88 #options 	IPSEC_DEBUG	# debug for IP security
     89 #options 	MPLS		# MultiProtocol Label Switching (needs mpls)
     90 #options 	MROUTING	# IP multicast routing
     91 #options 	PIM		# Protocol Independent Multicast
     92 #options 	NETATALK	# AppleTalk networking protocols
     93 #options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
     94 #options 	PPP_DEFLATE	# Deflate compression support for PPP
     95 #options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
     96 #options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
     97 
     98 #options 	ALTQ		# Manipulate network interfaces' output queues
     99 #options 	ALTQ_BLUE	# Stochastic Fair Blue
    100 #options 	ALTQ_CBQ	# Class-Based Queueing
    101 #options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
    102 #options 	ALTQ_FIFOQ	# First-In First-Out Queue
    103 #options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
    104 #options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
    105 #options 	ALTQ_LOCALQ	# Local queueing discipline
    106 #options 	ALTQ_PRIQ	# Priority Queueing
    107 #options 	ALTQ_RED	# Random Early Detection
    108 #options 	ALTQ_RIO	# RED with IN/OUT
    109 #options 	ALTQ_WFQ	# Weighted Fair Queueing
    110 
    111 # These options enable verbose messages for several subsystems.
    112 # Warning, these may compile large string tables into the kernel!
    113 
    114 # Kernel root file system and dump configuration.
    115 config 		netbsd	root on ? type ?
    116 
    117 #
    118 # Device configuration
    119 #
    120 
    121 mainbus0 	at root
    122 simplebus* 	at fdt? pass 0
    123 
    124 # CPUs
    125 cpus* 		at fdt? pass 0
    126 cpu* 		at fdt? pass 0
    127 
    128 intc* 		at cpu? pass 1
    129 
    130 # Fixed Clocks
    131 fclock* 	at fdt? pass 1
    132 
    133 # System Controller
    134 syscon* 	at fdt? pass 1		# Generic System Controller
    135 
    136 # Core-level Interrupt Control block
    137 #clint0		at fdt? pass 2
    138 
    139 # Platform-Level Interrupt Controller
    140 plic* 		at fdt? pass 2
    141 
    142 # UART
    143 com* 		at fdt?			# UART
    144 
    145 # Firmware devices
    146 #qemufwcfg* 	at fdt?			# QEMU Firmware Configuration device
    147 
    148 # RTC devices
    149 gfrtc* 		at fdt?			# Google Goldfish RTC
    150 
    151 # USB
    152 xhci* 		at fdt?			# XHCI
    153 usb* 		at usbus?
    154 include "dev/usb/usbdevices.config"
    155 midi*		at midibus?
    156 pseudo-device 	sequencer		# MIDI sequencer
    157 
    158 
    159 # Virtio devices
    160 virtio* 	at fdt?			# Virtio MMIO device
    161 #viomb* 	at virtio?		# Virtio memory balloon device
    162 ld* 		at virtio?		# Virtio disk device
    163 vioif* 		at virtio?		# Virtio network device
    164 viornd* 	at virtio?		# Virtio entropy device
    165 #vioscsi* 	at virtio?		# Virtio SCSI device
    166 
    167 # Pseudo-Devices
    168 # network pseudo-devices
    169 pseudo-device 	bpfilter		# Berkeley packet filter
    170 pseudo-device 	bridge			# simple inter-network bridging
    171 pseudo-device 	carp			# Common Address Redundancy Protocol
    172 pseudo-device 	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
    173 pseudo-device 	gre			# generic L3 over IP tunnel
    174 pseudo-device 	ipsecif			# interface for routing-based ipsec
    175 pseudo-device 	loop			# network loopback
    176 pseudo-device 	npf			# NPF packet filter
    177 pseudo-device 	ppp			# Point-to-Point Protocol
    178 pseudo-device 	pppoe			# PPP over Ethernet (RFC 2516)
    179 pseudo-device 	swcrypto		# software crypto implementation
    180 pseudo-device 	tun			# network tunneling over tty
    181 pseudo-device 	tap			# virtual Ethernet
    182 pseudo-device 	vether			# Virtual Ethernet for bridge
    183 pseudo-device 	vlan			# IEEE 802.1q encapsulation
    184 
    185 # miscellaneous pseudo-devices
    186 pseudo-device 	clockctl		# user control of clock subsystem
    187 pseudo-device 	crypto			# /dev/crypto device
    188 pseudo-device 	lockstat		# lock profiling
    189 pseudo-device 	ksyms			# /dev/ksyms
    190 #pseudo-device 	pad			# pseudo audio device
    191 pseudo-device 	pty			# pseudo-terminals
    192 #options 	RND_COM
    193 pseudo-device 	swwdog			# software watchdog timer -- swwdog(4)
    194 
    195 
    196 # disk/mass storage pseudo-devices
    197 #pseudo-device 	md			# memory disk device (ramdisk)
    198 #options 	MEMORY_DISK_HOOKS	# enable root ramdisk
    199 #options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
    200 
    201 pseudo-device	vnd			# disk-like interface to files
    202 options 	VND_COMPRESSION		# compressed vnd(4)
    203 
    204 # userland interface to drivers, including autoconf and properties retrieval
    205 pseudo-device 	drvctl
    206 
    207 options 	PAX_MPROTECT=0		# PaX mprotect(2) restrictions
    208 options 	PAX_ASLR=0		# PaX Address Space Layout Randomization
    209 
    210 # Pull in optional local configuration - always at end
    211 cinclude 	"arch/riscv/conf/GENERIC.local"
    212