[SPARC64]: of_device layer IRQ resolution
[firefly-linux-kernel-4.4.55.git] / include / asm-sparc64 / of_device.h
index 37c5856fae12743d059e823d710bd3ba08bbdfc2..a62c7b997d662fa1dc9b552b91cb57b5cd808f19 100644 (file)
@@ -22,7 +22,8 @@ struct of_device
        struct device_node              *node;
        struct device                   dev;
        struct resource                 resource[PROMREG_MAX];
-       unsigned int                    irq;
+       unsigned int                    irqs[PROMINTR_MAX];
+       int                             num_irqs;
 
        void                            *sysdata;
 
@@ -35,6 +36,8 @@ struct of_device
 extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
 extern void of_iounmap(void __iomem *base, unsigned long size);
 
+extern struct of_device *of_find_device_by_node(struct device_node *);
+
 extern const struct of_device_id *of_match_device(
        const struct of_device_id *matches, const struct of_device *dev);