diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:46 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:46 -0400 |
commit | 731581e6a653f6a68a4d7ba9df6b886a85c7d080 (patch) | |
tree | a89d70ebec3e3d9d261625344d1edcd5e24a905a /include/linux/of.h | |
parent | 9d24c888c779c877f1baf5a73e0cec78266ff7bb (diff) |
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.h | 12 |
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 @@ | |||
19 | #include <linux/bitops.h> | 19 | #include <linux/bitops.h> |
20 | #include <linux/mod_devicetable.h> | 20 | #include <linux/mod_devicetable.h> |
21 | 21 | ||
22 | typedef u32 phandle; | ||
23 | typedef u32 ihandle; | ||
24 | |||
25 | struct property { | ||
26 | char *name; | ||
27 | int length; | ||
28 | void *value; | ||
29 | struct property *next; | ||
30 | unsigned long _flags; | ||
31 | unsigned int unique_id; | ||
32 | }; | ||
33 | |||
22 | #include <asm/prom.h> | 34 | #include <asm/prom.h> |
23 | 35 | ||
24 | /* flag descriptions */ | 36 | /* flag descriptions */ |