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()
728 priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ in grpci2_of_probe()
737 tmp = of_get_property(ofdev->dev.of_node, "barcfg", &len); in grpci2_of_probe()
744 tmp = of_get_property(ofdev->dev.of_node, "irq_mask", &len); in grpci2_of_probe()
751 tmp = of_get_property(ofdev->dev.of_node, "reset", &len); in grpci2_of_probe()
758 priv->pci_area = ofdev->resource[1].start; in grpci2_of_probe()
759 priv->pci_area_end = ofdev->resource[1].end+1; in grpci2_of_probe()
760 priv->pci_io = ofdev->resource[2].start; in grpci2_of_probe()
761 priv->pci_conf = ofdev->resource[2].start + 0x10000; in grpci2_of_probe()
826 priv->virq_dma = ofdev->archdata.irqs[1]; in grpci2_of_probe()
839 leon_update_virq_handling(ofdev->archdata.irqs[i], in grpci2_of_probe()
842 priv->irq_map[i] = ofdev->archdata.irqs[i]; in grpci2_of_probe()
846 priv->virq_dma = ofdev->archdata.irqs[4]; in grpci2_of_probe()
871 leon_pci_init(ofdev, &priv->info); in grpci2_of_probe()
885 of_iounmap(&ofdev->resource[0], regs, in grpci2_of_probe()
886 resource_size(&ofdev->resource[0])); in grpci2_of_probe()