Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: device/usb/usb_descriptors.h

Issue 1568673002: Parse USB interface association descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary default/delete. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/usb/usb_descriptors.cc » ('j') | device/usb/usb_descriptors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_descriptors.h
diff --git a/device/usb/usb_descriptors.h b/device/usb/usb_descriptors.h
index c99a6def7bf9e3e37c1849517e572bc692a895fe..a1414154ff757eea25b14b20b967a2b3ded761d3 100644
--- a/device/usb/usb_descriptors.h
+++ b/device/usb/usb_descriptors.h
@@ -85,6 +85,8 @@ struct UsbInterfaceDescriptor {
uint8_t interface_protocol;
std::vector<UsbEndpointDescriptor> endpoints;
std::vector<uint8_t> extra_data;
+ // First interface of the function to which this interface belongs.
+ uint8_t first_interface;
};
struct UsbConfigDescriptor {
@@ -95,6 +97,10 @@ struct UsbConfigDescriptor {
UsbConfigDescriptor() = delete;
~UsbConfigDescriptor();
+ // Scans through |extra_data| for interface association descriptors and
+ // populates |first_interface| for each interface in this configuration.
+ void AssignFirstInterfaceNumbers();
+
uint8_t configuration_value;
bool self_powered;
bool remote_wakeup;
« no previous file with comments | « no previous file | device/usb/usb_descriptors.cc » ('j') | device/usb/usb_descriptors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698