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:919
int rtems_fdt_supernode_atdepth_offset(rtems_fdt_handle *handle, int nodeoffset, int supernodedepth, int *nodedepth)
Definition: rtems-fdt.c:873
int rtems_fdt_next_node(rtems_fdt_handle *handle, int offset, int *depth)
Definition: rtems-fdt.c:949
int rtems_fdt_next_prop_offset(rtems_fdt_handle *handle, int propoffset)
Definition: rtems-fdt.c:791
const void * rtems_fdt_getprop_by_offset(rtems_fdt_handle *handle, int propoffset, const char **name, int *length)
Definition: rtems-fdt.c:797
void rtems_fdt_init_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:352
uint32_t rtems_fdt_get_phandle(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:836
const char * rtems_fdt_get_alias(rtems_fdt_handle *handle, const char *name)
Definition: rtems-fdt.c:854
int rtems_fdt_num_entries(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:1181
const char * rtems_fdt_strerror(int errval)
Definition: rtems-fdt.c:957
int rtems_fdt_subnode_offset_namelen(rtems_fdt_handle *handle, int parentoffset, const char *const name, int namelen)
Definition: rtems-fdt.c:733
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:1030
const char * rtems_fdt_get_name(rtems_fdt_handle *handle, int nodeoffset, int *length)
Definition: rtems-fdt.c:770
int rtems_fdt_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:764
int rtems_fdt_entry_offset(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1201
bool rtems_fdt_get_parent_prop_value(rtems_fdt_handle *handle, int nodeoffset, const char *name, uint32_t *value)
Definition: rtems-fdt.c:1012
int rtems_fdt_node_check_compatible(rtems_fdt_handle *handle, int nodeoffset, const char *const compatible)
Definition: rtems-fdt.c:927
void rtems_fdt_dup_handle(rtems_fdt_handle *from, rtems_fdt_handle *to)
Definition: rtems-fdt.c:359
const char * rtems_fdt_get_alias_namelen(rtems_fdt_handle *handle, const char *const name, int namelen)
Definition: rtems-fdt.c:844
int rtems_fdt_first_prop_offset(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:785
int rtems_fdt_find_path_offset(rtems_fdt_handle *handle, const char *path)
Definition: rtems-fdt.c:432
int rtems_fdt_subnode_offset(rtems_fdt_handle *handle, int parentoffset, const char *const name)
Definition: rtems-fdt.c:747
int rtems_fdt_parent_offset(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:895
int rtems_fdt_node_depth(rtems_fdt_handle *handle, int nodeoffset)
Definition: rtems-fdt.c:887
bool rtems_fdt_valid_handle(const rtems_fdt_handle *handle)
Definition: rtems-fdt.c:403
const void * rtems_fdt_getprop_namelen(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int namelen, int *length)
Definition: rtems-fdt.c:806
int rtems_fdt_prop_value(const char *const path, const char *const propname, void *value, size_t *size)
Definition: rtems-fdt.c:975
int rtems_fdt_node_offset_by_compatible(rtems_fdt_handle *handle, int startoffset, const char *compatible)
Definition: rtems-fdt.c:937
const void * rtems_fdt_getprop(rtems_fdt_handle *handle, int nodeoffset, const char *const name, int *length)
Definition: rtems-fdt.c:822
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:903
int rtems_fdt_register(const void *blob, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:637
int rtems_fdt_load(const char *const filename, rtems_fdt_handle *handle)
Definition: rtems-fdt.c:469
const char * rtems_fdt_entry_name(rtems_fdt_handle *handle, int id)
Definition: rtems-fdt.c:1191
void rtems_fdt_release_handle(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:373
int rtems_fdt_get_mem_rsv(rtems_fdt_handle *handle, int n, uint64_t *address, uint64_t *size)
Definition: rtems-fdt.c:722
int rtems_fdt_unload(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:682
int rtems_fdt_get_path(rtems_fdt_handle *handle, int nodeoffset, char *buf, int buflen)
Definition: rtems-fdt.c:862
int rtems_fdt_num_mem_rsv(rtems_fdt_handle *handle)
Definition: rtems-fdt.c:714
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
unsigned size
Definition: tte.h:1