• Home
  • Raw
  • Download

Lines Matching refs:pcic

178 	struct linux_pcic *pcic;  in pcic_read_config_dword()  local
181 pcic = &pcic0; in pcic_read_config_dword()
188 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
199 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword()
239 struct linux_pcic *pcic; in pcic_write_config_dword() local
242 pcic = &pcic0; in pcic_write_config_dword()
245 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword()
246 writel(value, pcic->pcic_config_space_data + (where&4)); in pcic_write_config_dword()
288 struct linux_pcic *pcic; in pcic_probe() local
299 pcic = &pcic0; in pcic_probe()
317 pcic->pcic_res_regs.name = "pcic_registers"; in pcic_probe()
318 pcic->pcic_regs = ioremap(regs[0].phys_addr, regs[0].reg_size); in pcic_probe()
319 if (!pcic->pcic_regs) { in pcic_probe()
324 pcic->pcic_res_io.name = "pcic_io"; in pcic_probe()
325 if ((pcic->pcic_io = (unsigned long) in pcic_probe()
331 pcic->pcic_res_cfg_addr.name = "pcic_cfg_addr"; in pcic_probe()
332 if ((pcic->pcic_config_space_addr = in pcic_probe()
343 pcic->pcic_res_cfg_data.name = "pcic_cfg_data"; in pcic_probe()
344 if ((pcic->pcic_config_space_data = in pcic_probe()
351 pbm = &pcic->pbm; in pcic_probe()
364 pcic_regs = pcic->pcic_regs; in pcic_probe()
375 pcic->pcic_imap = p->intmap; in pcic_probe()
376 pcic->pcic_imdim = p->mapdim; in pcic_probe()
378 if (pcic->pcic_imap == NULL) { in pcic_probe()
389 static void __init pcic_pbm_scan_bus(struct linux_pcic *pcic) in pcic_pbm_scan_bus() argument
391 struct linux_pbm_info *pbm = &pcic->pbm; in pcic_pbm_scan_bus()
411 struct linux_pcic *pcic; in pcic_init() local
419 pcic = &pcic0; in pcic_init()
425 pcic->pcic_regs+PCI_DVMA_CONTROL); in pcic_init()
432 writel(0xF0000000UL, pcic->pcic_regs+PCI_SIZE_0); in pcic_init()
434 pcic->pcic_regs+PCI_BASE_ADDRESS_0); in pcic_init()
436 pcic_pbm_scan_bus(pcic); in pcic_init()
470 static void pcic_map_pci_device(struct linux_pcic *pcic, in pcic_map_pci_device() argument
508 pcic->pcic_io + address; in pcic_map_pci_device()
530 pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node) in pcic_fill_irq() argument
543 if ((p = pcic->pcic_imap) == NULL) { in pcic_fill_irq()
547 for (i = 0; i < pcic->pcic_imdim; i++) { in pcic_fill_irq()
552 if (i >= pcic->pcic_imdim) { in pcic_fill_irq()
554 namebuf, dev->bus->number, dev->devfn, pcic->pcic_imdim); in pcic_fill_irq()
561 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO); in pcic_fill_irq()
564 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI); in pcic_fill_irq()
584 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI); in pcic_fill_irq()
587 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_HI); in pcic_fill_irq()
589 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO); in pcic_fill_irq()
592 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_LO); in pcic_fill_irq()
606 struct linux_pcic *pcic; in pcibios_fixup_bus() local
615 pcic = &pcic0; in pcibios_fixup_bus()
659 node = pdev_to_pnode(&pcic->pbm, dev); in pcibios_fixup_bus()
665 pcp->pbm = &pcic->pbm; in pcibios_fixup_bus()
671 pcic_map_pci_device(pcic, dev, node); in pcibios_fixup_bus()
673 pcic_fill_irq(pcic, dev, node); in pcibios_fixup_bus()
710 struct linux_pcic *pcic = &pcic0; in pci_time_init() local
726 writel (TICK_TIMER_LIMIT, pcic->pcic_regs+PCI_SYS_LIMIT); in pci_time_init()
728 v = readb(pcic->pcic_regs+PCI_COUNTER_IRQ); in pci_time_init()
731 pcic->pcic_regs+PCI_COUNTER_IRQ); in pci_time_init()
745 writeb(0, pcic->pcic_regs+PCI_SYS_STATUS);