Home
last modified time | relevance | path

Searched refs:pci_regs (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/boot/
Dcuboot-pq2.c124 u32 *pci_regs[3]; in fixup_pci() local
136 (unsigned long *)&pci_regs[i], NULL)) in fixup_pci()
185 out_be32(&pci_regs[1][0], mem_base->phys_addr | 1); in fixup_pci()
186 out_be32(&pci_regs[2][0], ~(mem->size[1] + mmio->size[1] - 1)); in fixup_pci()
188 out_be32(&pci_regs[1][1], io->phys_addr | 1); in fixup_pci()
189 out_be32(&pci_regs[2][1], ~(io->size[1] - 1)); in fixup_pci()
191 out_le32(&pci_regs[0][0], mem->pci_addr[1] >> 12); in fixup_pci()
192 out_le32(&pci_regs[0][2], mem->phys_addr >> 12); in fixup_pci()
193 out_le32(&pci_regs[0][4], (~(mem->size[1] - 1) >> 12) | 0xa0000000); in fixup_pci()
195 out_le32(&pci_regs[0][6], mmio->pci_addr[1] >> 12); in fixup_pci()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
Dmpc52xx_pci.c239 struct mpc52xx_pci __iomem *pci_regs, phys_addr_t pci_phys) in mpc52xx_pci_setup() argument
245 pr_debug("mpc52xx_pci_setup(hose=%p, pci_regs=%p)\n", hose, pci_regs); in mpc52xx_pci_setup()
249 hose->cfg_addr = &pci_regs->car; in mpc52xx_pci_setup()
253 tmp = in_be32(&pci_regs->scr); in mpc52xx_pci_setup()
255 out_be32(&pci_regs->scr, tmp); in mpc52xx_pci_setup()
265 out_be32(&pci_regs->iw0btar, in mpc52xx_pci_setup()
279 out_be32(&pci_regs->iw1btar, in mpc52xx_pci_setup()
300 out_be32(&pci_regs->iw2btar, in mpc52xx_pci_setup()
307 out_be32(&pci_regs->iwcr, MPC52xx_PCI_IWCR_PACK(iwcr0, iwcr1, iwcr2)); in mpc52xx_pci_setup()
311 out_be32(&pci_regs->tbatr0, MPC52xx_PCI_TBATR_ENABLE | pci_phys); in mpc52xx_pci_setup()
[all …]