diff options
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/pci_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/device/pci_type.h b/src/include/device/pci_type.h index 2849ececa7..0b08e8d0aa 100644 --- a/src/include/device/pci_type.h +++ b/src/include/device/pci_type.h @@ -19,4 +19,11 @@ typedef u32 pci_devfn_t; typedef u32 pnp_devfn_t; +#define PCI_DEV(SEGBUS, DEV, FN) ( \ + (((SEGBUS) & 0xFFF) << 20) | \ + (((DEV) & 0x1F) << 15) | \ + (((FN) & 0x07) << 12)) + +#define PCI_DEV_INVALID (0xffffffffU) + #endif /* DEVICE_PCI_TYPE_H */ |