aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/device.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-02-28 23:35:04 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:55:06 -0700
commita2fb23af1c31ad6e0c281e56d385f803229d57fa (patch)
tree9c093cd9cc639cfaac4e2b1057f5d45eb6ab69e3 /include/asm-sparc64/device.h
parent[SPARC64] isa: Convert to use pci_device_to_OF_node(). (diff)
downloadlinux-dev-a2fb23af1c31ad6e0c281e56d385f803229d57fa.tar.xz
linux-dev-a2fb23af1c31ad6e0c281e56d385f803229d57fa.zip
[SPARC64]: Probe PCI bus using OF device tree.
Almost entirely taken from the 64-bit PowerPC PCI code. This allowed to eliminate a ton of cruft from the sparc64 PCI layer. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/device.h')
-rw-r--r--include/asm-sparc64/device.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/asm-sparc64/device.h b/include/asm-sparc64/device.h
index d8f9872b0e2d..d5a4559b9555 100644
--- a/include/asm-sparc64/device.h
+++ b/include/asm-sparc64/device.h
@@ -3,5 +3,21 @@
*
* This file is released under the GPLv2
*/
-#include <asm-generic/device.h>
+#ifndef _ASM_SPARC64_DEVICE_H
+#define _ASM_SPARC64_DEVICE_H
+struct device_node;
+struct of_device;
+
+struct dev_archdata {
+ void *iommu;
+ void *stc;
+ void *host_controller;
+
+ struct device_node *prom_node;
+ struct of_device *op;
+
+ unsigned int msi_num;
+};
+
+#endif /* _ASM_SPARC64_DEVICE_H */