aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.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 /lib/libusb/libusb20.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 'lib/libusb/libusb20.h')
-rw-r--r--lib/libusb/libusb20.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.h b/lib/libusb/libusb20.h
index 87e057262067..81928b143466 100644
--- a/lib/libusb/libusb20.h
+++ b/lib/libusb/libusb20.h
@@ -255,6 +255,7 @@ int libusb20_dev_reset(struct libusb20_device *pdev);
int libusb20_dev_check_connected(struct libusb20_device *pdev);
int libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode);
uint8_t libusb20_dev_get_power_mode(struct libusb20_device *pdev);
+uint16_t libusb20_dev_get_power_usage(struct libusb20_device *pdev);
int libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index);
int libusb20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo);
int libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len);