PCIE_CAP_GET
linkcap = PCIE_CAP_GET(32, bus_p, PCIE_LINKCAP);
linkctl = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL);
reg16 = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL);
vers = PCIE_CAP_GET(16, bus_p, PCIE_PCIECAP);
cap2 = PCIE_CAP_GET(32, bus_p, PCIE_LINKCAP2);
ctl2 = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL2);
status = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS);
cap = PCIE_CAP_GET(32, bus_p, PCIE_LINKCAP);
if ((reg16 = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL)) !=
(reg16 = PCIE_CAP_GET(16, bus_p, PCIE_ROOTCTL)) !=
if ((device_sts = PCIE_CAP_GET(16, bus_p, PCIE_DEVSTS)) !=
device_ctl = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL);
device_ctl = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL);
device_ctl = PCIE_CAP_GET(16, bus_p, PCIE_ROOTCTL);
if ((device_ctl = PCIE_CAP_GET(16, bus_p, PCIE_AER_RE_CMD)) !=
if (PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL) &
pciecap = PCIE_CAP_GET(16, bus_p, PCIE_PCIECAP);
devcap2 = PCIE_CAP_GET(32, bus_p, PCIE_DEVCAP2);
devctl2 = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL2);
devctl2 = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL2);
devctl2 = PCIE_CAP_GET(32, bus_p, PCIE_DEVCTL2);
linkcap = PCIE_CAP_GET(32, bus_p, PCIE_LINKCAP);
linkctl = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL);
linkctl = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL);
linksts = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS);
ctl2 = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL2);
sts = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS);
ctl = PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL);
sts = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS);
pcie_regs->pcie_err_status = PCIE_CAP_GET(16, bus_p, PCIE_DEVSTS);
pcie_regs->pcie_err_ctl = PCIE_CAP_GET(16, bus_p, PCIE_DEVCTL);
pcie_regs->pcie_dev_cap = PCIE_CAP_GET(32, bus_p, PCIE_DEVCAP);
pcie_rp_regs->pcie_rp_status = PCIE_CAP_GET(32, bus_p,
pcie_rp_regs->pcie_rp_ctl = PCIE_CAP_GET(16, bus_p,
pcie_slot_regs->pcie_slot_cap = PCIE_CAP_GET(32, bus_p,
pcie_slot_regs->pcie_slot_control = PCIE_CAP_GET(16, bus_p,
pcie_slot_regs->pcie_slot_status = PCIE_CAP_GET(16, bus_p,
cdip_dev_ctrl = PCIE_CAP_GET(16, cdip_bus_p, PCIE_DEVCTL);
if (PCIE_CAP_GET(16, bus_p, PCIE_LINKCTL) & PCIE_LINKCTL_LINK_DISABLE)
PCIE_CAP_GET(sz, bus_p, off))
rber = PCIE_CAP_GET(16, bus_p, PCIE_DEVCAP) &
val = PCIE_CAP_GET(32, bus_p, PCIE_LINKCAP);