Lines Matching refs:hose

210 	struct pci_controller *hose = alloc_pci_controller();  in io7_init_hose()  local
215 hose->index = hose_index++; /* arbitrary */ in io7_init_hose()
225 if (hose->index == 0) in io7_init_hose()
226 pci_isa_hose = hose; in io7_init_hose()
229 io7_port->hose = hose; in io7_init_hose()
230 hose->sysdata = io7_port; in io7_init_hose()
232 hose->io_space = alloc_resource(); in io7_init_hose()
233 hose->mem_space = alloc_resource(); in io7_init_hose()
239 hose->sparse_mem_base = hose->sparse_io_base = 0; in io7_init_hose()
240 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
241 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
246 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
248 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
249 hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1; in io7_init_hose()
250 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
251 hose->io_space->flags = IORESOURCE_IO; in io7_init_hose()
253 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
254 hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1; in io7_init_hose()
255 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
256 hose->mem_space->flags = IORESOURCE_MEM; in io7_init_hose()
258 if (request_resource(&ioport_resource, hose->io_space) < 0) in io7_init_hose()
260 hose->index); in io7_init_hose()
261 if (request_resource(&iomem_resource, hose->mem_space) < 0) in io7_init_hose()
263 hose->index); in io7_init_hose()
286 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
291 hose->sg_isa = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
292 hose, 0x00800000, 0x00800000, 0); in io7_init_hose()
293 hose->sg_isa->align_entry = 8; /* cache line boundary */ in io7_init_hose()
295 hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
296 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose()
297 csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes); in io7_init_hose()
309 hose->sg_pci = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
310 hose, 0xc0000000, 0x40000000, 0); in io7_init_hose()
311 hose->sg_pci->align_entry = 8; /* cache line boundary */ in io7_init_hose()
313 hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
314 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose()
315 csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes); in io7_init_hose()
334 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
383 struct pci_controller *hose = NULL; in marvel_find_console_vga_hose() local
406 hose = io7->ports[port].hose; in marvel_find_console_vga_hose()
408 if (hose) { in marvel_find_console_vga_hose()
409 printk("Console graphics on hose %d\n", hose->index); in marvel_find_console_vga_hose()
410 pci_vga_hose = hose; in marvel_find_console_vga_hose()
506 build_conf_addr(struct pci_controller *hose, u8 bus, in build_conf_addr() argument
509 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); in build_conf_addr()
515 struct pci_controller *hose = pbus->sysdata; in mk_conf_addr() local
520 if (!hose) in mk_conf_addr()
524 io7_port = hose->sysdata; in mk_conf_addr()
535 addr = build_conf_addr(hose, bus, devfn, where); in mk_conf_addr()
610 marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) in marvel_pci_tbi() argument
612 io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_pci_tbi()
689 struct pci_controller *hose; in marvel_ioremap() local
704 for (hose = hose_head; hose; hose = hose->next) { in marvel_ioremap()
705 if ((addr >> 32) == (hose->mem_space->start >> 32)) in marvel_ioremap()
708 if (!hose) in marvel_ioremap()
714 baddr = addr - hose->mem_space->start; in marvel_ioremap()
729 if (hose->sg_pci && in marvel_ioremap()
730 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap()
731 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap()
736 baddr -= hose->sg_pci->dma_base; in marvel_ioremap()
737 last -= hose->sg_pci->dma_base; in marvel_ioremap()
748 ptes = hose->sg_pci->ptes; in marvel_ioremap()
777 vaddr = baddr + hose->mem_space->start; in marvel_ioremap()
918 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
961 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
962 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
1014 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
1072 struct pci_controller *hose; in marvel_agp_info() local
1083 hose = NULL; in marvel_agp_info()
1091 h = io7->ports[IO7_AGP_PORT].hose; in marvel_agp_info()
1095 hose = h; in marvel_agp_info()
1100 if (!hose || !hose->sg_pci) in marvel_agp_info()
1103 printk("MARVEL - using hose %d as AGP\n", hose->index); in marvel_agp_info()
1108 csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_agp_info()
1120 agp->hose = hose; in marvel_agp_info()