Lines Matching refs:pci_regs
127 u32 *pci_regs[3]; in fixup_pci() local
139 (unsigned long *)&pci_regs[i], NULL)) in fixup_pci()
188 out_be32(&pci_regs[1][0], mem_base->phys_addr | 1); in fixup_pci()
189 out_be32(&pci_regs[2][0], ~(mem->size[1] + mmio->size[1] - 1)); in fixup_pci()
191 out_be32(&pci_regs[1][1], io->phys_addr | 1); in fixup_pci()
192 out_be32(&pci_regs[2][1], ~(io->size[1] - 1)); in fixup_pci()
194 out_le32(&pci_regs[0][0], mem->pci_addr[1] >> 12); in fixup_pci()
195 out_le32(&pci_regs[0][2], mem->phys_addr >> 12); in fixup_pci()
196 out_le32(&pci_regs[0][4], (~(mem->size[1] - 1) >> 12) | 0xa0000000); in fixup_pci()
198 out_le32(&pci_regs[0][6], mmio->pci_addr[1] >> 12); in fixup_pci()
199 out_le32(&pci_regs[0][8], mmio->phys_addr >> 12); in fixup_pci()
200 out_le32(&pci_regs[0][10], (~(mmio->size[1] - 1) >> 12) | 0x80000000); in fixup_pci()
202 out_le32(&pci_regs[0][12], io->pci_addr[1] >> 12); in fixup_pci()
203 out_le32(&pci_regs[0][14], io->phys_addr >> 12); in fixup_pci()
204 out_le32(&pci_regs[0][16], (~(io->size[1] - 1) >> 12) | 0xc0000000); in fixup_pci()
207 out_le32(&pci_regs[0][58], 0); in fixup_pci()
208 out_le32(&pci_regs[0][60], 0); in fixup_pci()
212 out_le32(&pci_regs[0][62], 0xa0000000 | mem_mask); in fixup_pci()
215 if (!(in_le32(&pci_regs[0][32]) & 1)) { in fixup_pci()
219 out_le32(&pci_regs[0][32], 1); in fixup_pci()
226 out_le32(&pci_regs[0][64], 0x80000004); in fixup_pci()
227 out_le32(&pci_regs[0][65], in_le32(&pci_regs[0][65]) | 6); in fixup_pci()