]>
git.saurik.com Git - apple/boot.git/blob - i386/libsaio/device_tree.h
2 * Copyright (c) 2005 Apple Computer, Inc. All Rights Reserved.
5 #ifndef __DEVICE_TREE_H
6 #define __DEVICE_TREE_H
11 typedef struct _Property
{
16 struct _Property
* next
;
19 typedef struct _Node
{
20 struct _Property
* properties
;
21 struct _Property
* last_prop
;
23 struct _Node
* children
;
30 DT__AddProperty(Node
*node
, char *name
, uint32_t length
, void *value
);
33 DT__AddChild(Node
*parent
, char *name
);
36 DT__FindNode(char *path
, bool createIfMissing
);
39 DT__FreeProperty(Property
*prop
);
42 DT__FreeNode(Node
*node
);
45 DT__GetName(Node
*node
);
51 * Free up memory used by in-memory representation
58 DT__FlattenDeviceTree(void **result
, uint32_t *length
);
61 #endif /* __DEVICE_TREE_H */