![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <log.h>#include "ctype.h"#include "fdt_wrapper.h"#include "libfdt.h"
Functions | |
| 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. | |
| static int | is_printable_string (const void *data, int len) |
| static void | print_data (const void *data, int len) |
| 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. | |
| int | fdt_increase_size (void *fdt, int add_len) |
| Increase the size of the flattened device tree by adding additional length. | |
| int | fdt_find_or_add_subnode (void *fdt, int parent_offset, const char *name) |
| int | fdt_overlay_apply_verbose (void *fdt, void *fdto) |
| fdt_overlay_apply_verbose - Apply an overlay with verbose error reporting | |
| int fdt_find_or_add_subnode | ( | void * | fdt, |
| int | parent_offset, | ||
| const char * | name | ||
| ) |
| int fdt_increase_size | ( | void * | fdt, |
| int | add_len | ||
| ) |
Increase the size of the flattened device tree by adding additional length.
| fdt | The pointer to the flattened device tree. |
| add_len | The additional length to be added to the device tree. |
| int fdt_overlay_apply_verbose | ( | void * | fdt, |
| void * | fdto | ||
| ) |
fdt_overlay_apply_verbose - Apply an overlay with verbose error reporting
@fdt: ptr to device tree @fdto: ptr to device tree overlay
Convenience function to apply an overlay and display helpful messages in the case of an error
| 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.
| newval | The pointer to store the new value pointers. |
| count | The number of properties in the data buffer. |
| data | The buffer containing the property values. |
| len | The pointer to store the length of each property value. |
| 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.
| working_fdt | The pointer to the device tree. |
| pathp | The path of the node to start printing from. |
| prop | The property name to print. |
| depth | The maximum depth to traverse while printing. |
|
static |
|
static |