mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +03:00
[usb] Allow for wildcard USB class IDs
Make the class ID a property of the USB driver (rather than a property of the USB device ID), and allow USB drivers to specify a wildcard ID for any of the three component IDs (class, subclass, or protocol). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1038,13 +1038,11 @@ static struct usb_device_id smsc75xx_ids[] = {
|
||||
.name = "smsc7500",
|
||||
.vendor = 0x0424,
|
||||
.product = 0x7500,
|
||||
.class = { 0xff, 0x00, 0xff },
|
||||
},
|
||||
{
|
||||
.name = "smsc7505",
|
||||
.vendor = 0x0424,
|
||||
.product = 0x7505,
|
||||
.class = { 0xff, 0x00, 0xff },
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1052,6 +1050,7 @@ static struct usb_device_id smsc75xx_ids[] = {
|
||||
struct usb_driver smsc75xx_driver __usb_driver = {
|
||||
.ids = smsc75xx_ids,
|
||||
.id_count = ( sizeof ( smsc75xx_ids ) / sizeof ( smsc75xx_ids[0] ) ),
|
||||
.class = USB_CLASS_ID ( 0xff, 0x00, 0xff ),
|
||||
.score = USB_SCORE_NORMAL,
|
||||
.probe = smsc75xx_probe,
|
||||
.remove = smsc75xx_remove,
|
||||
|
||||
Reference in New Issue
Block a user