[usb] Add USB_ROM() and USB_ID() macros

Add USB_ROM() and USB_ID() macros following the pattern for PCI_ROM()
and PCI_ID(), to allow for the possibility of including USB network
devices within the "all-drivers" build of iPXE.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-02-11 15:19:13 +00:00
parent 481e043116
commit 4d6c8ab443
14 changed files with 66 additions and 266 deletions
+1 -5
View File
@@ -1349,11 +1349,7 @@ static void efi_usb_remove ( struct usb_function *func ) {
/** USB I/O protocol device IDs */
static struct usb_device_id efi_usb_ids[] = {
{
.name = "usbio",
.vendor = USB_ANY_ID,
.product = USB_ANY_ID,
},
USB_ID ( 0xffff, 0xffff, "usbio", "USB passthrough", 0 ),
};
/** USB I/O protocol driver */