xref: /freebsd-14.2/sys/riscv/conf/GENERIC (revision 8e908fab)
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 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
58options 	KTRACE			# ktrace(1) support
59options 	STACK			# stack(9) support
60options 	SYSVSHM			# SYSV-style shared memory
61options 	SYSVMSG			# SYSV-style message queues
62options 	SYSVSEM			# SYSV-style semaphores
63options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
64options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
65options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
66# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
67options 	AUDIT			# Security event auditing
68options 	CAPABILITY_MODE		# Capsicum capability mode
69options 	CAPABILITIES		# Capsicum capabilities
70options 	MAC			# TrustedBSD MAC Framework
71options 	KDTRACE_FRAME		# Ensure frames are compiled in
72options 	KDTRACE_HOOKS		# Kernel DTrace hooks
73options 	DDB_CTF			# Kernel ELF linker loads CTF data
74options 	RACCT			# Resource accounting framework
75options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
76options 	RCTL			# Resource limits
77options 	SMP
78
79# RISC-V SBI console
80device		rcons
81
82# pseudo devices
83device		clk
84device		hwreset
85device		syscon
86device		syscon_power
87device		riscv_syscon
88
89# Bus drivers
90device		pci
91
92# Block devices
93device		scbus
94device		da
95
96# VirtIO support
97device		virtio			# Generic VirtIO bus (required)
98device		virtio_pci		# VirtIO PCI device
99device		vtnet			# VirtIO Ethernet device
100device		virtio_blk		# VirtIO Block device
101device		virtio_mmio		# VirtIO MMIO bus
102
103# ATA/SCSI peripherals
104device		pass			# Passthrough device (direct ATA/SCSI access)
105
106# NVM Express (NVMe) support
107device		nvme		# base NVMe driver
108options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
109device		nvd		# expose NVMe namespaces as disks, depends on nvme
110
111# USB support
112options 	USB_DEBUG		# enable debug msgs
113device		ohci			# OHCI USB interface
114device		uhci			# UHCI USB interface
115device		ehci			# EHCI USB interface (USB 2.0)
116device		xhci			# XHCI USB interface (USB 3.0)
117device		usb			# USB Bus (required)
118device		usbhid			# USB HID Transport
119device		hkbd			# Keyboard
120device		ukbd			# Keyboard
121device		umass			# Disks/Mass storage - Requires scbus and da
122
123# HID support
124options 	HID_DEBUG	# enable debug msgs
125device		hid		# Generic HID support
126device		hidbus		# Generic HID Bus
127
128# DTrace support
129# device	dtrace
130# device	dtrace_profile
131# device	dtrace_sdt
132# device	dtrace_fbt
133# device	dtrace_systrace
134# device	dtrace_prototype
135# device	dtraceall
136
137# Serial (COM) ports
138device		uart		# Generic UART driver
139device		uart_lowrisc	# lowRISC UART driver
140device		uart_ns8250	# ns8250-type UART driver
141
142# Console
143device		vt
144device		kbdmux
145
146# RTC
147device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
148device		goldfish_rtc	# QEMU RTC
149
150# Ethernet drivers
151device		cgem		# Cadence GEM Gigabit Ethernet device
152device		miibus		# MII bus support
153device		xae		# Xilinx AXI Ethernet MAC
154
155# DMA support
156device		xdma		# DMA interface
157device		axidma		# Xilinx AXI DMA Controller
158
159# GPIO
160device		gpio
161
162# SPI
163device		spibus
164device		spigen
165
166# Power management controllers
167device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
168
169# Uncomment for memory disk
170# options 	MD_ROOT
171# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
172# makeoptions	MFS_IMAGE=/path/to/img
173# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
174
175# Uncomment for virtio block device
176# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
177
178# Debugging support.  Always need this:
179options 	KDB			# Enable kernel debugger support.
180options 	KDB_TRACE		# Print a stack trace for a panic.
181
182# Kernel dump features.
183options 	ZSTDIO			# zstd-compressed kernel and user dumps
184
185# Pseudo devices.
186device		crypto		# core crypto support
187device		loop		# Network loopback
188device		ether		# Ethernet support
189device		vlan		# 802.1Q VLAN support
190device		tuntap		# Packet tunnel.
191device		md		# Memory "disks"
192device		gif		# IPv6 and IPv4 tunneling
193device		firmware	# firmware assist module
194
195# The `bpf' device enables the Berkeley Packet Filter.
196# Be aware of the administrative consequences of enabling this!
197# Note that 'bpf' is required for DHCP.
198device		bpf		# Berkeley packet filter
199
200# Flattened Device Tree
201options 	FDT
202makeoptions	MODULES_EXTRA+="dtb/sifive"
203
204# I2C support
205device		iicbus		# Bus support, required for iicoc below.
206device		iicoc		# OpenCores I2C controller support
207
208# Allwinner device drivers
209device		aw_wdog		# Allwinner Watchdog
210files		"../allwinner/files.allwinner"
211
212# SiFive device drivers
213device		fu740_pci_dw
214device		sifive_gpio
215device		sifive_spi
216include		"../sifive/std.sifive"
217