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