• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/alpha/kernel/

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, 0);
322 hose->sg_isa->align_entry = 8; /* 64KB for ISA */
324 hose->sg_pci = iommu_arena_new(hose, 0xc0000000, 0x40000000, 0);
325 hose->sg_pci->align_entry = 4; /* Titan caches 4 PTEs at a time */
327 port->wsba[0].csr = hose->sg_isa->dma_base | 3;
328 port->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000;
329 port->tba[0].csr = virt_to_phys(hose->sg_isa->ptes);
335 port->wsba[2].csr = hose->sg_pci->dma_base | 3;
336 port->wsm[2].csr = (hose->sg_pci->size - 1) & 0xfff00000;
337 port->tba[2].csr = virt_to_phys(hose->sg_pci->ptes);
350 titan_pci_tbi(hose, 0, -1);
358 /* Init the ports in hose order... */
359 titan_init_one_pachip_port(&pachip0->g_port, 0); /* hose 0 */
361 titan_init_one_pachip_port(&pachip1->g_port, 1);/* hose 1 */
362 titan_init_one_pachip_port(&pachip0->a_port, 2); /* hose 2 */
364 titan_init_one_pachip_port(&pachip1->a_port, 3);/* hose 3 */
445 struct pci_controller *hose;
452 * Adjust the address and hose, if necessary.
460 * Find the hose.
462 for (hose = hose_head; hose; hose = hose->next)
463 if (hose->index == h)
465 if (!hose)
480 if (hose->sg_pci &&
481 baddr >= (unsigned long)hose->sg_pci->dma_base &&
482 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size){
487 baddr -= hose->sg_pci->dma_base;
488 last -= hose->sg_pci->dma_base;
501 ptes = hose->sg_pci->ptes;
585 aper->arena = agp->hose->sg_pci;
714 struct pci_controller *hose;
731 * Find the hose the port is on.
733 for (hose = hose_head; hose; hose = hose->next)
734 if (hose->index == hosenum)
737 if (!hose || !hose->sg_pci)
750 agp->hose = hose;