aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-10-15 10:57:46 -0600
committerGrant Likely <grant.likely@secretlab.ca>2009-10-15 10:57:46 -0600
commit731581e6a653f6a68a4d7ba9df6b886a85c7d080 (patch)
treea89d70ebec3e3d9d261625344d1edcd5e24a905a /include/linux/of.h
parent9d24c888c779c877f1baf5a73e0cec78266ff7bb (diff)
downloadkernel_goldelico_gta04-731581e6a653f6a68a4d7ba9df6b886a85c7d080.zip
kernel_goldelico_gta04-731581e6a653f6a68a4d7ba9df6b886a85c7d080.tar.gz
kernel_goldelico_gta04-731581e6a653f6a68a4d7ba9df6b886a85c7d080.tar.bz2
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 7be2d10..4668b29 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 */