xref: /freebsd/sys/riscv/conf/GENERIC (revision e6ee2b650672590d78fdca2145a0d78f32624f2d)
128029b68SRuslan Bukin#
228029b68SRuslan Bukin# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
328029b68SRuslan Bukin#
428029b68SRuslan Bukin# For more information on this file, please read the config(5) manual page,
528029b68SRuslan Bukin# and/or the handbook section on Kernel Configuration Files:
628029b68SRuslan Bukin#
7c1a14887SCeri Davies#    https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config
828029b68SRuslan Bukin#
928029b68SRuslan Bukin# The handbook is also available locally in /usr/share/doc/handbook
1028029b68SRuslan Bukin# if you've installed the doc distribution, otherwise always see the
11a2aef24aSEitan Adler# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
1228029b68SRuslan Bukin# latest information.
1328029b68SRuslan Bukin#
1428029b68SRuslan Bukin# An exhaustive list of options and more detailed explanations of the
1528029b68SRuslan Bukin# device lines is also present in the ../../conf/NOTES and NOTES files.
1628029b68SRuslan Bukin# If you are in doubt as to the purpose or necessity of a line, check first
1728029b68SRuslan Bukin# in NOTES.
1828029b68SRuslan Bukin#
1928029b68SRuslan Bukin# $FreeBSD$
2028029b68SRuslan Bukin
2128029b68SRuslan Bukincpu		RISCV
2228029b68SRuslan Bukinident		GENERIC
2328029b68SRuslan Bukin
2428029b68SRuslan Bukinmakeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
25c04c594dSMitchell Hornemakeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
2628029b68SRuslan Bukin
2728029b68SRuslan Bukinoptions 	SCHED_ULE		# ULE scheduler
2828029b68SRuslan Bukinoptions 	PREEMPTION		# Enable kernel thread preemption
29bd528a39SRuslan Bukinoptions 	VIMAGE			# Subsystem virtualization, e.g. VNET
3028029b68SRuslan Bukinoptions 	INET			# InterNETworking
3128029b68SRuslan Bukinoptions 	INET6			# IPv6 communications protocols
32bd79708dSJonathan T. Looneyoptions 	TCP_HHOOK		# hhook(9) framework for TCP
333b65550eSJosh Paetzeloptions 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
34d5fe384bSAlexander V. Chernikovoptions		ROUTE_MPATH		# Multipath routing support
3528029b68SRuslan Bukinoptions 	TCP_OFFLOAD		# TCP offload
36e64080e7SMark Johnstonoptions 	SCTP_SUPPORT		# Allow kldload of SCTP
3728029b68SRuslan Bukinoptions 	FFS			# Berkeley Fast Filesystem
3828029b68SRuslan Bukinoptions 	SOFTUPDATES		# Enable FFS soft updates support
3928029b68SRuslan Bukinoptions 	UFS_ACL			# Support for access control lists
4028029b68SRuslan Bukinoptions 	UFS_DIRHASH		# Improve performance on big directories
4128029b68SRuslan Bukinoptions 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
4228029b68SRuslan Bukinoptions 	QUOTA			# Enable disk quotas for UFS
4328029b68SRuslan Bukinoptions 	NFSCL			# Network Filesystem Client
4428029b68SRuslan Bukinoptions 	NFSD			# Network Filesystem Server
4528029b68SRuslan Bukinoptions 	NFSLOCKD		# Network Lock Manager
4628029b68SRuslan Bukinoptions 	NFS_ROOT		# NFS usable as /, requires NFSCL
4728029b68SRuslan Bukinoptions 	MSDOSFS			# MSDOS Filesystem
4828029b68SRuslan Bukinoptions 	CD9660			# ISO 9660 Filesystem
4928029b68SRuslan Bukinoptions 	PROCFS			# Process filesystem (requires PSEUDOFS)
5028029b68SRuslan Bukinoptions 	PSEUDOFS		# Pseudo-filesystem framework
51b798ef64SAlex Richardsonoptions 	TMPFS			# Efficient memory filesystem
5228029b68SRuslan Bukinoptions 	GEOM_PART_GPT		# GUID Partition Tables.
53c04c594dSMitchell Horneoptions 	GEOM_RAID		# Soft RAID functionality.
5428029b68SRuslan Bukinoptions 	GEOM_LABEL		# Provides labelization
5523e1961eSKristof Provostoptions 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
564e85b648SKristof Provostoptions 	COMPAT_FREEBSD13	# Compatible with FreeBSD13
5728029b68SRuslan Bukinoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
5828029b68SRuslan Bukinoptions 	KTRACE			# ktrace(1) support
59c04c594dSMitchell Horneoptions 	STACK			# stack(9) support
6028029b68SRuslan Bukinoptions 	SYSVSHM			# SYSV-style shared memory
6128029b68SRuslan Bukinoptions 	SYSVMSG			# SYSV-style message queues
6228029b68SRuslan Bukinoptions 	SYSVSEM			# SYSV-style semaphores
6328029b68SRuslan Bukinoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
6428029b68SRuslan Bukinoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
6528029b68SRuslan Bukinoptions 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
6628029b68SRuslan Bukin# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
6728029b68SRuslan Bukinoptions 	AUDIT			# Security event auditing
6828029b68SRuslan Bukinoptions 	CAPABILITY_MODE		# Capsicum capability mode
6928029b68SRuslan Bukinoptions 	CAPABILITIES		# Capsicum capabilities
7028029b68SRuslan Bukinoptions 	MAC			# TrustedBSD MAC Framework
7122d5f354SRuslan Bukinoptions 	KDTRACE_FRAME		# Ensure frames are compiled in
7222d5f354SRuslan Bukinoptions 	KDTRACE_HOOKS		# Kernel DTrace hooks
73c085d2eaSAndrew Turneroptions 	DDB_CTF			# Kernel ELF linker loads CTF data
747804dd52SRuslan Bukinoptions 	FPE			# Floating-point extension support
7528029b68SRuslan Bukinoptions 	RACCT			# Resource accounting framework
7628029b68SRuslan Bukinoptions 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
7728029b68SRuslan Bukinoptions 	RCTL			# Resource limits
7817696c12SRuslan Bukinoptions 	SMP
792d53a67cSRuslan Bukinoptions 	INTRNG
8017696c12SRuslan Bukin
81af19cc59SRuslan Bukin# RISC-V SBI console
82af19cc59SRuslan Bukindevice		rcons
83af19cc59SRuslan Bukin
8482524003SJessica Clarke# EXT_RESOURCES pseudo devices
8582524003SJessica Clarkeoptions 	EXT_RESOURCES
8682524003SJessica Clarkedevice		clk
878e7e0690SJessica Clarkedevice		hwreset
8882524003SJessica Clarkedevice		syscon
8982524003SJessica Clarkedevice		syscon_power
9082524003SJessica Clarkedevice		riscv_syscon
9182524003SJessica Clarke
927106b618SRuslan Bukin# Bus drivers
937106b618SRuslan Bukindevice		pci
947106b618SRuslan Bukin
956e162bd2SJessica Clarke# Block devices
966e162bd2SJessica Clarkedevice		scbus
976e162bd2SJessica Clarkedevice		da
986e162bd2SJessica Clarke
996fdc5735SRuslan Bukin# VirtIO support
1006fdc5735SRuslan Bukindevice		virtio			# Generic VirtIO bus (required)
1016fdc5735SRuslan Bukindevice		virtio_pci		# VirtIO PCI device
1026fdc5735SRuslan Bukindevice		vtnet			# VirtIO Ethernet device
1036fdc5735SRuslan Bukindevice		virtio_blk		# VirtIO Block device
1046fdc5735SRuslan Bukindevice		virtio_mmio		# VirtIO MMIO bus
1056fdc5735SRuslan Bukin
1066e162bd2SJessica Clarke# NVM Express (NVMe) support
1076e162bd2SJessica Clarkedevice		nvme		# base NVMe driver
1086e162bd2SJessica Clarkeoptions 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
1096e162bd2SJessica Clarkedevice		nvd		# expose NVMe namespaces as disks, depends on nvme
1106e162bd2SJessica Clarke
1116e162bd2SJessica Clarke# USB support
1126e162bd2SJessica Clarkeoptions 	USB_DEBUG		# enable debug msgs
1136e162bd2SJessica Clarkedevice		ohci			# OHCI USB interface
1146e162bd2SJessica Clarkedevice		uhci			# UHCI USB interface
1156e162bd2SJessica Clarkedevice		ehci			# EHCI USB interface (USB 2.0)
1166e162bd2SJessica Clarkedevice		xhci			# XHCI USB interface (USB 3.0)
1176e162bd2SJessica Clarkedevice		usb			# USB Bus (required)
1186e162bd2SJessica Clarkedevice		ukbd			# Keyboard
1196e162bd2SJessica Clarkedevice		umass			# Disks/Mass storage - Requires scbus and da
1206e162bd2SJessica Clarke
1216e162bd2SJessica Clarke# HID support
1226e162bd2SJessica Clarkeoptions 	HID_DEBUG	# enable debug msgs
1236e162bd2SJessica Clarkedevice		hid		# Generic HID support
1246e162bd2SJessica Clarke
125378a4956SRuslan Bukin# DTrace support
126378a4956SRuslan Bukin# device	dtrace
127378a4956SRuslan Bukin# device	dtrace_profile
128378a4956SRuslan Bukin# device	dtrace_sdt
129378a4956SRuslan Bukin# device	dtrace_fbt
130378a4956SRuslan Bukin# device	dtrace_systrace
131378a4956SRuslan Bukin# device	dtrace_prototype
132378a4956SRuslan Bukin# device	dtraceall
133378a4956SRuslan Bukin
134a0823230SRuslan Bukin# Serial (COM) ports
135a0823230SRuslan Bukindevice		uart		# Generic UART driver
136053ec050SRuslan Bukindevice		uart_lowrisc	# lowRISC UART driver
137a0823230SRuslan Bukindevice		uart_ns8250	# ns8250-type UART driver
138a0823230SRuslan Bukin
1392404f03fSJessica Clarke# Console
1402404f03fSJessica Clarkedevice		vt
1412404f03fSJessica Clarkedevice		kbdmux
1422404f03fSJessica Clarke
143d63a631eSJessica Clarke# RTC
144d63a631eSJessica Clarkedevice		goldfish_rtc	# QEMU RTC
145fcc3a0f6SRuslan Bukin
146fcc3a0f6SRuslan Bukin# Ethernet drivers
147facdd1cdSThomas Skibodevice		cgem		# Cadence GEM Gigabit Ethernet device
148fcc3a0f6SRuslan Bukindevice		miibus		# MII bus support
149fcc3a0f6SRuslan Bukindevice		xae		# Xilinx AXI Ethernet MAC
150fcc3a0f6SRuslan Bukin
151fcc3a0f6SRuslan Bukin# DMA support
152fcc3a0f6SRuslan Bukindevice		xdma		# DMA interface
153fcc3a0f6SRuslan Bukindevice		axidma		# Xilinx AXI DMA Controller
154fcc3a0f6SRuslan Bukin
155b47e5c5dSJessica Clarke# GPIO
156b47e5c5dSJessica Clarkedevice		gpio
157b47e5c5dSJessica Clarke
1588c439847SJessica Clarke# SPI
1598c439847SJessica Clarkedevice		spibus
1608c439847SJessica Clarkedevice		spigen
1618c439847SJessica Clarke
16217696c12SRuslan Bukin# Uncomment for memory disk
16317696c12SRuslan Bukin# options 	MD_ROOT
1645f8228b2SRuslan Bukin# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
16517696c12SRuslan Bukin# makeoptions	MFS_IMAGE=/path/to/img
16617696c12SRuslan Bukin# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
16728029b68SRuslan Bukin
1686fdc5735SRuslan Bukin# Uncomment for virtio block device
1696fdc5735SRuslan Bukin# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
1706fdc5735SRuslan Bukin
17128029b68SRuslan Bukin# Debugging support.  Always need this:
172d52d6d7cSRuslan Bukinoptions 	KDB			# Enable kernel debugger support.
173d52d6d7cSRuslan Bukinoptions 	KDB_TRACE		# Print a stack trace for a panic.
17428029b68SRuslan Bukin# For full debugger support use (turn off in stable branch):
175d52d6d7cSRuslan Bukinoptions 	DDB			# Support DDB.
176d72e9448SMitchell Horneoptions 	GDB			# Support remote GDB.
17728029b68SRuslan Bukinoptions 	DEADLKRES		# Enable the deadlock resolver
17828029b68SRuslan Bukinoptions 	INVARIANTS		# Enable calls of extra sanity checking
17928029b68SRuslan Bukinoptions 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
180fb50c414SMark Johnstonoptions 	WITNESS			# Enable checks to detect deadlocks and cycles
18139585a4cSJohn Baldwinoptions 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
18228029b68SRuslan Bukinoptions 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
183*e6ee2b65SMitchell Horneoptions 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
18428029b68SRuslan Bukin# options 	EARLY_PRINTF
185be352d20SKyle Evansoptions 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
18628029b68SRuslan Bukin
18796744f02SSean Bruno# Kernel dump features.
18896744f02SSean Brunooptions		ZSTDIO			# zstd-compressed kernel and user dumps
18996744f02SSean Bruno
19028029b68SRuslan Bukin# Pseudo devices.
1918cd385fdSJohn Baldwindevice		crypto		# core crypto support
19228029b68SRuslan Bukindevice		loop		# Network loopback
19328029b68SRuslan Bukindevice		ether		# Ethernet support
19428029b68SRuslan Bukindevice		vlan		# 802.1Q VLAN support
195251a32b5SKyle Evansdevice		tuntap		# Packet tunnel.
19628029b68SRuslan Bukindevice		md		# Memory "disks"
19728029b68SRuslan Bukindevice		gif		# IPv6 and IPv4 tunneling
19828029b68SRuslan Bukindevice		firmware	# firmware assist module
19928029b68SRuslan Bukin
20022d5f354SRuslan Bukin# The `bpf' device enables the Berkeley Packet Filter.
20122d5f354SRuslan Bukin# Be aware of the administrative consequences of enabling this!
20222d5f354SRuslan Bukin# Note that 'bpf' is required for DHCP.
20322d5f354SRuslan Bukindevice		bpf		# Berkeley packet filter
20422d5f354SRuslan Bukin
2053994f5bcSMitchell Horne# Flattened Device Tree
20628029b68SRuslan Bukinoptions 	FDT
2073994f5bcSMitchell Hornemakeoptions	MODULES_EXTRA+="dtb/sifive"
2083994f5bcSMitchell Horne
20991feb4f4SPhilip Paeps# I2C support
21091feb4f4SPhilip Paepsdevice		iicbus		# Bus support, required for iicoc below.
21191feb4f4SPhilip Paepsdevice		iicoc		# OpenCores I2C controller support
21291feb4f4SPhilip Paeps
2133994f5bcSMitchell Horne# SiFive device drivers
214896e217aSJessica Clarkedevice		fu740_pci_dw
215b47e5c5dSJessica Clarkedevice		sifive_gpio
21690a089cfSJessica Clarkedevice		sifive_spi
2173994f5bcSMitchell Horneinclude		"../sifive/std.sifive"
218