41#if !defined (_RTEMS_FDT_H_)
89#define RTEMS_FDT_ERR_NOTFOUND 1
93#define RTEMS_FDT_ERR_EXISTS 2
99#define RTEMS_FDT_ERR_NOSPACE 3
107#define RTEMS_FDT_ERR_BADOFFSET 4
112#define RTEMS_FDT_ERR_BADPATH 5
117#define RTEMS_FDT_ERR_BADPHANDLE 6
123#define RTEMS_FDT_ERR_BADSTATE 7
131#define RTEMS_FDT_ERR_TRUNCATED 8
136#define RTEMS_FDT_ERR_BADMAGIC 9
142#define RTEMS_FDT_ERR_BADVERSION 10
148#define RTEMS_FDT_ERR_BADSTRUCTURE 11
155#define RTEMS_FDT_ERR_BADLAYOUT 12
159#define RTEMS_FDT_ERR_INTERNAL 13
166#define RTEMS_FDT_ERR_INVALID_HANDLE 100
170#define RTEMS_FDT_ERR_NO_MEMORY 101
174#define RTEMS_FDT_ERR_NOT_FOUND 102
178#define RTEMS_FDT_ERR_READ_FAIL 103
182#define RTEMS_FDT_ERR_REFERENCED 104
186#define RTEMS_FDT_ERR_BADLENGTH 105
188#define RTEMS_FDT_ERR_RTEMS_MIN 100
189#define RTEMS_FDT_ERR_MAX 105
307 const char*
const name,
326 const char*
const name);
410 const char*
const name,
432 const char*
const name,
456 const char*
const name,
568 const char*
const propname,
598 const char*
const compatible);
626 const char* compatible);
658 const char*
const propname,
667 const char*
const propname,
668 const char*
const names[],
675int rtems_fdt_get_value (
const char*
const path,
676 const char*
const property,
701uintptr_t rtems_fdt_get_offset_len_uintptr(
const void* prop,
int offset,
int len);
706uint32_t rtems_fdt_get_uint32(
const void* prop);
707uint32_t rtems_fdt_get_offset_uint32(
const void* prop,
int offset);
712uint64_t rtems_fdt_get_uint64(
const void* prop);
713uint64_t rtems_fdt_get_offset_uint64(
const void* prop,
int offset);
718uintptr_t rtems_fdt_get_uintptr(
const void* prop);
719uintptr_t rtems_fdt_get_offset_uintptr(
const void* prop,
int offset);
724int rtems_fdt_getprop_address_cells(
rtems_fdt_handle* handle,
int nodeoffset);
This header file provides the Chains API.
int rtems_fdt_node_offset_by_phandle(rtems_fdt_handle *handle, uint32_t phandle)
Definition: rtems-fdt.c:953
int rtems_fdt_supernode_atdepth_offset(rtems_fdt_handle *handle, int nodeoffset, int supernodedepth, int *nodedepth)
Definition: rtems-fdt.c:907
int rtems_fdt_next_node(rtems_fdt_handle *handle, int offset, int *depth)
Definition: rtems-fdt.c:983
int rtems_fdt_next_prop_offset(rtems_fdt_handle *handle, int propoffset)
Definition: rtems-fdt.c:825
const void * rtems_fdt_getprop_by_offset(rtems_fdt_handle *handle, int propoffset, const char **name, int *length)
Definition: rtems-fdt.c:831
void rtems_fdt_init_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:386
uint32_t rtems_fdt_get_phandle(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:870
const char * rtems_fdt_get_alias(rtems_fdt_handle *handle, const char *name)
Definition: rtems-fdt.c:888
int rtems_fdt_num_entries(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:1215
const char * rtems_fdt_strerror(int errval)
Definition: rtems-fdt.c:991
int rtems_fdt_subnode_offset_namelen(rtems_fdt_handle *handle, int parentoffset, const char *const name, int namelen)
Definition: rtems-fdt.c:767
int rtems_fdt_prop_map(const char *const path, const char *const propname, const char *const names[], uintptr_t *values, size_t count)
Definition: rtems-fdt.c:1064
const char * rtems_fdt_get_name(rtems_fdt_handle *handle, int nodeoffset, int *length)
Definition: rtems-fdt.c:804
int rtems_fdt_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:798
int rtems_fdt_entry_offset(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1235
bool rtems_fdt_get_parent_prop_value(rtems_fdt_handle *handle, int nodeoffset, const char *name, uint32_t *value)
Definition: rtems-fdt.c:1046
int rtems_fdt_node_check_compatible(rtems_fdt_handle *handle, int nodeoffset, const char *const compatible)
Definition: rtems-fdt.c:961
void rtems_fdt_dup_handle(rtems_fdt_handle *from, rtems_fdt_handle *to)
Definition: rtems-fdt.c:393
const char * rtems_fdt_get_alias_namelen(rtems_fdt_handle *handle, const char *const name, int namelen)
Definition: rtems-fdt.c:878
int rtems_fdt_first_prop_offset(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:819
int rtems_fdt_find_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:466
int rtems_fdt_subnode_offset(rtems_fdt_handle *handle, int parentoffset, const char *const name)
Definition: rtems-fdt.c:781
int rtems_fdt_parent_offset(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:929
int rtems_fdt_node_depth(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:921
bool rtems_fdt_valid_handle(const rtems_fdt_handle *handle)
Definition: rtems-fdt.c:437
const void * rtems_fdt_getprop_namelen(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int namelen, int *length)
Definition: rtems-fdt.c:840
int rtems_fdt_prop_value(const char *const path, const char *const propname, void *value, size_t *size)
Definition: rtems-fdt.c:1009
int rtems_fdt_node_offset_by_compatible(rtems_fdt_handle *handle, int startoffset, const char *compatible)
Definition: rtems-fdt.c:971
const void * rtems_fdt_getprop(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int *length)
Definition: rtems-fdt.c:856
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:937
int rtems_fdt_register(const void *blob, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:671
int rtems_fdt_load(const char *const filename, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:503
const char * rtems_fdt_entry_name(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1225
void rtems_fdt_release_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:407
int rtems_fdt_get_mem_rsv(rtems_fdt_handle *handle, int n, uint64_t *address, uint64_t *size)
Definition: rtems-fdt.c:756
int rtems_fdt_unload(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:716
int rtems_fdt_get_path(rtems_fdt_handle *handle, int nodeoffset, char *buf, int buflen)
Definition: rtems-fdt.c:896
int rtems_fdt_num_mem_rsv(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:748
This header file defines the RTEMS Classic API.
Definition: rtems-fdt.h:74
Definition: rtems-fdt.c:63
rtems_chain_node node
Definition: rtems-fdt.c:64
const void * blob
Definition: rtems-fdt.c:65
const char * name
Definition: rtems-fdt.c:66
Definition: rtems-fdt.h:63
rtems_fdt_blob * blob
Definition: rtems-fdt.h:64