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 28... | Line 28... | ||
28 | 28 | ||
29 | #include <ofw_tree.h> |
29 | #include <ofw_tree.h> |
30 | #include <ofw.h> |
30 | #include <ofw.h> |
31 | #include <types.h> |
31 | #include <types.h> |
32 | #include <string.h> |
32 | #include <string.h> |
- | 33 | #include <balloc.h> |
|
33 | 34 | ||
34 | static ofw_tree_node_t *ofw_tree_node_alloc(void) |
35 | static ofw_tree_node_t *ofw_tree_node_alloc(void) |
35 | { |
36 | { |
36 | return NULL; |
37 | return balloc(sizeof(ofw_tree_node_t), sizeof(ofw_tree_node_t)); |
37 | } |
38 | } |
38 | 39 | ||
39 | static ofw_tree_property_t *ofw_tree_properties_alloc(unsigned count) |
40 | static ofw_tree_property_t *ofw_tree_properties_alloc(unsigned count) |
40 | { |
41 | { |
41 | return NULL; |
42 | return balloc(count * sizeof(ofw_tree_property_t), sizeof(ofw_tree_property_t)); |
42 | } |
43 | } |
43 | 44 | ||
44 | static void * ofw_tree_space_alloc(size_t size) |
45 | static void * ofw_tree_space_alloc(size_t size) |
45 | { |
46 | { |
46 | return NULL; |
47 | return balloc(size, size); |
47 | } |
48 | } |
48 | 49 | ||
49 | /** Transfer information from one OpenFirmware node into its memory representation. |
50 | /** Transfer information from one OpenFirmware node into its memory representation. |
50 | * |
51 | * |
51 | * Transfer entire information from the OpenFirmware device tree 'current' node to |
52 | * Transfer entire information from the OpenFirmware device tree 'current' node to |