Lines Matching refs:hose
88 struct pci_controller *hose) in conf_read() argument
91 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_read()
136 struct pci_controller *hose) in conf_write() argument
139 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_write()
171 struct pci_controller *hose, unsigned long *pci_addr, in mk_conf_addr() argument
179 bus, devfn, hose->index, where, pci_addr, type1)); in mk_conf_addr()
188 addr |= hose->config_space_base; in mk_conf_addr()
199 struct pci_controller *hose = bus->sysdata; in mcpcia_read_config() local
203 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) in mcpcia_read_config()
207 w = conf_read(addr, type1, hose); in mcpcia_read_config()
226 struct pci_controller *hose = bus->sysdata; in mcpcia_write_config() local
230 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) in mcpcia_write_config()
235 conf_write(addr, value, type1, hose); in mcpcia_write_config()
246 mcpcia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) in mcpcia_pci_tbi() argument
249 *(vuip)MCPCIA_SG_TBIA(MCPCIA_HOSE2MID(hose->index)) = 0; in mcpcia_pci_tbi()
291 struct pci_controller *hose; in mcpcia_new_hose() local
295 hose = alloc_pci_controller(); in mcpcia_new_hose()
297 pci_isa_hose = hose; in mcpcia_new_hose()
302 hose->io_space = io; in mcpcia_new_hose()
303 hose->mem_space = hae_mem; in mcpcia_new_hose()
304 hose->sparse_mem_base = MCPCIA_SPARSE(mid) - IDENT_ADDR; in mcpcia_new_hose()
305 hose->dense_mem_base = MCPCIA_DENSE(mid) - IDENT_ADDR; in mcpcia_new_hose()
306 hose->sparse_io_base = MCPCIA_IO(mid) - IDENT_ADDR; in mcpcia_new_hose()
307 hose->dense_io_base = 0; in mcpcia_new_hose()
308 hose->config_space_base = MCPCIA_CONF(mid); in mcpcia_new_hose()
309 hose->index = h; in mcpcia_new_hose()
344 mcpcia_startup_hose(struct pci_controller *hose) in mcpcia_startup_hose() argument
346 int mid = MCPCIA_HOSE2MID(hose->index); in mcpcia_startup_hose()
367 hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, in mcpcia_startup_hose()
369 hose->sg_pci = iommu_arena_new(hose, 0x40000000, in mcpcia_startup_hose()
376 *(vuip)MCPCIA_W0_BASE(mid) = hose->sg_isa->dma_base | 3; in mcpcia_startup_hose()
377 *(vuip)MCPCIA_W0_MASK(mid) = (hose->sg_isa->size - 1) & 0xfff00000; in mcpcia_startup_hose()
378 *(vuip)MCPCIA_T0_BASE(mid) = virt_to_phys(hose->sg_isa->ptes) >> 8; in mcpcia_startup_hose()
380 *(vuip)MCPCIA_W1_BASE(mid) = hose->sg_pci->dma_base | 3; in mcpcia_startup_hose()
381 *(vuip)MCPCIA_W1_MASK(mid) = (hose->sg_pci->size - 1) & 0xfff00000; in mcpcia_startup_hose()
382 *(vuip)MCPCIA_T1_BASE(mid) = virt_to_phys(hose->sg_pci->ptes) >> 8; in mcpcia_startup_hose()
390 mcpcia_pci_tbi(hose, 0, -1); in mcpcia_startup_hose()
423 struct pci_controller *hose; in mcpcia_init_hoses() local
440 for (hose = hose_head; hose; hose = hose->next) in mcpcia_init_hoses()
441 mcpcia_startup_hose(hose); in mcpcia_init_hoses()
520 struct pci_controller *hose; in mcpcia_print_system_area() local
551 for (hose = hose_head; hose; hose = hose->next, iodpp++) { in mcpcia_print_system_area()
554 hose->index, iodpp->base); in mcpcia_print_system_area()
594 struct pci_controller *hose; in mcpcia_machine_check() local
595 for (hose = hose_head; hose; hose = hose->next) in mcpcia_machine_check()
596 mcpcia_pci_clr_err(MCPCIA_HOSE2MID(hose->index)); in mcpcia_machine_check()