summaryrefslogtreecommitdiffstats
path: root/src/drivers/usb/xhci.c
diff options
context:
space:
mode:
authorMichael Brown2015-05-08 15:54:12 +0200
committerMichael Brown2015-05-08 15:57:12 +0200
commitb88ab14ba38d0eb2123975ed78c8eb04ba13cf72 (patch)
tree8f11b8d05ccd29484a46263db66a1d493ce5fc10 /src/drivers/usb/xhci.c
parent[usb] Include setup packet within I/O buffer for message transfers (diff)
downloadipxe-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/xhci.c')
-rw-r--r--src/drivers/usb/xhci.c4
1 files changed, 2 insertions, 2 deletions
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,
};