[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
@@ -895,11 +895,7 @@ static void usbblk_remove ( struct usb_function *func ) {
/** Mass storage class device IDs */
static struct usb_device_id usbblk_ids[] = {
{
.name = "usbblk",
.vendor = USB_ANY_ID,
.product = USB_ANY_ID,
},
USB_ID ( 0xffff, 0xffff, "usbblk", "USB block device", 0 ),
};
/** Mass storage driver */