Lines Matching refs:hose
210 struct pci_controller *hose = alloc_pci_controller();
215 hose->index = hose_index++; /* arbitrary */
218 * We don't have an isa or legacy hose, but glibc expects to be
222 * sparse access, we need to point the pci_isa_hose at a real hose
225 if (hose->index == 0)
226 pci_isa_hose = hose;
229 io7_port->hose = hose;
230 hose->sysdata = io7_port;
232 hose->io_space = alloc_resource();
233 hose->mem_space = alloc_resource();
239 hose->sparse_mem_base = hose->sparse_io_base = 0;
240 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port);
241 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port);
246 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port);
248 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port);
249 hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1;
250 hose->io_space->name = mk_resource_name(io7->pe, port, "IO");
251 hose->io_space->flags = IORESOURCE_IO;
253 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port);
254 hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1;
255 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM");
256 hose->mem_space->flags = IORESOURCE_MEM;
258 if (request_resource(&ioport_resource, hose->io_space) < 0)
259 printk(KERN_ERR "Failed to request IO on hose %d\n",
260 hose->index);
261 if (request_resource(&iomem_resource, hose->mem_space) < 0)
262 printk(KERN_ERR "Failed to request MEM on hose %d\n",
263 hose->index);
286 marvel_pci_tbi(hose, 0, -1);
291 hose->sg_isa = iommu_arena_new_node(0, hose, 0x00800000, 0x00800000, 0);
292 hose->sg_isa->align_entry = 8; /* cache line boundary */
294 hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg;
295 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr;
296 csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes);
308 hose->sg_pci = iommu_arena_new_node(0, hose, 0xc0000000, 0x40000000, 0);
309 hose->sg_pci->align_entry = 8; /* cache line boundary */
311 hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg;
312 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr;
313 csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes);
332 marvel_pci_tbi(hose, 0, -1);
381 struct pci_controller *hose = NULL;
382 int h = (pu64[30] >> 24) & 0xff; /* TERM_OUT_LOC, hose # */
387 * since hose will be able to overflow a byte...
391 printk("console graphics is on hose %d (console)\n", h);
394 * The console's hose numbering is:
396 * hose<n:2>: PID
397 * hose<1:0>: PORT
399 * We need to find the hose at that pid and port
404 hose = io7->ports[port].hose;
406 if (hose) {
407 printk("Console graphics on hose %d\n", hose->index);
408 pci_vga_hose = hose;
488 * n:24 reserved for hose base
497 * to 0 for the root bus on any hose.
505 build_conf_addr(struct pci_controller *hose, u8 bus,
508 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where);
514 struct pci_controller *hose = pbus->sysdata;
519 if (!hose)
523 io7_port = hose->sysdata;
534 addr = build_conf_addr(hose, bus, devfn, where);
610 marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
612 io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs;
692 struct pci_controller *hose;
705 * Find the hose.
707 for (hose = hose_head; hose; hose = hose->next) {
708 if ((addr >> 32) == (hose->mem_space->start >> 32))
711 if (!hose)
715 * We have the hose - calculate the bus limits.
717 baddr = addr - hose->mem_space->start;
732 if (hose->sg_pci &&
733 baddr >= (unsigned long)hose->sg_pci->dma_base &&
734 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) {
739 baddr -= hose->sg_pci->dma_base;
740 last -= hose->sg_pci->dma_base;
751 ptes = hose->sg_pci->ptes;
780 vaddr = baddr + hose->mem_space->start;
876 aper->arena = agp->hose->sg_pci;
919 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs;
920 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7;
971 printk("Enabling AGP on hose %d: %dX%s RQ %d\n",
972 agp->hose->index, agp->mode.bits.rate,
1030 struct pci_controller *hose;
1041 hose = NULL;
1049 h = io7->ports[IO7_AGP_PORT].hose;
1053 hose = h;
1058 if (!hose || !hose->sg_pci)
1061 printk("MARVEL - using hose %d as AGP\n", hose->index);
1064 * Get the csrs from the hose.
1066 csrs = ((struct io7_port *)hose->sysdata)->csrs;
1078 agp->hose = hose;