summaryrefslogtreecommitdiff
path: root/src/include/device/pci_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/pci_type.h')
-rw-r--r--src/include/device/pci_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/device/pci_type.h b/src/include/device/pci_type.h
index 27d35589cc..4d8c2a3d08 100644
--- a/src/include/device/pci_type.h
+++ b/src/include/device/pci_type.h
@@ -18,6 +18,10 @@
typedef u32 pci_devfn_t;
+/* Convert pci_devfn_t to offset in MMCONF space.
+ * As it is one-to-one, nothing needs to be done. */
+#define PCI_DEVFN_OFFSET(x) ((x))
+
#define PCI_DEV(SEGBUS, DEV, FN) ( \
(((SEGBUS) & 0xFFF) << 20) | \
(((DEV) & 0x1F) << 15) | \