Lines Matching refs:hose

120 	struct pci_controller *hose = pbus->sysdata;
133 addr |= hose->config_space_base;
205 titan_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
208 (hose->index & 1) ? TITAN_pachip1 : TITAN_pachip0;
213 /* Get the right hose. */
215 if (hose->index & 2)
222 even if hose is an a_port */
252 struct pci_controller *hose;
254 hose = alloc_pci_controller();
256 pci_isa_hose = hose;
257 hose->io_space = alloc_resource();
258 hose->mem_space = alloc_resource();
267 hose->sparse_mem_base = 0;
268 hose->sparse_io_base = 0;
269 hose->dense_mem_base
271 hose->dense_io_base
274 hose->config_space_base = TITAN_CONF(index);
275 hose->index = index;
277 hose->io_space->start = TITAN_IO(index) - TITAN_IO_BIAS;
278 hose->io_space->end = hose->io_space->start + TITAN_IO_SPACE - 1;
279 hose->io_space->name = pci_io_names[index];
280 hose->io_space->flags = IORESOURCE_IO;
282 hose->mem_space->start = TITAN_MEM(index) - TITAN_MEM_BIAS;
283 hose->mem_space->end = hose->mem_space->start + 0xffffffff;
284 hose->mem_space->name = pci_mem_names[index];
285 hose->mem_space->flags = IORESOURCE_MEM;
287 if (request_resource(&ioport_resource, hose->io_space) < 0)
288 printk(KERN_ERR "Failed to request IO on hose %d\n", index);
289 if (request_resource(&iomem_resource, hose->mem_space) < 0)
290 printk(KERN_ERR "Failed to request MEM on hose %d\n", index);
321 hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000,
323 hose->sg_isa->align_entry = 8; /* 64KB for ISA */
325 hose->sg_pci = iommu_arena_new(hose, 0xc0000000, 0x40000000,
327 hose->sg_pci->align_entry = 4; /* Titan caches 4 PTEs at a time */
329 port->wsba[0].csr = hose->sg_isa->dma_base | 3;
330 port->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000;
331 port->tba[0].csr = virt_to_phys(hose->sg_isa->ptes);
337 port->wsba[2].csr = hose->sg_pci->dma_base | 3;
338 port->wsm[2].csr = (hose->sg_pci->size - 1) & 0xfff00000;
339 port->tba[2].csr = virt_to_phys(hose->sg_pci->ptes);
352 titan_pci_tbi(hose, 0, -1);
360 /* Init the ports in hose order... */
361 titan_init_one_pachip_port(&pachip0->g_port, 0); /* hose 0 */
363 titan_init_one_pachip_port(&pachip1->g_port, 1);/* hose 1 */
364 titan_init_one_pachip_port(&pachip0->a_port, 2); /* hose 2 */
366 titan_init_one_pachip_port(&pachip1->a_port, 3);/* hose 3 */
464 struct pci_controller *hose;
472 * Adjust the address and hose, if necessary.
481 * Find the hose.
483 for (hose = hose_head; hose; hose = hose->next)
484 if (hose->index == h)
486 if (!hose)
501 if (hose->sg_pci &&
502 baddr >= (unsigned long)hose->sg_pci->dma_base &&
503 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size){
508 baddr -= hose->sg_pci->dma_base;
509 last -= hose->sg_pci->dma_base;
522 ptes = hose->sg_pci->ptes;
606 aper->arena = agp->hose->sg_pci;
739 struct pci_controller *hose;
756 * Find the hose the port is on.
758 for (hose = hose_head; hose; hose = hose->next)
759 if (hose->index == hosenum)
762 if (!hose || !hose->sg_pci)
775 agp->hose = hose;