PCI_RID2BUS
return (pci_cfgregread(softc->pci_seg, PCI_RID2BUS(softc->pci_rid),
dev = pci_find_bsf(PCI_RID2BUS(devid), PCI_RID2SLOT(devid),
#define RID2PCI_STR(d) PCI_RID2BUS(d), PCI_RID2SLOT(d), PCI_RID2FUNC(d)
PCI_RID2BUS(ivhd->Header.DeviceId),
if (PCI_RID2BUS(rid) != device_scope->Bus)
bus = PCI_RID2BUS(rid);
bus = PCI_RID2BUS(rid);
if (pci_get_bus(dev) != PCI_RID2BUS(last_rid)) {
uint16_t vf_bus = PCI_RID2BUS(last_rid);
*bus = PCI_RID2BUS(rid);
*bus = PCI_RID2BUS(rid);
PCI_RID2BUS(ctx->context.rid))) {
bus = PCI_RID2BUS(rid);
ctxp = iommu_map_pgtbl(dmar->ctx_obj, 1 + PCI_RID2BUS(ctx->context.rid),
bus = PCI_RID2BUS(rid);
dmar_ensure_ctx_page(dmar, PCI_RID2BUS(rid));
bus = PCI_RID2BUS(sid);