Rev 1893 | Rev 1895 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1893 | Rev 1894 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #define OFW_TREE_PROPERTY_MAX_NAMELEN 32 |
35 | #define OFW_TREE_PROPERTY_MAX_NAMELEN 32 |
36 | 36 | ||
37 | typedef struct ofw_tree_node ofw_tree_node_t; |
37 | typedef struct ofw_tree_node ofw_tree_node_t; |
38 | typedef struct ofw_tree_property ofw_tree_property_t; |
38 | typedef struct ofw_tree_property ofw_tree_property_t; |
39 | 39 | ||
- | 40 | /** Memory representation of OpenFirmware device tree node. */ |
|
40 | struct ofw_tree_node { |
41 | struct ofw_tree_node { |
41 | ofw_tree_node_t *parent; |
42 | ofw_tree_node_t *parent; |
42 | ofw_tree_node_t *peer; |
43 | ofw_tree_node_t *peer; |
43 | ofw_tree_node_t *child; |
44 | ofw_tree_node_t *child; |
44 | 45 | ||
45 | unsigned properties; |
46 | unsigned properties; /**< Number of properties. */ |
46 | ofw_tree_property_t *property; |
47 | ofw_tree_property_t *property; |
47 | }; |
48 | }; |
48 | 49 | ||
- | 50 | /** Memory representation of OpenFirmware device tree node property. */ |
|
49 | struct ofw_tree_property { |
51 | struct ofw_tree_property { |
50 | char name[OFW_TREE_PROPERTY_MAX_NAMELEN]; |
52 | char name[OFW_TREE_PROPERTY_MAX_NAMELEN]; |
51 | size_t size; |
53 | size_t size; |
52 | void *value; |
54 | void *value; |
53 | }; |
55 | }; |