aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/of_device.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-06-29 18:08:02 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-29 19:37:40 -0400
commit8f96cd1a69d4c43e3473406a1fdf15cd9f1de5e5 (patch)
tree34e43df9f2687720997e43a6c944c73ef61414db /include/asm-sparc/of_device.h
parent2b1e59787198e75fb2ffb3bb4fb247da1c55ac12 (diff)
[SPARC]: sparc32 side of of_device layer IRQ resolution.
Happily, life is much simpler on 32-bit sparc systems. The "intr" property, preferred over the "interrupts" property is used-as. Some minor translations of this value happen on sun4d systems. The stage is now set to rewrite the sparc serial driver probing to use the of_driver framework, and then to convert all SBUS, EBUS, and ISA drivers in-kind so that we can nuke all those special bus frameworks. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc/of_device.h')
-rw-r--r--include/asm-sparc/of_device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-sparc/of_device.h b/include/asm-sparc/of_device.h
index b5ca3145d48b..80ea31f6e17f 100644
--- a/include/asm-sparc/of_device.h
+++ b/include/asm-sparc/of_device.h
@@ -21,7 +21,8 @@ struct of_device
21 struct device_node *node; 21 struct device_node *node;
22 struct device dev; 22 struct device dev;
23 struct resource resource[PROMREG_MAX]; 23 struct resource resource[PROMREG_MAX];
24 unsigned int irq; 24 unsigned int irqs[PROMINTR_MAX];
25 int num_irqs;
25 26
26 void *sysdata; 27 void *sysdata;
27 28
@@ -34,6 +35,8 @@ struct of_device
34extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); 35extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
35extern void of_iounmap(void __iomem *base, unsigned long size); 36extern void of_iounmap(void __iomem *base, unsigned long size);
36 37
38extern struct of_device *of_find_device_by_node(struct device_node *);
39
37extern const struct of_device_id *of_match_device( 40extern const struct of_device_id *of_match_device(
38 const struct of_device_id *matches, const struct of_device *dev); 41 const struct of_device_id *matches, const struct of_device *dev);
39 42