Lines Matching refs:hose

204 	struct pci_controller *hose = alloc_pci_controller();  in io7_init_hose()  local
209 hose->index = hose_index++; /* arbitrary */ in io7_init_hose()
219 if (hose->index == 0) in io7_init_hose()
220 pci_isa_hose = hose; in io7_init_hose()
223 io7_port->hose = hose; in io7_init_hose()
224 hose->sysdata = io7_port; in io7_init_hose()
226 hose->io_space = alloc_resource(); in io7_init_hose()
227 hose->mem_space = alloc_resource(); in io7_init_hose()
233 hose->sparse_mem_base = hose->sparse_io_base = 0; in io7_init_hose()
234 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
235 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
240 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
242 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
243 hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1; in io7_init_hose()
244 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
245 hose->io_space->flags = IORESOURCE_IO; in io7_init_hose()
247 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
248 hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1; in io7_init_hose()
249 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
250 hose->mem_space->flags = IORESOURCE_MEM; in io7_init_hose()
252 if (request_resource(&ioport_resource, hose->io_space) < 0) in io7_init_hose()
254 hose->index); in io7_init_hose()
255 if (request_resource(&iomem_resource, hose->mem_space) < 0) in io7_init_hose()
257 hose->index); in io7_init_hose()
280 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
285 hose->sg_isa = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
286 hose, 0x00800000, 0x00800000, 0); in io7_init_hose()
287 hose->sg_isa->align_entry = 8; /* cache line boundary */ in io7_init_hose()
289 hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
290 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose()
291 csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes); in io7_init_hose()
303 hose->sg_pci = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
304 hose, 0xc0000000, 0x40000000, 0); in io7_init_hose()
305 hose->sg_pci->align_entry = 8; /* cache line boundary */ in io7_init_hose()
307 hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg; in io7_init_hose()
308 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose()
309 csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes); in io7_init_hose()
328 marvel_pci_tbi(hose, 0, -1); in io7_init_hose()
376 struct pci_controller *hose = NULL; in marvel_find_console_vga_hose() local
399 hose = io7->ports[port].hose; in marvel_find_console_vga_hose()
401 if (hose) { in marvel_find_console_vga_hose()
402 printk("Console graphics on hose %d\n", hose->index); in marvel_find_console_vga_hose()
403 pci_vga_hose = hose; in marvel_find_console_vga_hose()
498 build_conf_addr(struct pci_controller *hose, u8 bus, in build_conf_addr() argument
501 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); in build_conf_addr()
507 struct pci_controller *hose = pbus->sysdata; in mk_conf_addr() local
512 if (!hose) in mk_conf_addr()
516 io7_port = hose->sysdata; in mk_conf_addr()
527 addr = build_conf_addr(hose, bus, devfn, where); in mk_conf_addr()
602 marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) in marvel_pci_tbi() argument
604 io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_pci_tbi()
681 struct pci_controller *hose; in marvel_ioremap() local
696 for (hose = hose_head; hose; hose = hose->next) { in marvel_ioremap()
697 if ((addr >> 32) == (hose->mem_space->start >> 32)) in marvel_ioremap()
700 if (!hose) in marvel_ioremap()
706 baddr = addr - hose->mem_space->start; in marvel_ioremap()
721 if (hose->sg_pci && in marvel_ioremap()
722 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap()
723 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap()
728 baddr -= hose->sg_pci->dma_base; in marvel_ioremap()
729 last -= hose->sg_pci->dma_base; in marvel_ioremap()
740 ptes = hose->sg_pci->ptes; in marvel_ioremap()
769 vaddr = baddr + hose->mem_space->start; in marvel_ioremap()
910 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
953 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
954 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
1006 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
1064 struct pci_controller *hose; in marvel_agp_info() local
1075 hose = NULL; in marvel_agp_info()
1083 h = io7->ports[IO7_AGP_PORT].hose; in marvel_agp_info()
1087 hose = h; in marvel_agp_info()
1092 if (!hose || !hose->sg_pci) in marvel_agp_info()
1095 printk("MARVEL - using hose %d as AGP\n", hose->index); in marvel_agp_info()
1100 csrs = ((struct io7_port *)hose->sysdata)->csrs; in marvel_agp_info()
1112 agp->hose = hose; in marvel_agp_info()