Lines Matching refs:hose
209 struct pci_controller *hose = alloc_pci_controller(); in io7_init_hose() local
214 hose->index = hose_index++; /* arbitrary */ in io7_init_hose()
224 if (hose->index == 0) in io7_init_hose()
225 pci_isa_hose = hose; in io7_init_hose()
228 io7_port->hose = hose; in io7_init_hose()
229 hose->sysdata = io7_port; in io7_init_hose()
231 hose->io_space = alloc_resource(); in io7_init_hose()
232 hose->mem_space = alloc_resource(); in io7_init_hose()
238 hose->sparse_mem_base = hose->sparse_io_base = 0; in io7_init_hose()
239 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
240 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
245 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
247 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
248 hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1; in io7_init_hose()
249 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
250 hose->io_space->flags = IORESOURCE_IO; in io7_init_hose()
252 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
253 hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1; in io7_init_hose()
254 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
255 hose->mem_space->flags = IORESOURCE_MEM; in io7_init_hose()
257 if (request_resource(&ioport_resource, hose->io_space) < 0) in io7_init_hose()
259 hose->index); in io7_init_hose()
260 if (request_resource(&iomem_resource, hose->mem_space) < 0) in io7_init_hose()
262 hose->index); in io7_init_hose()
285 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
290 hose->sg_isa = iommu_arena_new_node(0, hose, 0x00800000, 0x00800000, 0); in io7_init_hose()
291 hose->sg_isa->align_entry = 8; /* cache line boundary */ in io7_init_hose()
293 hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
294 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose()
295 csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes); in io7_init_hose()
307 hose->sg_pci = iommu_arena_new_node(0, hose, 0xc0000000, 0x40000000, 0); in io7_init_hose()
308 hose->sg_pci->align_entry = 8; /* cache line boundary */ in io7_init_hose()
310 hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
311 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose()
312 csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes); in io7_init_hose()
331 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
380 struct pci_controller *hose = NULL; in marvel_find_console_vga_hose() local
403 hose = io7->ports[port].hose; in marvel_find_console_vga_hose()
405 if (hose) { in marvel_find_console_vga_hose()
406 printk("Console graphics on hose %d\n", hose->index); in marvel_find_console_vga_hose()
407 pci_vga_hose = hose; in marvel_find_console_vga_hose()
503 build_conf_addr(struct pci_controller *hose, u8 bus, in build_conf_addr() argument
506 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); in build_conf_addr()
512 struct pci_controller *hose = pbus->sysdata; in mk_conf_addr() local
517 if (!hose) in mk_conf_addr()
521 io7_port = hose->sysdata; in mk_conf_addr()
532 addr = build_conf_addr(hose, bus, devfn, where); in mk_conf_addr()
607 marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) in marvel_pci_tbi() argument
609 io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_pci_tbi()
686 struct pci_controller *hose; in marvel_ioremap() local
701 for (hose = hose_head; hose; hose = hose->next) { in marvel_ioremap()
702 if ((addr >> 32) == (hose->mem_space->start >> 32)) in marvel_ioremap()
705 if (!hose) in marvel_ioremap()
711 baddr = addr - hose->mem_space->start; in marvel_ioremap()
726 if (hose->sg_pci && in marvel_ioremap()
727 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap()
728 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap()
733 baddr -= hose->sg_pci->dma_base; in marvel_ioremap()
734 last -= hose->sg_pci->dma_base; in marvel_ioremap()
745 ptes = hose->sg_pci->ptes; in marvel_ioremap()
774 vaddr = baddr + hose->mem_space->start; in marvel_ioremap()
870 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
913 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
914 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
966 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
1024 struct pci_controller *hose; in marvel_agp_info() local
1035 hose = NULL; in marvel_agp_info()
1043 h = io7->ports[IO7_AGP_PORT].hose; in marvel_agp_info()
1047 hose = h; in marvel_agp_info()
1052 if (!hose || !hose->sg_pci) in marvel_agp_info()
1055 printk("MARVEL - using hose %d as AGP\n", hose->index); in marvel_agp_info()
1060 csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_agp_info()
1072 agp->hose = hose; in marvel_agp_info()