Lines Matching refs:hose
110 struct pci_controller *hose = pci_bus_to_host(bus); in mpc52xx_pci_read_config() local
114 if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) in mpc52xx_pci_read_config()
117 out_be32(hose->cfg_addr, in mpc52xx_pci_read_config()
130 value = in_8(((u8 __iomem *)hose->cfg_data) + in mpc52xx_pci_read_config()
134 value = in_le16(((u16 __iomem *)hose->cfg_data) + in mpc52xx_pci_read_config()
139 value = in_le16((u16 __iomem *)hose->cfg_data) | in mpc52xx_pci_read_config()
140 (in_le16(((u16 __iomem *)hose->cfg_data) + 1) << 16); in mpc52xx_pci_read_config()
147 value = in_le32(hose->cfg_data); in mpc52xx_pci_read_config()
157 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_read_config()
167 struct pci_controller *hose = pci_bus_to_host(bus); in mpc52xx_pci_write_config() local
171 if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) in mpc52xx_pci_write_config()
174 out_be32(hose->cfg_addr, in mpc52xx_pci_write_config()
187 out_8(((u8 __iomem *)hose->cfg_data) + in mpc52xx_pci_write_config()
191 out_le16(((u16 __iomem *)hose->cfg_data) + in mpc52xx_pci_write_config()
196 out_le16((u16 __iomem *)hose->cfg_data, in mpc52xx_pci_write_config()
198 out_le16(((u16 __iomem *)hose->cfg_data) + 1, in mpc52xx_pci_write_config()
207 value = in_le32(hose->cfg_data); in mpc52xx_pci_write_config()
217 out_le32(hose->cfg_data, val); in mpc52xx_pci_write_config()
221 out_be32(hose->cfg_addr, 0); in mpc52xx_pci_write_config()
238 mpc52xx_pci_setup(struct pci_controller *hose, 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()
250 hose->cfg_data = hose->io_base_virt; in mpc52xx_pci_setup()
258 res = &hose->mem_resources[0]; in mpc52xx_pci_setup()
275 res = &hose->mem_resources[1]; in mpc52xx_pci_setup()
290 res = &hose->io_resource; in mpc52xx_pci_setup()
299 (unsigned long long)res->flags, (void*)hose->io_base_phys); in mpc52xx_pci_setup()
301 MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys, in mpc52xx_pci_setup()
368 struct pci_controller *hose; in mpc52xx_add_bridge() local
396 hose = pcibios_alloc_controller(node); in mpc52xx_add_bridge()
397 if (!hose) in mpc52xx_add_bridge()
400 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc52xx_add_bridge()
401 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mpc52xx_add_bridge()
403 hose->ops = &mpc52xx_pci_ops; in mpc52xx_add_bridge()
409 pci_process_bridge_OF_ranges(hose, node, 1); in mpc52xx_add_bridge()
413 mpc52xx_pci_setup(hose, pci_regs, rsrc.start); in mpc52xx_add_bridge()