summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-09-15 22:35:58 +0000
committerjoe <joe@FreeBSD.org>2002-09-15 22:35:58 +0000
commit4571d5bc4cd1fbf88217bbf7f736c24ae1232a5f (patch)
treed7e217785611ae1cf99a504f2b62ba6535b2042f /sys
parent139e8aac2e1589ae5a59fe75ef9fe42b334232e8 (diff)
downloadFreeBSD-src-4571d5bc4cd1fbf88217bbf7f736c24ae1232a5f.zip
FreeBSD-src-4571d5bc4cd1fbf88217bbf7f736c24ae1232a5f.tar.gz
Deprecate the USB_SETDEBUG IOCTL as debug levels can now be set
using sysctl.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 73dde62..21127d6 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -103,12 +103,6 @@ SYSCTL_NODE(_hw, OID_AUTO, usb, CTLFLAG_RW, 0, "USB debugging");
int usbdebug = 0;
SYSCTL_INT(_hw_usb, OID_AUTO, debug, CTLFLAG_RW,
&usbdebug, 0, "usb debug level");
-#ifdef USB_DEBUG
-extern int uhcidebug;
-#endif
-#ifdef USB_DEBUG
-extern int ohcidebug;
-#endif
/*
* 0 - do usual exploration
* 1 - do not use timeout exploration
@@ -573,13 +567,6 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
case USB_DISCOVER:
break;
#endif
-#ifdef USB_DEBUG
- case USB_SETDEBUG:
- usbdebug = ((*(int *)data) & 0x000000ff);
- uhcidebug = ((*(int *)data) & 0x0000ff00) >> 8;
- ohcidebug = ((*(int *)data) & 0x00ff0000) >> 16;
- break;
-#endif /* USB_DEBUG */
case USB_REQUEST:
{
struct usb_ctl_request *ur = (void *)data;
OpenPOWER on IntegriCloud