Lines Matching refs:ofdev
686 static int grpci2_of_probe(struct platform_device *ofdev) in grpci2_of_probe() argument
699 if (ofdev->num_resources < 3) { in grpci2_of_probe()
705 regs = of_ioremap(&ofdev->resource[0], 0, in grpci2_of_probe()
706 resource_size(&ofdev->resource[0]), in grpci2_of_probe()
730 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe()
739 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe()
746 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe()
753 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe()
760 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe()
761 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe()
762 priv->pci_io = ofdev->resource[2].start; in grpci2_of_probe()
763 priv->pci_conf = ofdev->resource[2].start + 0x10000; in grpci2_of_probe()
828 priv->virq_dma = ofdev->archdata.irqs[1]; in grpci2_of_probe()
841 leon_update_virq_handling(ofdev->archdata.irqs[i], in grpci2_of_probe()
844 priv->irq_map[i] = ofdev->archdata.irqs[i]; in grpci2_of_probe()
848 priv->virq_dma = ofdev->archdata.irqs[4]; in grpci2_of_probe()
873 leon_pci_init(ofdev, &priv->info); in grpci2_of_probe()
887 of_iounmap(&ofdev->resource[0], regs, in grpci2_of_probe()
888 resource_size(&ofdev->resource[0])); in grpci2_of_probe()