mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
Add device description fields to struct device.
This commit is contained in:
@@ -307,9 +307,10 @@ struct pci_driver {
|
||||
/** Declare a PCI driver */
|
||||
#define __pci_driver __table ( struct pci_driver, pci_drivers, 01 )
|
||||
|
||||
#define PCI_DEVFN( slot, func ) ( ( (slot) << 3 ) | (func) )
|
||||
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
|
||||
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
|
||||
#define PCI_DEVFN( slot, func ) ( ( (slot) << 3 ) | (func) )
|
||||
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
|
||||
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
|
||||
#define PCI_BUSDEVFN( bus, devfn ) ( ( (bus) << 8 ) | (devfn) )
|
||||
|
||||
#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user