Lines Matching refs:hose
40 static void volatile __iomem *pa_pxp_cfg_addr(struct pci_controller *hose, in pa_pxp_cfg_addr() argument
43 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); in pa_pxp_cfg_addr()
61 struct pci_controller *hose; in workaround_5945() local
69 hose = pci_bus_to_host(bus); in workaround_5945()
71 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3); in workaround_5945()
78 dummy = pa_pxp_cfg_addr(hose, bus->number, devfn, 0x10); in workaround_5945()
159 struct pci_controller *hose; in pa_pxp_read_config() local
162 hose = pci_bus_to_host(bus); in pa_pxp_read_config()
163 if (!hose) in pa_pxp_read_config()
172 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); in pa_pxp_read_config()
198 struct pci_controller *hose; in pa_pxp_write_config() local
201 hose = pci_bus_to_host(bus); in pa_pxp_write_config()
202 if (!hose) in pa_pxp_write_config()
208 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); in pa_pxp_write_config()
235 static void __init setup_pa_pxp(struct pci_controller *hose) in setup_pa_pxp() argument
237 hose->ops = &pa_pxp_ops; in setup_pa_pxp()
238 hose->cfg_data = ioremap(0xe0000000, 0x10000000); in setup_pa_pxp()
243 struct pci_controller *hose; in pas_add_bridge() local
247 hose = pcibios_alloc_controller(dev); in pas_add_bridge()
248 if (!hose) in pas_add_bridge()
251 hose->first_busno = 0; in pas_add_bridge()
252 hose->last_busno = 0xff; in pas_add_bridge()
253 hose->controller_ops = pasemi_pci_controller_ops; in pas_add_bridge()
255 setup_pa_pxp(hose); in pas_add_bridge()
260 pci_process_bridge_OF_ranges(hose, dev, 1); in pas_add_bridge()
266 isa_bridge_find_early(hose); in pas_add_bridge()
289 struct pci_controller *hose; in pasemi_pci_getcfgaddr() local
291 hose = pci_bus_to_host(dev->bus); in pasemi_pci_getcfgaddr()
293 return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); in pasemi_pci_getcfgaddr()