xref: /freebsd/sys/riscv/conf/GENERIC (revision b59017c5cad90d0f09a59e68c00457b7faf93e7c)
1#
2# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
3#
4# For more information on this file, please read the config(5) manual page,
5# and/or the handbook section on Kernel Configuration Files:
6#
7#    https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config
8#
9# The handbook is also available locally in /usr/share/doc/handbook
10# if you've installed the doc distribution, otherwise always see the
11# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
12# latest information.
13#
14# An exhaustive list of options and more detailed explanations of the
15# device lines is also present in the ../../conf/NOTES and NOTES files.
16# If you are in doubt as to the purpose or necessity of a line, check first
17# in NOTES.
18#
19
20cpu		RISCV
21ident		GENERIC
22
23makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
24makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
25
26options 	SCHED_ULE		# ULE scheduler
27options 	PREEMPTION		# Enable kernel thread preemption
28options 	VIMAGE			# Subsystem virtualization, e.g. VNET
29options 	INET			# InterNETworking
30options 	INET6			# IPv6 communications protocols
31options 	TCP_HHOOK		# hhook(9) framework for TCP
32options 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
33options 	ROUTE_MPATH		# Multipath routing support
34options 	TCP_OFFLOAD		# TCP offload
35options 	TCP_BLACKBOX		# Enhanced TCP event logging
36options 	TCP_RFC7413		# TCP Fast Open
37options 	SCTP_SUPPORT		# Allow kldload of SCTP
38options 	FFS			# Berkeley Fast Filesystem
39options 	SOFTUPDATES		# Enable FFS soft updates support
40options 	UFS_ACL			# Support for access control lists
41options 	UFS_DIRHASH		# Improve performance on big directories
42options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
43options 	QUOTA			# Enable disk quotas for UFS
44options 	NFSCL			# Network Filesystem Client
45options 	NFSD			# Network Filesystem Server
46options 	NFSLOCKD		# Network Lock Manager
47options 	NFS_ROOT		# NFS usable as /, requires NFSCL
48options 	MSDOSFS			# MSDOS Filesystem
49options 	CD9660			# ISO 9660 Filesystem
50options 	PROCFS			# Process filesystem (requires PSEUDOFS)
51options 	PSEUDOFS		# Pseudo-filesystem framework
52options 	TMPFS			# Efficient memory filesystem
53options 	GEOM_RAID		# Soft RAID functionality.
54options 	GEOM_LABEL		# Provides labelization
55options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
56options 	COMPAT_FREEBSD13	# Compatible with FreeBSD13
57options 	COMPAT_FREEBSD14	# Compatible with FreeBSD14
58options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
59options 	KTRACE			# ktrace(1) support
60options 	STACK			# stack(9) support
61options 	SYSVSHM			# SYSV-style shared memory
62options 	SYSVMSG			# SYSV-style message queues
63options 	SYSVSEM			# SYSV-style semaphores
64options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
65options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
66options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
67# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
68options 	AUDIT			# Security event auditing
69options 	CAPABILITY_MODE		# Capsicum capability mode
70options 	CAPABILITIES		# Capsicum capabilities
71options 	MAC			# TrustedBSD MAC Framework
72options 	KDTRACE_FRAME		# Ensure frames are compiled in
73options 	KDTRACE_HOOKS		# Kernel DTrace hooks
74options 	DDB_CTF			# Kernel ELF linker loads CTF data
75options 	RACCT			# Resource accounting framework
76options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
77options 	RCTL			# Resource limits
78options 	SMP
79
80# RISC-V SBI console
81device		rcons
82
83# pseudo devices
84device		clk
85device		hwreset
86device		phy
87device		regulator
88device		syscon
89device		syscon_power
90device		riscv_syscon
91
92# Bus drivers
93device		pci
94
95# Block devices
96device		ahci
97device		scbus
98device		da
99
100# VirtIO support
101device		virtio			# Generic VirtIO bus (required)
102device		virtio_pci		# VirtIO PCI device
103device		vtnet			# VirtIO Ethernet device
104device		virtio_blk		# VirtIO Block device
105device		virtio_mmio		# VirtIO MMIO bus
106
107# ATA/SCSI peripherals
108device		pass			# Passthrough device (direct ATA/SCSI access)
109
110# NVM Express (NVMe) support
111device		nvme		# base NVMe driver
112options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
113device		nvd		# expose NVMe namespaces as disks, depends on nvme
114
115# USB support
116options 	USB_DEBUG		# enable debug msgs
117device		ohci			# OHCI USB interface
118device		uhci			# UHCI USB interface
119device		ehci			# EHCI USB interface (USB 2.0)
120device		xhci			# XHCI USB interface (USB 3.0)
121device		usb			# USB Bus (required)
122device		usbhid			# USB HID Transport
123device		hkbd			# Keyboard
124device		ukbd			# Keyboard
125device		umass			# Disks/Mass storage - Requires scbus and da
126
127# HID support
128options 	HID_DEBUG	# enable debug msgs
129device		hid		# Generic HID support
130device		hidbus		# Generic HID Bus
131
132# Serial (COM) ports
133device		uart		# Generic UART driver
134device		uart_lowrisc	# lowRISC UART driver
135device		uart_ns8250	# ns8250-type UART driver
136
137# Console
138device		vt
139device		kbdmux
140
141# RTC
142device		goldfish_rtc	# QEMU RTC
143
144# Ethernet drivers
145device		miibus		# MII bus support
146device		xae		# Xilinx AXI Ethernet MAC
147
148# DMA support
149device		xdma		# DMA interface
150device		axidma		# Xilinx AXI DMA Controller
151
152# GPIO
153device		gpio
154
155# SPI
156device		spibus
157device		spigen
158
159# Debugging support.  Always need this:
160options 	KDB			# Enable kernel debugger support.
161options 	KDB_TRACE		# Print a stack trace for a panic.
162# For full debugger support use (turn off in stable branch):
163include "std.debug"
164# options 	EARLY_PRINTF=sbi
165
166# Kernel dump features.
167options 	EKCD			# Support for encrypted kernel dumps
168options 	GZIO			# gzip-compressed kernel and user dumps
169options 	ZSTDIO			# zstd-compressed kernel and user dumps
170options 	DEBUGNET		# debugnet networking
171options 	NETDUMP			# netdump(4) client support
172
173# Pseudo devices.
174device		crypto		# core crypto support
175device		loop		# Network loopback
176device		ether		# Ethernet support
177device		vlan		# 802.1Q VLAN support
178device		tuntap		# Packet tunnel.
179device		md		# Memory "disks"
180device		gif		# IPv6 and IPv4 tunneling
181device		firmware	# firmware assist module
182
183# MMC/SD/SDIO Card slot support
184device		sdhci
185device		mmc			# MMC/SD bus
186device		mmcsd			# MMC/SD flash cards
187
188# The `bpf' device enables the Berkeley Packet Filter.
189# Be aware of the administrative consequences of enabling this!
190# Note that 'bpf' is required for DHCP.
191device		bpf		# Berkeley packet filter
192
193# Flattened Device Tree
194options 	FDT
195
196# I2C support
197device		iicbus		# Bus support, required for iicoc below.
198device		iicoc		# OpenCores I2C controller support
199
200# Include SoC specific configuration
201include		"std.allwinner"
202include		"std.sifive"
203include		"std.starfive"
204