Lines Matching refs:hose

203 	struct pci_controller *hose = alloc_pci_controller();  in io7_init_hose()  local
208 hose->index = hose_index++; /* arbitrary */ in io7_init_hose()
218 if (hose->index == 0) in io7_init_hose()
219 pci_isa_hose = hose; in io7_init_hose()
222 io7_port->hose = hose; in io7_init_hose()
223 hose->sysdata = io7_port; in io7_init_hose()
225 hose->io_space = alloc_resource(); in io7_init_hose()
226 hose->mem_space = alloc_resource(); in io7_init_hose()
232 hose->sparse_mem_base = hose->sparse_io_base = 0; in io7_init_hose()
233 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
234 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
239 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
241 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
242 hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1; in io7_init_hose()
243 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
244 hose->io_space->flags = IORESOURCE_IO; in io7_init_hose()
246 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
247 hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1; in io7_init_hose()
248 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
249 hose->mem_space->flags = IORESOURCE_MEM; in io7_init_hose()
251 if (request_resource(&ioport_resource, hose->io_space) < 0) in io7_init_hose()
253 hose->index); in io7_init_hose()
254 if (request_resource(&iomem_resource, hose->mem_space) < 0) in io7_init_hose()
256 hose->index); in io7_init_hose()
279 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
284 hose->sg_isa = iommu_arena_new_node(0, hose, 0x00800000, 0x00800000, 0); in io7_init_hose()
285 hose->sg_isa->align_entry = 8; /* cache line boundary */ in io7_init_hose()
287 hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
288 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose()
289 csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes); in io7_init_hose()
301 hose->sg_pci = iommu_arena_new_node(0, hose, 0xc0000000, 0x40000000, 0); in io7_init_hose()
302 hose->sg_pci->align_entry = 8; /* cache line boundary */ in io7_init_hose()
304 hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
305 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose()
306 csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes); in io7_init_hose()
325 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
374 struct pci_controller *hose = NULL; in marvel_find_console_vga_hose() local
397 hose = io7->ports[port].hose; in marvel_find_console_vga_hose()
399 if (hose) { in marvel_find_console_vga_hose()
400 printk("Console graphics on hose %d\n", hose->index); in marvel_find_console_vga_hose()
401 pci_vga_hose = hose; in marvel_find_console_vga_hose()
497 build_conf_addr(struct pci_controller *hose, u8 bus, in build_conf_addr() argument
500 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); in build_conf_addr()
506 struct pci_controller *hose = pbus->sysdata; in mk_conf_addr() local
511 if (!hose) in mk_conf_addr()
515 io7_port = hose->sysdata; in mk_conf_addr()
526 addr = build_conf_addr(hose, bus, devfn, where); in mk_conf_addr()
601 marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) in marvel_pci_tbi() argument
603 io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_pci_tbi()
680 struct pci_controller *hose; in marvel_ioremap() local
695 for (hose = hose_head; hose; hose = hose->next) { in marvel_ioremap()
696 if ((addr >> 32) == (hose->mem_space->start >> 32)) in marvel_ioremap()
699 if (!hose) in marvel_ioremap()
705 baddr = addr - hose->mem_space->start; in marvel_ioremap()
720 if (hose->sg_pci && in marvel_ioremap()
721 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap()
722 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap()
727 baddr -= hose->sg_pci->dma_base; in marvel_ioremap()
728 last -= hose->sg_pci->dma_base; in marvel_ioremap()
739 ptes = hose->sg_pci->ptes; in marvel_ioremap()
768 vaddr = baddr + hose->mem_space->start; in marvel_ioremap()
864 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
907 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
908 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
960 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
1018 struct pci_controller *hose; in marvel_agp_info() local
1029 hose = NULL; in marvel_agp_info()
1037 h = io7->ports[IO7_AGP_PORT].hose; in marvel_agp_info()
1041 hose = h; in marvel_agp_info()
1046 if (!hose || !hose->sg_pci) in marvel_agp_info()
1049 printk("MARVEL - using hose %d as AGP\n", hose->index); in marvel_agp_info()
1054 csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_agp_info()
1066 agp->hose = hose; in marvel_agp_info()