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/arch/i386/drivers/net/undi.c | |
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/arch/i386/drivers/net/undi.c')
-rw-r--r-- | src/arch/i386/drivers/net/undi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/drivers/net/undi.c b/src/arch/i386/drivers/net/undi.c index c4a11c57..9820cf62 100644 --- a/src/arch/i386/drivers/net/undi.c +++ b/src/arch/i386/drivers/net/undi.c @@ -140,7 +140,7 @@ static struct pci_device_id undipci_nics[] = { struct pci_driver undipci_driver __pci_driver_fallback = { .ids = undipci_nics, .id_count = ( sizeof ( undipci_nics ) / sizeof ( undipci_nics[0] ) ), - .class = PCI_CLASS ( PCI_CLASS_NETWORK, PCI_ANY_ID, PCI_ANY_ID ), + .class = PCI_CLASS_ID ( PCI_CLASS_NETWORK, PCI_ANY_ID, PCI_ANY_ID ), .probe = undipci_probe, .remove = undipci_remove, }; |