]> err.no Git - linux-2.6/blobdiff - include/asm-sparc64/of_device.h
libata: reorder HSM_ST_FIRST for easier decoding (take 3)
[linux-2.6] / include / asm-sparc64 / of_device.h
index 27bc08671d684580c23f3fc9cdb6f176d726e66b..60e9173c9acb910554e5b155b5e104aefbabf8b5 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;
 
@@ -32,6 +33,11 @@ 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(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);