Hi,

small diff below for what the subject suggests.
Now i'm unsure if arm64 does really ever use the uhci it has on pci*,
but something like this would work for atleast octeon && armv7 i think?

-Artturi

diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 8139db6a4ae..f4462fe71fe 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -40,6 +40,7 @@
 #include "ohci.h"
 #include "uhci.h"
 #include "ehci.h"
+#include "dwctwo.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,6 +71,8 @@
 int    usbdebug = 0;
 #if defined(UHCI_DEBUG) && NUHCI > 0
 extern int     uhcidebug;
+#elif defined(DWC2_DEBUG) && NDWCTWO > 0
+extern int     dwc2debug;
 #endif
 #if defined(OHCI_DEBUG) && NOHCI > 0
 extern int     ohcidebug;
@@ -598,6 +601,8 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, 
struct proc *p)
                usbdebug  = ((*(unsigned int *)data) & 0x000000ff);
 #if defined(UHCI_DEBUG) && NUHCI > 0
                uhcidebug = ((*(unsigned int *)data) & 0x0000ff00) >> 8;
+#elif defined(DWC2_DEBUG) && NDWCTWO > 0
+               dwc2debug = ((*(unsigned int *)data) & 0x0000ff00) >> 8;
 #endif
 #if defined(OHCI_DEBUG) && NOHCI > 0
                ohcidebug = ((*(unsigned int *)data) & 0x00ff0000) >> 16;

Reply via email to