aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_ioctl.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2013-02-14 12:22:40 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2013-02-14 12:22:40 +0000
commitaafcb7320759529843b0d0efa3c6a918aa1aaa50 (patch)
treea0b0c710f98a991d5594c3cd1efed27bd508c825 /sys/dev/usb/usb_ioctl.h
parent0af99eef9e4d3c463ece2da2342499cd5b55b8ab (diff)
downloadsrc-aafcb7320759529843b0d0efa3c6a918aa1aaa50.tar.gz
src-aafcb7320759529843b0d0efa3c6a918aa1aaa50.zip
Add USB API to read power draw on USB devices.
Update usbconfig to print power draw on USB devices. MFC after: 2 weeks Submitted by: Matt Burke @ icritical.com
Notes
Notes: svn path=/head/; revision=246789
Diffstat (limited to 'sys/dev/usb/usb_ioctl.h')
-rw-r--r--sys/dev/usb/usb_ioctl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_ioctl.h b/sys/dev/usb/usb_ioctl.h
index 1d9b2230d059..979240f05734 100644
--- a/sys/dev/usb/usb_ioctl.h
+++ b/sys/dev/usb/usb_ioctl.h
@@ -277,7 +277,8 @@ struct usb_gen_quirk {
#define USB_IFACE_DRIVER_DETACH _IOW ('U', 125, int)
#define USB_GET_PLUGTIME _IOR ('U', 126, uint32_t)
#define USB_READ_DIR _IOW ('U', 127, struct usb_read_dir)
-/* 128 - 135 unused */
+/* 128 - 134 unused */
+#define USB_GET_POWER_USAGE _IOR ('U', 135, int)
#define USB_SET_TX_FORCE_SHORT _IOW ('U', 136, int)
#define USB_SET_TX_TIMEOUT _IOW ('U', 137, int)
#define USB_GET_TX_FRAME_SIZE _IOR ('U', 138, int)