]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-sparc/of_device.h
firewire: add Kconfig help on building both stacks
[linux-2.6-omap-h63xx.git] / include / asm-sparc / of_device.h
index b5ca3145d48b9cea473bfa2869d30a2578520720..7cb00c1b09c686b8a095935ac32d2a32c64f0515 100644 (file)
@@ -21,7 +21,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;
 
@@ -32,7 +33,9 @@ struct of_device
 #define        to_of_device(d) container_of(d, struct of_device, dev)
 
 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 void of_iounmap(struct resource *res, 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);