![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|

Go to the source code of this file.
Macros | |
| #define | __packed __attribute__((__packed__)) |
| #define | __aligned(x) __attribute__((__aligned__(x))) |
| #define | MAX_LEVEL 32 /* how deeply nested we will go */ |
| #define | SCRATCHPAD 1024 /* bytes of scratchpad memory */ |
| #define | CMD_FDT_MAX_DUMP 64 |
Functions | |
| 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_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. | |
| int | fdt_increase_size (void *fdt, int add_len) |
| Increase the size of the flattened device tree by adding additional length. | |
: name of the subnode to locate | |
fdt_find_or_add_subnode() - find or possibly add a subnode of a given node @fdt: pointer to the device tree blob @parentoffset: structure block offset of a node fdt_subnode_offset() finds a subnode of the node with a given name. If the subnode does not exist, it will be created. | |
| int | fdt_find_or_add_subnode (void *fdt, int parentoffset, const char *name) |
| int | fdt_overlay_apply_verbose (void *fdt, void *fdto) |
| fdt_overlay_apply_verbose - Apply an overlay with verbose error reporting | |
| #define __aligned | ( | x | ) | __attribute__((__aligned__(x))) |
| #define __packed __attribute__((__packed__)) |
| #define CMD_FDT_MAX_DUMP 64 |
| #define MAX_LEVEL 32 /* how deeply nested we will go */ |
| #define SCRATCHPAD 1024 /* bytes of scratchpad memory */ |
| int fdt_find_or_add_subnode | ( | void * | fdt, |
| int | parentoffset, | ||
| 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. |