diff options
author | Michael Brown | 2015-05-08 15:54:12 +0200 |
---|---|---|
committer | Michael Brown | 2015-05-08 15:57:12 +0200 |
commit | b88ab14ba38d0eb2123975ed78c8eb04ba13cf72 (patch) | |
tree | 8f11b8d05ccd29484a46263db66a1d493ce5fc10 /src/drivers/usb | |
parent | [usb] Include setup packet within I/O buffer for message transfers (diff) | |
download | ipxe-b88ab14ba38d0eb2123975ed78c8eb04ba13cf72.tar.gz ipxe-b88ab14ba38d0eb2123975ed78c8eb04ba13cf72.tar.xz ipxe-b88ab14ba38d0eb2123975ed78c8eb04ba13cf72.zip |
[pci] Provide PCI_CLASS() to calculate a scalar PCI class value
Rename PCI_CLASS() (which constructs a struct pci_class_id) to
PCI_CLASS_ID(), and provide PCI_CLASS() as a macro which constructs
the 24-bit scalar value of a PCI class code.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/usb')
-rw-r--r-- | src/drivers/usb/ehci.c | 4 | ||||
-rw-r--r-- | src/drivers/usb/xhci.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/usb/ehci.c b/src/drivers/usb/ehci.c index e33b0e19..653e72c1 100644 --- a/src/drivers/usb/ehci.c +++ b/src/drivers/usb/ehci.c @@ -1877,8 +1877,8 @@ static struct pci_device_id ehci_ids[] = { struct pci_driver ehci_driver __pci_driver = { .ids = ehci_ids, .id_count = ( sizeof ( ehci_ids ) / sizeof ( ehci_ids[0] ) ), - .class = PCI_CLASS ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, - PCI_CLASS_SERIAL_USB_EHCI ), + .class = PCI_CLASS_ID ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, + PCI_CLASS_SERIAL_USB_EHCI ), .probe = ehci_probe, .remove = ehci_remove, }; diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c index 831e8e6e..307a9912 100644 --- a/src/drivers/usb/xhci.c +++ b/src/drivers/usb/xhci.c @@ -3280,8 +3280,8 @@ static struct pci_device_id xhci_ids[] = { struct pci_driver xhci_driver __pci_driver = { .ids = xhci_ids, .id_count = ( sizeof ( xhci_ids ) / sizeof ( xhci_ids[0] ) ), - .class = PCI_CLASS ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, - PCI_CLASS_SERIAL_USB_XHCI ), + .class = PCI_CLASS_ID ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, + PCI_CLASS_SERIAL_USB_XHCI ), .probe = xhci_probe, .remove = xhci_remove, }; |