mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
[usb] Allow USB device IDs to include arbitrary driver-specific data
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user