summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGrant Likely2009-10-15 18:57:46 +0200
committerGrant Likely2009-10-15 18:57:46 +0200
commit731581e6a653f6a68a4d7ba9df6b886a85c7d080 (patch)
treea89d70ebec3e3d9d261625344d1edcd5e24a905a /include/linux/of.h
parentof: Rework linux/of.h and asm/prom.h include ordering (diff)
downloadkernel-qcow2-linux-731581e6a653f6a68a4d7ba9df6b886a85c7d080.tar.gz
kernel-qcow2-linux-731581e6a653f6a68a4d7ba9df6b886a85c7d080.tar.xz
kernel-qcow2-linux-731581e6a653f6a68a4d7ba9df6b886a85c7d080.zip
of: merge phandle, ihandle and struct property
Merge of common code duplicated between Sparc, PowerPC and Microblaze Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Michal Simek <monstr@monstr.eu> Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 7be2d1043c16..4668b298479a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -19,6 +19,18 @@
#include <linux/bitops.h>
#include <linux/mod_devicetable.h>
+typedef u32 phandle;
+typedef u32 ihandle;
+
+struct property {
+ char *name;
+ int length;
+ void *value;
+ struct property *next;
+ unsigned long _flags;
+ unsigned int unique_id;
+};
+
#include <asm/prom.h>
/* flag descriptions */