SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
fdt_wrapper.h
Go to the documentation of this file.
1#ifndef __FDT_WRAPPER_H__
2#define __FDT_WRAPPER_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif// __cplusplus
7
8#ifndef __packed
9#define __packed __attribute__((__packed__))
10#endif
11
12#ifndef __aligned
13#define __aligned(x) __attribute__((__aligned__(x)))
14#endif
15
16#define MAX_LEVEL 32 /* how deeply nested we will go */
17#define SCRATCHPAD 1024 /* bytes of scratchpad memory */
18#define CMD_FDT_MAX_DUMP 64
19
29int fdt_print(unsigned char *working_fdt, const char *pathp, char *prop, int depth);
30
40int fdt_parse_prop(char const **newval, int count, char *data, int *len);
41
49int fdt_increase_size(void *fdt, int add_len);
50
61int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name);
62
72int fdt_overlay_apply_verbose(void *fdt, void *fdto);
73
74#ifdef __cplusplus
75}
76#endif// __cplusplus
77
78#endif//__FDT_WRAPPER_H__
char name[ANDR_BOOT_NAME_SIZE]
Definition bimage.c:76
int fdt_parse_prop(char const **newval, int count, char *data, int *len)
Parse the property values in the data buffer and return the new value pointers and lengths.
Definition fdt_wrapper.c:29
int fdt_increase_size(void *fdt, int add_len)
Increase the size of the flattened device tree by adding additional length.
Definition fdt_wrapper.c:300
int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name)
Definition fdt_wrapper.c:307
int fdt_print(unsigned char *working_fdt, const char *pathp, char *prop, int depth)
Print the contents of the device tree at the specified path with a given property and depth.
Definition fdt_wrapper.c:195
int fdt_overlay_apply_verbose(void *fdt, void *fdto)
fdt_overlay_apply_verbose - Apply an overlay with verbose error reporting
Definition fdt_wrapper.c:321