Lines Matching refs:hose
95 struct pci_controller *hose = pbus->sysdata;
108 addr |= hose->config_space_base;
179 tsunami_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
181 tsunami_pchip *pchip = hose->index ? TSUNAMI_pchip1 : TSUNAMI_pchip0;
251 struct pci_controller *hose;
256 hose = alloc_pci_controller();
258 pci_isa_hose = hose;
259 hose->io_space = alloc_resource();
260 hose->mem_space = alloc_resource();
266 hose->sparse_mem_base = 0;
267 hose->sparse_io_base = 0;
268 hose->dense_mem_base
270 hose->dense_io_base
273 hose->config_space_base = TSUNAMI_CONF(index);
274 hose->index = index;
276 hose->io_space->start = TSUNAMI_IO(index) - TSUNAMI_IO_BIAS;
277 hose->io_space->end = hose->io_space->start + TSUNAMI_IO_SPACE - 1;
278 hose->io_space->name = pci_io_names[index];
279 hose->io_space->flags = IORESOURCE_IO;
281 hose->mem_space->start = TSUNAMI_MEM(index) - TSUNAMI_MEM_BIAS;
282 hose->mem_space->end = hose->mem_space->start + 0xffffffff;
283 hose->mem_space->name = pci_mem_names[index];
284 hose->mem_space->flags = IORESOURCE_MEM;
286 if (request_resource(&ioport_resource, hose->io_space) < 0)
287 printk(KERN_ERR "Failed to request IO on hose %d\n", index);
288 if (request_resource(&iomem_resource, hose->mem_space) < 0)
289 printk(KERN_ERR "Failed to request MEM on hose %d\n", index);
324 hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000,
327 hose->sg_isa->align_entry = 4;
329 hose->sg_pci = iommu_arena_new(hose, 0x40000000,
332 hose->sg_pci->align_entry = 4; /* Tsunami caches 4 PTEs at a time */
337 pchip->wsba[0].csr = hose->sg_isa->dma_base | 3;
338 pchip->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000;
339 pchip->tba[0].csr = virt_to_phys(hose->sg_isa->ptes);
341 pchip->wsba[1].csr = hose->sg_pci->dma_base | 3;
342 pchip->wsm[1].csr = (hose->sg_pci->size - 1) & 0xfff00000;
343 pchip->tba[1].csr = virt_to_phys(hose->sg_pci->ptes);
354 tsunami_pci_tbi(hose, 0, -1);