int base = priv->link_base;
if (priv->config == PIRQ_VIA_PCI)
- pirq = x86_pci_read_config8(priv->bdf, LINK_N2V(link, base));
+ dm_pci_read_config8(dev->parent, LINK_N2V(link, base), &pirq);
else
pirq = readb(priv->ibase + LINK_N2V(link, base));
return;
if (priv->config == PIRQ_VIA_PCI)
- x86_pci_write_config8(priv->bdf, LINK_N2V(link, base), irq);
+ dm_pci_write_config8(dev->parent, LINK_N2V(link, base), irq);
else
writeb(irq, priv->ibase + LINK_N2V(link, base));
}
* 2) memory range decoding is enabled.
* Hence we don't do any santify test here.
*/
- priv->ibase = x86_pci_read_config32(priv->bdf, ibase_off);
+ dm_pci_read_config32(dev->parent, ibase_off, &priv->ibase);
priv->ibase &= ~0xf;
}
struct tnc_rcba *rcba;
u32 base;
- base = x86_pci_read_config32(TNC_LPC, LPC_RCBA);
+ dm_pci_read_config32(dev->parent, LPC_RCBA, &base);
base &= ~MEM_BAR_EN;
rcba = (struct tnc_rcba *)base;