PCIE_WRITE
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, v);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, v);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, v);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, __SHIFTIN(data, PCIE_PL_PHY_CTRL_DATA));
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, __SHIFTIN(data, PCIE_PL_PHY_CTRL_DATA) | PCIE_PL_PHY_CTRL_CAP_DAT);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, __SHIFTIN(data, PCIE_PL_PHY_CTRL_DATA));
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, PCIE_PL_PHY_CTRL_WR);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, __SHIFTIN(data, PCIE_PL_PHY_CTRL_DATA));
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, 0);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, PCIE_PL_PHY_CTRL_RD);
PCIE_WRITE(sc, PCIE_PL_PHY_CTRL, 0);
PCIE_WRITE(sc, PCIE_PL_PFLR, v);
PCIE_WRITE(sc, PCIE_RC_LCR, v);
PCIE_WRITE(sc, PCIE_RC_LCR, v);
PCIE_WRITE(sc, PCIE_PL_G2CR, v);
PCIE_WRITE(sc, PCIE_PL_MSICIN_STATUS + i * 0xC,
PCIE_WRITE(sc, PCIE_PL_PLCR, v);
PCIE_WRITE(sc, PCIE_PL_G2CR, v);
PCIE_WRITE(sc, PCI_BAR0, 0x00000004);
PCIE_WRITE(sc, PCI_BAR1, 0x00000000);
PCIE_WRITE(sc, PCI_INTERRUPT_REG, v);
PCIE_WRITE(sc, PCI_BRIDGE_BUS_REG, v);
PCIE_WRITE(sc, PCI_COMMAND_STATUS_REG, v);
PCIE_WRITE(sc, PCI_CLASS_REG,
PCIE_WRITE(sc, PCIE_PL_IATUVR, 0);
PCIE_WRITE(sc, PCIE_PL_IATURLBA, sc->sc_root_addr);
PCIE_WRITE(sc, PCIE_PL_IATURUBA, 0);
PCIE_WRITE(sc, PCIE_PL_IATURLA, sc->sc_root_addr + sc->sc_root_size);
PCIE_WRITE(sc, PCIE_PL_IATURLTA, 0);
PCIE_WRITE(sc, PCIE_PL_IATURUTA, 0);
PCIE_WRITE(sc, PCIE_PL_IATURC1, PCIE_PL_IATURC1_TYPE_CFG0);
PCIE_WRITE(sc, PCIE_PL_IATURC2, PCIE_PL_IATURC2_REGION_ENABLE);
PCIE_WRITE(sc, PCIE_PL_IATUVR, 0);
PCIE_WRITE(sc, PCIE_PL_IATURC1, PCIE_PL_IATURC1_TYPE_CFG0);
PCIE_WRITE(sc, PCIE_PL_IATURC1, PCIE_PL_IATURC1_TYPE_CFG1);
PCIE_WRITE(sc, PCIE_PL_IATURLTA, tag << 8);
PCIE_WRITE(sc, PCIE_PL_IATUVR, 0);
PCIE_WRITE(sc, PCIE_PL_IATURC1, PCIE_PL_IATURC1_TYPE_CFG0);
PCIE_WRITE(sc, PCIE_PL_IATURC1, PCIE_PL_IATURC1_TYPE_CFG1);
PCIE_WRITE(sc, PCIE_PL_IATURLTA, tag << 8);