summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-06-14 03:50:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-06-14 03:50:24 +0000
commitfa9fe7b1451997b2e1a989395a4923053507a61f (patch)
tree7a81c58d1440d399569979973bcb6bbf07154a59
parent3fd0b2b75cf2d5a6ede3b5d462662d5b4f271adf (diff)
Add a few more drivers that people might need.
ok drahn
-rw-r--r--sys/arch/riscv64/conf/GENERIC14
-rw-r--r--sys/arch/riscv64/conf/RAMDISK26
-rw-r--r--sys/arch/riscv64/conf/files.riscv645
3 files changed, 32 insertions, 13 deletions
diff --git a/sys/arch/riscv64/conf/GENERIC b/sys/arch/riscv64/conf/GENERIC
index e184067de03..6dad8f7f0ca 100644
--- a/sys/arch/riscv64/conf/GENERIC
+++ b/sys/arch/riscv64/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.16 2021/06/14 03:04:02 drahn Exp $
+# $OpenBSD: GENERIC,v 1.17 2021/06/14 03:50:23 deraadt Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -60,7 +60,6 @@ gfrtc* at fdt?
cad* at fdt?
dwge* at fdt?
-ukphy* at mii?
dwmmc* at fdt?
sdmmc* at dwmmc?
@@ -76,10 +75,10 @@ pci* at ppb?
# PCI Ethernet
em* at pci? # Intel Pro/1000 Ethernet
+bge* at pci? # Broadcom BCM57xx (aka Tigon3)
-
-# NVME
-nvme* at pci?
+nvme* at pci? # NVMe controllers
+ahci* at pci? # AHCI SATA controllers
scsibus* at scsi?
sd* at scsibus?
@@ -87,10 +86,13 @@ cd* at scsibus?
ch* at scsibus?
uk* at scsibus?
-#USB
+# USB Controllers
xhci* at pci?
+
+# USB bus support
usb* at xhci?
+# USB devices
uhub* at usb?
uhub* at uhub?
#uhidev* at uhub?
diff --git a/sys/arch/riscv64/conf/RAMDISK b/sys/arch/riscv64/conf/RAMDISK
index 8f893c99bef..9636de63941 100644
--- a/sys/arch/riscv64/conf/RAMDISK
+++ b/sys/arch/riscv64/conf/RAMDISK
@@ -1,4 +1,4 @@
-# $OpenBSD: RAMDISK,v 1.17 2021/06/14 03:04:02 drahn Exp $
+# $OpenBSD: RAMDISK,v 1.18 2021/06/14 03:50:23 deraadt Exp $
machine riscv64
maxusers 4
@@ -56,8 +56,6 @@ gfrtc* at fdt?
cad* at fdt?
dwge* at fdt?
-ciphy* at mii?
-ukphy* at mii?
dwmmc* at fdt?
sdmmc* at dwmmc?
@@ -71,8 +69,12 @@ pci* at pciecam?
ppb* at pci? # PCI-PCI bridges
pci* at ppb?
-# NVME
-nvme* at pci?
+# PCI Ethernet
+em* at pci? # Intel Pro/1000 Ethernet
+bge* at pci? # Broadcom BCM57xx (aka Tigon3)
+
+nvme* at pci? # NVMe controllers
+ahci* at pci? # AHCI SATA controllers
scsibus* at scsi?
sd* at scsibus?
@@ -80,10 +82,13 @@ cd* at scsibus?
ch* at scsibus?
uk* at scsibus?
-#USB
+# USB Controllers
xhci* at pci?
+
+# USB bus support
usb* at xhci?
+# USB devices
uhub* at usb?
uhub* at uhub?
#uhidev* at uhub?
@@ -119,6 +124,15 @@ otus* at uhub? # Atheros AR9001U
athn* at uhub? # Atheros AR9002U
bwfm* at uhub? # Broadcom FullMAC
+amphy* at mii? # AMD 79C873 PHYs
+atphy* at mii? # Attansic F1 PHYs
+brgphy* at mii? # Broadcom Gigabit PHYs
+eephy* at mii? # Marvell 88E1000 series PHY
+rgephy* at mii? # Realtek 8169S/8110S PHY
+rlphy* at mii? # Realtek 8139 internal PHYs
+ukphy* at mii? # "unknown" PHYs
+urlphy* at mii? # Realtek RTL8150L internal PHY
+
pseudo-device loop 1
pseudo-device vlan
pseudo-device trunk
diff --git a/sys/arch/riscv64/conf/files.riscv64 b/sys/arch/riscv64/conf/files.riscv64
index 30f8ccd322e..2060f1a8def 100644
--- a/sys/arch/riscv64/conf/files.riscv64
+++ b/sys/arch/riscv64/conf/files.riscv64
@@ -1,4 +1,4 @@
-# $OpenBSD: files.riscv64,v 1.12 2021/06/14 03:04:02 drahn Exp $
+# $OpenBSD: files.riscv64,v 1.13 2021/06/14 03:50:23 deraadt Exp $
# Standard stanzas config(8) can't run without
maxpartitions 16
@@ -122,6 +122,9 @@ include "dev/fdt/files.fdt"
# Machine-independent SCSI drivers
include "scsi/files.scsi"
+# Machine-independent ATA drivers
+include "dev/ata/files.ata"
+
device pciecam: pcibus
attach pciecam at fdt
file dev/fdt/pciecam.c pciecam