summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/device.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-11-11 07:18:39 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 23:52:01 +0100
commitc6dbaef22a2f78700e242915a13218dd780c89ff (patch)
tree57167ca04a79f0d0aecf82523c8d8f3918312d8d /include/asm-generic/device.h
parentDriver core: convert sound core to use struct device (diff)
downloadlinux-c6dbaef22a2f78700e242915a13218dd780c89ff.tar.xz
linux-c6dbaef22a2f78700e242915a13218dd780c89ff.zip
Driver core: add dev_archdata to struct device
Add arch specific dev_archdata to struct device Adds an arch specific struct dev_arch to struct device. This enables architecture to add specific fields to every device in the system, like DMA operation pointers, NUMA node ID, firmware specific data, etc... Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Andi Kleen <ak@suse.de> Acked-By: David Howells <dhowells@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-generic/device.h')
-rw-r--r--include/asm-generic/device.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-generic/device.h b/include/asm-generic/device.h
new file mode 100644
index 000000000000..c17c9600f220
--- /dev/null
+++ b/include/asm-generic/device.h
@@ -0,0 +1,12 @@
+/*
+ * Arch specific extensions to struct device
+ *
+ * This file is released under the GPLv2
+ */
+#ifndef _ASM_GENERIC_DEVICE_H
+#define _ASM_GENERIC_DEVICE_H
+
+struct dev_archdata {
+};
+
+#endif /* _ASM_GENERIC_DEVICE_H */