Lines Matching refs:ofdev
683 static int grpci2_of_probe(struct platform_device *ofdev) in grpci2_of_probe() argument
696 if (ofdev->num_resources < 3) { in grpci2_of_probe()
702 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe()
703 resource_size(&ofdev->resource[0]), in grpci2_of_probe()
727 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe()
736 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe()
743 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe()
750 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe()
757 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe()
758 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe()
759 priv->pci_io = ofdev->resource[2].start; in grpci2_of_probe()
760 priv->pci_conf = ofdev->resource[2].start + 0x10000; in grpci2_of_probe()
825 priv->virq_dma = ofdev->archdata.irqs[1]; in grpci2_of_probe()
838 leon_update_virq_handling(ofdev->archdata.irqs[i], in grpci2_of_probe()
841 priv->irq_map[i] = ofdev->archdata.irqs[i]; in grpci2_of_probe()
845 priv->virq_dma = ofdev->archdata.irqs[4]; in grpci2_of_probe()
870 leon_pci_init(ofdev, &priv->info); in grpci2_of_probe()
884 of_iounmap(&ofdev->resource[0], regs, in grpci2_of_probe()
885 resource_size(&ofdev->resource[0])); in grpci2_of_probe()