From 0cbd87c2c426c7fd8a27f4d0dc8bd878d488dac0 Mon Sep 17 00:00:00 2001 From: Jason Thorpe Date: Wed, 2 Jun 2021 20:53:13 -0700 Subject: Make some PCI macros available to other files. NFC. Move PCI_DEVFN(), PCI_BUS(), PCI_SLOT(), and PCI_FUNC() to pci.h. Signed-off-by: Jason Thorpe Message-Id: <20210603035317.6814-5-thorpej@me.com> Signed-off-by: Richard Henderson --- pci.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pci.c') diff --git a/pci.c b/pci.c index 87a101c..ba05adb 100644 --- a/pci.c +++ b/pci.c @@ -31,10 +31,6 @@ #include "pci_regs.h" -#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) -#define PCI_BUS(devfn) ((devfn) >> 8) -#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) -#define PCI_FUNC(devfn) ((devfn) & 0x07) #define PCI_SLOT_MAX 32 #define PCI_FUNC_MAX 8 #define PCI_REGION_ROM 6 -- cgit v1.1