summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2015-12-07 01:32:08 +0100
committerMichael Brown2015-12-07 14:08:23 +0100
commitfb8c52de9b50d3562ce08469f23bbd221946519d (patch)
tree08cccbbed849605a6f41fe8b4733f44f1cc0a6ae /src/include
parent[usb] Record USB device speed separately from current port speed (diff)
downloadipxe-fb8c52de9b50d3562ce08469f23bbd221946519d.tar.gz
ipxe-fb8c52de9b50d3562ce08469f23bbd221946519d.tar.xz
ipxe-fb8c52de9b50d3562ce08469f23bbd221946519d.zip
[usb] Allow USB device IDs to include arbitrary driver-specific data
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h
index c268988f4..37b6d94ed 100644
--- a/src/include/ipxe/usb.h
+++ b/src/include/ipxe/usb.h
@@ -662,6 +662,8 @@ struct usb_function {
struct usb_driver *driver;
/** Driver private data */
void *priv;
+ /** Driver device ID */
+ struct usb_device_id *id;
/** List of interface numbers
*
@@ -1308,6 +1310,8 @@ struct usb_device_id {
uint16_t vendor;
/** Product ID */
uint16_t product;
+ /** Arbitrary driver data */
+ unsigned long driver_data;
};
/** Match-anything ID */