xref: /openbsd/sys/arch/riscv64/conf/GENERIC (revision 009ac988)
1#	$OpenBSD: GENERIC,v 1.47 2023/09/23 18:29:55 kettenis Exp $
2#
3# For further information on compiling OpenBSD kernels, see the config(8)
4# man page.
5#
6# For further information on hardware support for this architecture, see
7# the intro(4) man page.  For further information about kernel options
8# for this architecture, see the options(4) man page.  For an explanation
9# of each device driver in this file see the section 4 man page for the
10# device.
11
12machine		riscv64
13include		"../../../conf/GENERIC"
14maxusers	80
15
16option		PCIVERBOSE
17option		USER_PCICONF
18
19makeoptions	KERNEL_BASE_PHYS="0x00200000"
20makeoptions	KERNEL_BASE_VIRT="0xffffffc000200000"
21#option		DEBUG
22#option		DEBUG_AUTOCONF
23#option		DEBUG_INTC
24#option		DEBUG_TIMER
25
26option		WSDISPLAY_COMPAT_USL
27option		WSDISPLAY_COMPAT_RAWKBD
28option		WSDISPLAY_DEFAULTSCREENS=6
29
30
31config	bsd	swap generic
32
33#
34# Definition of system
35#
36
37# mainbus
38mainbus0	at root
39
40# cpu0
41cpu0		at mainbus0
42intc0		at cpu0
43
44# NS16550 compatible serial ports
45com*		at fdt?
46
47# PolarFire SoCs
48cdsdhc*		at fdt?
49sdmmc*		at cdsdhc?
50mpfclock*	at fdt? early 1
51mpfgpio*	at fdt?
52gpio*		at mpfgpio?
53mpfiic*		at fdt?
54iic*		at mpfiic?
55
56# SiFive SoCs
57sfclock*	at fdt? early 1 # PRCI
58sfcc*		at fdt? early 1	# L2 Cache Controller
59sfgpio*		at fdt?
60sfuart*		at fdt?
61
62# StarFive SoCs
63stfclock*	at fdt? early 1
64stfpcie*	at fdt?
65pci*		at stfpcie?
66stfpciephy*	at fdt? early 1
67stfpinctrl*	at fdt? early 1
68stfrng*		at fdt?
69stftemp*	at fdt?
70
71virtio*		at fdt?
72virtio*		at pci?
73vio*		at virtio?	# Network
74vioblk*		at virtio?
75vioscsi*	at virtio?	# Disk (SCSI)
76#viomb*		at virtio?	# Memory Ballooning
77viornd*		at virtio?	# Random Source
78
79# simplebus0
80simplebus*	at fdt?
81# Platform Level Interrupt Controller
82plic*		at fdt? early 1
83
84syscon*		at fdt? early 1
85gfrtc*		at fdt?
86gpiorestart*	at fdt?
87
88cad*		at fdt?
89dwge*		at fdt?
90dwqe*		at fdt?
91dwiic*		at fdt?
92iic*		at dwiic?
93dwmmc*		at fdt?
94sdmmc*		at dwmmc?
95
96dwpcie*		at fdt?
97pci*		at dwpcie?
98pciecam*	at fdt?
99pci*		at pciecam?
100
101ociic*		at fdt?
102iic*		at ociic?
103dapmic*		at iic?
104titmp*		at iic?
105
106xhci*		at fdt?
107
108# PCI
109ppb*		at pci?		# PCI-PCI bridges
110pci*		at ppb?
111
112# DRM devices
113radeondrm*	at pci?
114drm*		at radeondrm?
115wsdisplay*	at radeondrm?
116
117# PCI Ethernet
118em*		at pci?		# Intel Pro/1000 Ethernet
119bge*		at pci?		# Broadcom BCM57xx (aka Tigon3)
120oce*		at pci?		# Emulex OneConnect 10Gb ethernet
121aq*		at pci?		# Aquantia aQtion Ethernet
122ix*		at pci?		# Intel 82598EB 10Gb ethernet
123ixl*		at pci?		# Intel Ethernet 700 Series
124igc*		at pci?		# Intel I225 Ethernet
125
126# Wireless network cards
127iwm*		at pci?		# Intel WiFi Link 7xxx
128
129nvme*		at pci?		# NVMe controllers
130ahci*		at pci?		# AHCI SATA controllers
131
132scsibus*	at scsi?
133sd*		at scsibus?
134cd*		at scsibus?
135ch*		at scsibus?
136uk*		at scsibus?
137
138# USB Controllers
139xhci*		at pci?
140
141# USB bus support
142usb*		at xhci?
143
144# USB devices
145uhub*		at usb?			# USB Hubs
146uhub*		at uhub?		# USB Hubs
147urng*		at uhub?		# USB Random Number Generator
148uonerng*	at uhub?		# Moonbase Otago OneRNG
149umodem*		at uhub?		# USB Modems/Serial
150ucom*		at umodem?
151uvisor*		at uhub?		# Handspring Visor
152ucom*		at uvisor?
153uvscom*		at uhub?		# SUNTAC Slipper U VS-10U serial
154ucom*		at uvscom?
155ubsa*		at uhub?		# Belkin serial adapter
156ucom*		at ubsa?
157uftdi*		at uhub?		# FTDI FT8U100AX serial adapter
158ucom*		at uftdi?
159uplcom*		at uhub?		# I/O DATA USB-RSAQ2 serial adapter
160ucom*		at uplcom?
161umct*		at uhub?		# MCT USB-RS232 serial adapter
162ucom*		at umct?
163uslcom*		at uhub?		# Silicon Laboratories CP210x serial
164ucom*		at uslcom?
165uscom*		at uhub?		# Simple USB serial adapters
166ucom*		at uscom?
167ucrcom*		at uhub?		# Chromebook serial
168ucom*		at ucrcom?
169uark*		at uhub?		# Arkmicro ARK3116 serial
170ucom*		at uark?
171moscom*		at uhub?		# MosChip MCS7703 serial
172ucom*		at moscom?
173umcs*		at uhub?		# MosChip MCS78x0 serial
174ucom*		at umcs?
175uipaq*		at uhub?		# iPAQ serial adapter
176ucom*		at uipaq?
177umsm*		at uhub?		# Qualcomm MSM EVDO
178ucom*		at umsm?
179uchcom*		at uhub?		# WinChipHead CH341/340 serial
180ucom*		at uchcom?
181uticom*		at uhub?		# TI serial
182ucom*		at uticom?
183uxrcom*		at uhub?		# Exar XR21V1410 serial
184ucom*		at uxrcom?
185uaudio*		at uhub?		# USB Audio
186audio*		at uaudio?
187umidi*		at uhub?		# USB MIDI
188midi*		at umidi?
189ulpt*		at uhub?		# USB Printers
190umass*		at uhub?		# USB Mass Storage devices
191uhidev*		at uhub?		# Human Interface Devices
192ums*		at uhidev?		# USB mouse
193wsmouse*	at ums? mux 0
194umt*		at uhidev?		# USB multitouch touchpad
195wsmouse*	at umt? mux 0
196uts*		at uhub?		# USB touchscreen
197wsmouse*	at uts? mux 0
198uwacom*		at uhidev?		# USB Wacom tablet
199wsmouse*	at uwacom? mux 0
200ukbd*		at uhidev?		# USB keyboard
201wskbd*		at ukbd? mux 1
202ucycom*		at uhidev?		# Cypress serial
203ucom*		at ucycom?
204uslhcom*	at uhidev?		# Silicon Labs CP2110 USB HID UART
205ucom*		at uslhcom?
206uhid*		at uhidev?		# USB generic HID support
207fido*		at uhidev?		# FIDO/U2F security key support
208ucc*		at uhidev?		# Consumer Control keyboards
209wskbd*		at ucc? mux 1
210ujoy*		at uhidev?		# USB joystick/gamecontroller support
211uhidpp*		at uhidev?		# Logitech HID++ Devices
212upd*		at uhidev?		# USB Power Devices sensors
213aue*		at uhub?		# ADMtek AN986 Pegasus Ethernet
214atu*		at uhub?		# Atmel AT76c50x based 802.11b
215axe*		at uhub?		# ASIX Electronics AX88172 USB Ethernet
216axen*		at uhub?		# ASIX Electronics AX88179 USB Ethernet
217cue*		at uhub?		# CATC USB-EL1201A based Ethernet
218kue*		at uhub?		# Kawasaki KL5KUSB101B based Ethernet
219smsc*		at uhub?		# SMSC LAN95xx Ethernet
220cdce*		at uhub?		# CDC Ethernet
221urndis*		at uhub?		# Remote NDIS Ethernet
222upl*		at uhub?		# Prolific PL2301/PL2302 host-to-host `network'
223ugl*		at uhub?		# Genesys Logic GL620USB-A host-to-host `network'
224udav*		at uhub?		# Davicom DM9601 based Ethernet
225mos*		at uhub?		# MOSCHIP MCS7730/7830 10/100 Ethernet
226mue*		at uhub?		# Microchip LAN75xx/LAN78xx Ethernet
227url*		at uhub?		# Realtek RTL8150L based adapters
228ure*		at uhub?		# Realtek RTL8152 based adapters
229wi*		at uhub?		# WaveLAN IEEE 802.11DS
230udsbr*		at uhub?		# D-Link DSB-R100 radio
231radio*		at udsbr?		# USB radio
232uberry*		at uhub?		# Research In Motion BlackBerry
233ugen*		at uhub?		# USB Generic driver
234uath*		at uhub?		# Atheros AR5005UG/AR5005UX
235ural*		at uhub?		# Ralink RT2500USB
236rum*		at uhub?		# Ralink RT2501USB/RT2601USB
237run*		at uhub?		# Ralink RT2700U/RT2800U/RT3000U
238mtw*		at uhub?		# MediaTek MT7601U
239otus*		at uhub?		# Atheros AR9001U
240athn*		at uhub?		# Atheros AR9002U
241zyd*		at uhub?		# Zydas ZD1211
242upgt*		at uhub?		# Conexant/Intersil PrismGT SoftMAC USB
243urtw*		at uhub?		# Realtek 8187
244rsu*		at uhub?		# Realtek RTL8188SU/RTL8191SU/RTL8192SU
245urtwn*		at uhub?		# Realtek RTL8188CU/RTL8192CU
246udcf*		at uhub?		# Gude Expert mouseCLOCK
247umb*		at uhub?		# Mobile Broadband Interface Model
248uthum*		at uhidev?		# TEMPerHUM sensor
249ugold*		at uhidev?		# gold TEMPer sensor
250utrh*		at uhidev?		# USBRH sensor
251utwitch*	at uhidev?		# YUREX BBU sensor
252uoakrh*		at uhidev?		# Toradex OAK temp and rel humidity
253uoaklux*	at uhidev?		# Toradex OAK LUX
254uoakv*		at uhidev?		# Toradex OAK 10V sensor
255uvideo*		at uhub?		# USB Video
256video*		at uvideo?
257utvfu*		at uhub?		# Fushicai Audio-Video Grabber
258video*		at utvfu?
259audio*		at utvfu?
260udl*		at uhub?		# DisplayLink USB displays
261wsdisplay*	at udl?
262bwfm*		at uhub?		# Broadcom FullMAC
263
264acphy*		at mii?			# Altima AC101 PHYs
265amphy*		at mii?			# AMD 79C873 PHYs
266atphy*		at mii?			# Attansic F1 PHYs
267bmtphy*		at mii?			# Broadcom 10/100 PHYs
268brgphy*		at mii?			# Broadcom Gigabit PHYs
269eephy*		at mii?			# Marvell 88E1000 series PHY
270rgephy*		at mii?			# Realtek 8169S/8110S PHY
271rlphy*		at mii?			# Realtek 8139 internal PHYs
272sqphy*		at mii?			# Seeq 8x220 PHYs
273ukphy*		at mii?			# "unknown" PHYs
274urlphy*		at mii?			# Realtek RTL8150L internal PHY
275ytphy*		at mii?			# MotorComm YT8511 PHY
276
277# I2C devices
278axppmic*	at iic?			# AXP15060 PMIC
279
280# Pseudo-Devices
281pseudo-device	openprom
282pseudo-device	hotplug		1	# devices hot plugging
283
284# mouse & keyboard multiplexor pseudo-devices
285pseudo-device	wsmux		2
286