summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_port.h
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-01-20 22:24:35 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-01-20 22:24:35 +0000
commitac7818da203e78d3ce5712161676189545230d9b (patch)
tree0ac6312f6de5fa613a895428606b3f6dad59cb21 /sys/dev/usb/usb_port.h
parentc5a17a034f1da1b9574226a95740c0b74196639f (diff)
downloadFreeBSD-src-ac7818da203e78d3ce5712161676189545230d9b.zip
FreeBSD-src-ac7818da203e78d3ce5712161676189545230d9b.tar.gz
Add support for DEVICE_SUSPEND, DEVICE_RESUME and DEVICE_SHUTDOWN
methods for USB devices. However: with none of the devices I have here suspend seems to work properly. This is probably a bug in uhci_power which I still have to look at. Prodded and pushed by: Christopher Masto <chris@netmonger.net>
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r--sys/dev/usb/usb_port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 70b41c9..8ab7c31 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -296,7 +296,7 @@ __CONCAT(dname,_detach)(self, flags) \
#define PWR_SUSPEND 1
#define PWR_RESUME 0
-#define USB_DECLARE_DRIVER_INIT(dname, init) \
+#define USB_DECLARE_DRIVER_INIT(dname, init...) \
static device_probe_t __CONCAT(dname,_match); \
static device_attach_t __CONCAT(dname,_attach); \
static device_detach_t __CONCAT(dname,_detach); \
OpenPOWER on IntegriCloud