aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/device.h')
-rw-r--r--arch/sparc/include/asm/device.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/device.h b/arch/sparc/include/asm/device.h
index 19790eb99cc..bb3f0b0c675 100644
--- a/arch/sparc/include/asm/device.h
+++ b/arch/sparc/include/asm/device.h
@@ -6,18 +6,25 @@
#ifndef _ASM_SPARC_DEVICE_H
#define _ASM_SPARC_DEVICE_H
+#include <asm/openprom.h>
+
struct device_node;
-struct of_device;
+struct platform_device;
struct dev_archdata {
void *iommu;
void *stc;
void *host_controller;
+ struct platform_device *op;
+ int numa_node;
+};
- struct device_node *prom_node;
- struct of_device *op;
+void of_propagate_archdata(struct platform_device *bus);
- int numa_node;
+struct pdev_archdata {
+ struct resource resource[PROMREG_MAX];
+ unsigned int irqs[PROMINTR_MAX];
+ int num_irqs;
};
#endif /* _ASM_SPARC_DEVICE_H */