22 #if !defined (_RTEMS_FDT_H_) 55 #define RTEMS_FDT_ERR_NOTFOUND 1 59 #define RTEMS_FDT_ERR_EXISTS 2 65 #define RTEMS_FDT_ERR_NOSPACE 3 73 #define RTEMS_FDT_ERR_BADOFFSET 4 78 #define RTEMS_FDT_ERR_BADPATH 5 83 #define RTEMS_FDT_ERR_BADPHANDLE 6 89 #define RTEMS_FDT_ERR_BADSTATE 7 97 #define RTEMS_FDT_ERR_TRUNCATED 8 102 #define RTEMS_FDT_ERR_BADMAGIC 9 108 #define RTEMS_FDT_ERR_BADVERSION 10 114 #define RTEMS_FDT_ERR_BADSTRUCTURE 11 121 #define RTEMS_FDT_ERR_BADLAYOUT 12 125 #define RTEMS_FDT_ERR_INTERNAL 13 132 #define RTEMS_FDT_ERR_INVALID_HANDLE 100 136 #define RTEMS_FDT_ERR_NO_MEMORY 101 140 #define RTEMS_FDT_ERR_NOT_FOUND 102 144 #define RTEMS_FDT_ERR_READ_FAIL 103 148 #define RTEMS_FDT_ERR_REFERENCED 104 150 #define RTEMS_FDT_ERR_RTEMS_MIN 100 151 #define RTEMS_FDT_ERR_MAX 104 269 const char*
const name,
288 const char*
const name);
334 const char*
const name,
355 const char*
const name,
379 const char*
const name,
491 const char*
const propname,
521 const char*
const compatible);
549 const char* compatible);
573 const char*
const propname,
582 const char*
const propname,
583 const char*
const names[],
590 int rtems_fdt_get_value (
const char*
const path,
591 const char*
const property,
615 uint32_t rtems_fdt_get_uint32 (
const void* prop);
const char * rtems_fdt_entry_name(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1088
const void * blob
Definition: rtems-fdt.c:47
int rtems_fdt_prop_value(const char *const path, const char *const propname, void *value, size_t *size)
Definition: rtems-fdt.c:934
int rtems_fdt_load(const char *const filename, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:453
int rtems_fdt_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:745
Definition: rtems-fdt.c:44
int rtems_fdt_unload(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:663
const void * rtems_fdt_getprop(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int *length)
Definition: rtems-fdt.c:782
int rtems_fdt_register(const void *blob, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:620
int rtems_fdt_find_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:416
const char * rtems_fdt_get_alias_namelen(rtems_fdt_handle *handle, const char *const name, int namelen)
Definition: rtems-fdt.c:804
int rtems_fdt_subnode_offset_namelen(rtems_fdt_handle *handle, int parentoffset, const char *const name, int namelen)
Definition: rtems-fdt.c:714
int rtems_fdt_parent_offset(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:855
uint32_t rtems_fdt_get_phandle(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:796
int rtems_fdt_node_offset_by_compatible(rtems_fdt_handle *handle, int startoffset, const char *compatible)
Definition: rtems-fdt.c:897
int rtems_fdt_entry_offset(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1098
const char * rtems_fdt_get_alias(rtems_fdt_handle *handle, const char *name)
Definition: rtems-fdt.c:814
const char * rtems_fdt_strerror(int errval)
Definition: rtems-fdt.c:917
int rtems_fdt_get_mem_rsv(rtems_fdt_handle *handle, int n, uint64_t *address, uint64_t *size)
Definition: rtems-fdt.c:703
bool rtems_fdt_valid_handle(const rtems_fdt_handle *handle)
Definition: rtems-fdt.c:387
int rtems_fdt_node_depth(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:847
int rtems_fdt_num_entries(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:1078
int rtems_fdt_prop_map(const char *const path, const char *const propname, const char *const names[], uint32_t *values, size_t count)
Definition: rtems-fdt.c:971
int rtems_fdt_get_path(rtems_fdt_handle *handle, int nodeoffset, char *buf, int buflen)
Definition: rtems-fdt.c:822
const char * rtems_fdt_get_name(rtems_fdt_handle *handle, int nodeoffset, int *length)
Definition: rtems-fdt.c:751
int rtems_fdt_node_check_compatible(rtems_fdt_handle *handle, int nodeoffset, const char *const compatible)
Definition: rtems-fdt.c:887
void rtems_fdt_dup_handle(rtems_fdt_handle *from, rtems_fdt_handle *to)
Definition: rtems-fdt.c:343
const void * rtems_fdt_getprop_namelen(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int namelen, int *length)
Definition: rtems-fdt.c:766
void rtems_fdt_init_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:336
int rtems_fdt_node_offset_by_phandle(rtems_fdt_handle *handle, uint32_t phandle)
Definition: rtems-fdt.c:879
int rtems_fdt_node_offset_by_prop_value(rtems_fdt_handle *handle, int startoffset, const char *const propname, const void *propval, int proplen)
Definition: rtems-fdt.c:863
int rtems_fdt_next_node(rtems_fdt_handle *handle, int offset, int *depth)
Definition: rtems-fdt.c:909
void rtems_fdt_release_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:357
unsigned size
Definition: tte.h:74
int rtems_fdt_supernode_atdepth_offset(rtems_fdt_handle *handle, int nodeoffset, int supernodedepth, int *nodedepth)
Definition: rtems-fdt.c:833
int rtems_fdt_num_mem_rsv(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:695
Definition: rtems-fdt.h:43
int rtems_fdt_subnode_offset(rtems_fdt_handle *handle, int parentoffset, const char *const name)
Definition: rtems-fdt.c:728
rtems_fdt_blob * blob
Definition: rtems-fdt.h:45