xref: /freebsd/sys/riscv/conf/GENERIC (revision 91feb4f42075e2d7c8d6d50cd5faa651ab3a0e7d)
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
5528029b68SRuslan Bukinoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
5628029b68SRuslan Bukinoptions 	KTRACE			# ktrace(1) support
57c04c594dSMitchell Horneoptions 	STACK			# stack(9) support
5828029b68SRuslan Bukinoptions 	SYSVSHM			# SYSV-style shared memory
5928029b68SRuslan Bukinoptions 	SYSVMSG			# SYSV-style message queues
6028029b68SRuslan Bukinoptions 	SYSVSEM			# SYSV-style semaphores
6128029b68SRuslan Bukinoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
6228029b68SRuslan Bukinoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
6328029b68SRuslan Bukinoptions 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
6428029b68SRuslan Bukin# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
6528029b68SRuslan Bukinoptions 	AUDIT			# Security event auditing
6628029b68SRuslan Bukinoptions 	CAPABILITY_MODE		# Capsicum capability mode
6728029b68SRuslan Bukinoptions 	CAPABILITIES		# Capsicum capabilities
6828029b68SRuslan Bukinoptions 	MAC			# TrustedBSD MAC Framework
6922d5f354SRuslan Bukinoptions 	KDTRACE_FRAME		# Ensure frames are compiled in
7022d5f354SRuslan Bukinoptions 	KDTRACE_HOOKS		# Kernel DTrace hooks
71c085d2eaSAndrew Turneroptions 	DDB_CTF			# Kernel ELF linker loads CTF data
727804dd52SRuslan Bukinoptions 	FPE			# Floating-point extension support
7328029b68SRuslan Bukinoptions 	RACCT			# Resource accounting framework
7428029b68SRuslan Bukinoptions 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
7528029b68SRuslan Bukinoptions 	RCTL			# Resource limits
7617696c12SRuslan Bukinoptions 	SMP
772d53a67cSRuslan Bukinoptions 	INTRNG
7817696c12SRuslan Bukin
79af19cc59SRuslan Bukin# RISC-V SBI console
80af19cc59SRuslan Bukindevice		rcons
81af19cc59SRuslan Bukin
8282524003SJessica Clarke# EXT_RESOURCES pseudo devices
8382524003SJessica Clarkeoptions 	EXT_RESOURCES
8482524003SJessica Clarkedevice		clk
858e7e0690SJessica Clarkedevice		hwreset
8682524003SJessica Clarkedevice		syscon
8782524003SJessica Clarkedevice		syscon_power
8882524003SJessica Clarkedevice		riscv_syscon
8982524003SJessica Clarke
907106b618SRuslan Bukin# Bus drivers
917106b618SRuslan Bukindevice		pci
927106b618SRuslan Bukin
936e162bd2SJessica Clarke# Block devices
946e162bd2SJessica Clarkedevice		scbus
956e162bd2SJessica Clarkedevice		da
966e162bd2SJessica Clarke
976fdc5735SRuslan Bukin# VirtIO support
986fdc5735SRuslan Bukindevice		virtio			# Generic VirtIO bus (required)
996fdc5735SRuslan Bukindevice		virtio_pci		# VirtIO PCI device
1006fdc5735SRuslan Bukindevice		vtnet			# VirtIO Ethernet device
1016fdc5735SRuslan Bukindevice		virtio_blk		# VirtIO Block device
1026fdc5735SRuslan Bukindevice		virtio_mmio		# VirtIO MMIO bus
1036fdc5735SRuslan Bukin
1046e162bd2SJessica Clarke# NVM Express (NVMe) support
1056e162bd2SJessica Clarkedevice		nvme		# base NVMe driver
1066e162bd2SJessica Clarkeoptions 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
1076e162bd2SJessica Clarkedevice		nvd		# expose NVMe namespaces as disks, depends on nvme
1086e162bd2SJessica Clarke
1096e162bd2SJessica Clarke# USB support
1106e162bd2SJessica Clarkeoptions 	USB_DEBUG		# enable debug msgs
1116e162bd2SJessica Clarkedevice		ohci			# OHCI USB interface
1126e162bd2SJessica Clarkedevice		uhci			# UHCI USB interface
1136e162bd2SJessica Clarkedevice		ehci			# EHCI USB interface (USB 2.0)
1146e162bd2SJessica Clarkedevice		xhci			# XHCI USB interface (USB 3.0)
1156e162bd2SJessica Clarkedevice		usb			# USB Bus (required)
1166e162bd2SJessica Clarkedevice		ukbd			# Keyboard
1176e162bd2SJessica Clarkedevice		umass			# Disks/Mass storage - Requires scbus and da
1186e162bd2SJessica Clarke
1196e162bd2SJessica Clarke# HID support
1206e162bd2SJessica Clarkeoptions 	HID_DEBUG	# enable debug msgs
1216e162bd2SJessica Clarkedevice		hid		# Generic HID support
1226e162bd2SJessica Clarke
123378a4956SRuslan Bukin# DTrace support
124378a4956SRuslan Bukin# device	dtrace
125378a4956SRuslan Bukin# device	dtrace_profile
126378a4956SRuslan Bukin# device	dtrace_sdt
127378a4956SRuslan Bukin# device	dtrace_fbt
128378a4956SRuslan Bukin# device	dtrace_systrace
129378a4956SRuslan Bukin# device	dtrace_prototype
130378a4956SRuslan Bukin# device	dtraceall
131378a4956SRuslan Bukin
132a0823230SRuslan Bukin# Serial (COM) ports
133a0823230SRuslan Bukindevice		uart		# Generic UART driver
134053ec050SRuslan Bukindevice		uart_lowrisc	# lowRISC UART driver
135a0823230SRuslan Bukindevice		uart_ns8250	# ns8250-type UART driver
136a0823230SRuslan Bukin
1372404f03fSJessica Clarke# Console
1382404f03fSJessica Clarkedevice		vt
1392404f03fSJessica Clarkedevice		kbdmux
1402404f03fSJessica Clarke
141d63a631eSJessica Clarke# RTC
142d63a631eSJessica Clarkedevice		goldfish_rtc	# QEMU RTC
143fcc3a0f6SRuslan Bukin
144fcc3a0f6SRuslan Bukin# Ethernet drivers
145facdd1cdSThomas Skibodevice		cgem		# Cadence GEM Gigabit Ethernet device
146fcc3a0f6SRuslan Bukindevice		miibus		# MII bus support
147fcc3a0f6SRuslan Bukindevice		xae		# Xilinx AXI Ethernet MAC
148fcc3a0f6SRuslan Bukin
149fcc3a0f6SRuslan Bukin# DMA support
150fcc3a0f6SRuslan Bukindevice		xdma		# DMA interface
151fcc3a0f6SRuslan Bukindevice		axidma		# Xilinx AXI DMA Controller
152fcc3a0f6SRuslan Bukin
153b47e5c5dSJessica Clarke# GPIO
154b47e5c5dSJessica Clarkedevice		gpio
155b47e5c5dSJessica Clarke
1568c439847SJessica Clarke# SPI
1578c439847SJessica Clarkedevice		spibus
1588c439847SJessica Clarkedevice		spigen
1598c439847SJessica Clarke
16017696c12SRuslan Bukin# Uncomment for memory disk
16117696c12SRuslan Bukin# options 	MD_ROOT
1625f8228b2SRuslan Bukin# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
16317696c12SRuslan Bukin# makeoptions	MFS_IMAGE=/path/to/img
16417696c12SRuslan Bukin# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
16528029b68SRuslan Bukin
1666fdc5735SRuslan Bukin# Uncomment for virtio block device
1676fdc5735SRuslan Bukin# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
1686fdc5735SRuslan Bukin
16928029b68SRuslan Bukin# Debugging support.  Always need this:
170d52d6d7cSRuslan Bukinoptions 	KDB			# Enable kernel debugger support.
171d52d6d7cSRuslan Bukinoptions 	KDB_TRACE		# Print a stack trace for a panic.
17228029b68SRuslan Bukin# For full debugger support use (turn off in stable branch):
173d52d6d7cSRuslan Bukinoptions 	DDB			# Support DDB.
17428029b68SRuslan Bukin# options 	GDB			# Support remote GDB.
17528029b68SRuslan Bukinoptions 	DEADLKRES		# Enable the deadlock resolver
17628029b68SRuslan Bukinoptions 	INVARIANTS		# Enable calls of extra sanity checking
17728029b68SRuslan Bukinoptions 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
178fb50c414SMark Johnstonoptions 	WITNESS			# Enable checks to detect deadlocks and cycles
17939585a4cSJohn Baldwinoptions 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
18028029b68SRuslan Bukinoptions 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
18128029b68SRuslan Bukin# options 	EARLY_PRINTF
182be352d20SKyle Evansoptions 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
18328029b68SRuslan Bukin
18496744f02SSean Bruno# Kernel dump features.
18596744f02SSean Brunooptions		ZSTDIO			# zstd-compressed kernel and user dumps
18696744f02SSean Bruno
18728029b68SRuslan Bukin# Pseudo devices.
1888cd385fdSJohn Baldwindevice		crypto		# core crypto support
18928029b68SRuslan Bukindevice		loop		# Network loopback
19028029b68SRuslan Bukindevice		ether		# Ethernet support
19128029b68SRuslan Bukindevice		vlan		# 802.1Q VLAN support
192251a32b5SKyle Evansdevice		tuntap		# Packet tunnel.
19328029b68SRuslan Bukindevice		md		# Memory "disks"
19428029b68SRuslan Bukindevice		gif		# IPv6 and IPv4 tunneling
19528029b68SRuslan Bukindevice		firmware	# firmware assist module
19628029b68SRuslan Bukin
19722d5f354SRuslan Bukin# The `bpf' device enables the Berkeley Packet Filter.
19822d5f354SRuslan Bukin# Be aware of the administrative consequences of enabling this!
19922d5f354SRuslan Bukin# Note that 'bpf' is required for DHCP.
20022d5f354SRuslan Bukindevice		bpf		# Berkeley packet filter
20122d5f354SRuslan Bukin
2023994f5bcSMitchell Horne# Flattened Device Tree
20328029b68SRuslan Bukinoptions 	FDT
2043994f5bcSMitchell Hornemakeoptions	MODULES_EXTRA+="dtb/sifive"
2053994f5bcSMitchell Horne
206*91feb4f4SPhilip Paeps# I2C support
207*91feb4f4SPhilip Paepsdevice		iicbus		# Bus support, required for iicoc below.
208*91feb4f4SPhilip Paepsdevice		iicoc		# OpenCores I2C controller support
209*91feb4f4SPhilip Paeps
2103994f5bcSMitchell Horne# SiFive device drivers
211896e217aSJessica Clarkedevice		fu740_pci_dw
212b47e5c5dSJessica Clarkedevice		sifive_gpio
21390a089cfSJessica Clarkedevice		sifive_spi
2143994f5bcSMitchell Horneinclude		"../sifive/std.sifive"
215