Searched refs:pci_regs (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/arch/powerpc/boot/ |
D | cuboot-pq2.c | 124 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 …]
|
/Linux-v6.6/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 240 struct mpc52xx_pci __iomem *pci_regs, phys_addr_t pci_phys) in mpc52xx_pci_setup() argument 246 pr_debug("%s(hose=%p, pci_regs=%p)\n", __func__, hose, pci_regs); in mpc52xx_pci_setup() 250 hose->cfg_addr = &pci_regs->car; in mpc52xx_pci_setup() 254 tmp = in_be32(&pci_regs->scr); in mpc52xx_pci_setup() 256 out_be32(&pci_regs->scr, tmp); in mpc52xx_pci_setup() 262 out_be32(&pci_regs->iw0btar, in mpc52xx_pci_setup() 275 out_be32(&pci_regs->iw1btar, in mpc52xx_pci_setup() 293 out_be32(&pci_regs->iw2btar, in mpc52xx_pci_setup() 300 out_be32(&pci_regs->iwcr, MPC52xx_PCI_IWCR_PACK(iwcr0, iwcr1, iwcr2)); in mpc52xx_pci_setup() 304 out_be32(&pci_regs->tbatr0, MPC52xx_PCI_TBATR_ENABLE | pci_phys); in mpc52xx_pci_setup() [all …]
|