PCI_SLOTMAX
(((slot) & PCI_SLOTMAX) << PCI_RID_SLOT_SHIFT) | \
#define PCI_RID2SLOT(rid) (((rid) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
#define PCIE_ARI_SLOT(func) (((func) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
for (uint8_t slot = 0; slot <= PCI_SLOTMAX; ++slot) {
cfgslot = (x >> 11) & PCI_SLOTMAX;
#define MAXSLOTS (PCI_SLOTMAX + 1)