MOS Source Code
Loading...
Searching...
No Matches
fdt_wip.c File Reference
#include "libfdt_env.h"
#include <fdt.h>
#include <libfdt.h>
#include "libfdt_internal.h"
+ Include dependency graph for fdt_wip.c:

Go to the source code of this file.

Functions

int fdt_setprop_inplace_namelen_partial (void *fdt, int nodeoffset, const char *name, int namelen, uint32_t idx, const void *val, int len)
 
int fdt_setprop_inplace (void *fdt, int nodeoffset, const char *name, const void *val, int len)
 
static void fdt_nop_region_ (void *start, int len)
 
int fdt_nop_property (void *fdt, int nodeoffset, const char *name)
 
int fdt_node_end_offset_ (void *fdt, int offset)
 
int fdt_nop_node (void *fdt, int nodeoffset)
 

Function Documentation

◆ fdt_setprop_inplace_namelen_partial()

int fdt_setprop_inplace_namelen_partial ( void * fdt,
int nodeoffset,
const char * name,
int namelen,
uint32_t idx,
const void * val,
int len )

Definition at line 13 of file fdt_wip.c.

Referenced by fdt_setprop_inplace(), overlay_fixup_one_phandle(), and overlay_update_local_node_references().

+ Here is the call graph for this function:

◆ fdt_setprop_inplace()

int fdt_setprop_inplace ( void * fdt,
int nodeoffset,
const char * name,
const void * val,
int len )

Definition at line 33 of file fdt_wip.c.

Referenced by fdt_setprop_inplace_u32(), and fdt_setprop_inplace_u64().

+ Here is the call graph for this function:

◆ fdt_nop_region_()

static void fdt_nop_region_ ( void * start,
int len )
static

Definition at line 51 of file fdt_wip.c.

Referenced by fdt_nop_node(), and fdt_nop_property().

+ Here is the call graph for this function:

◆ fdt_nop_property()

int fdt_nop_property ( void * fdt,
int nodeoffset,
const char * name )

Definition at line 59 of file fdt_wip.c.

+ Here is the call graph for this function:

◆ fdt_node_end_offset_()

int fdt_node_end_offset_ ( void * fdt,
int offset )

Definition at line 73 of file fdt_wip.c.

Referenced by fdt_del_node(), and fdt_nop_node().

+ Here is the call graph for this function:

◆ fdt_nop_node()

int fdt_nop_node ( void * fdt,
int nodeoffset )

fdt_nop_node - replace a node (subtree) with nop tags @fdt: pointer to the device tree blob @nodeoffset: offset of the node to nop

fdt_nop_node() will replace a given node's representation in the blob, including all its subnodes, if any, with FDT_NOP tags, effectively removing it from the tree.

This function will alter only the bytes in the blob which contain the node and its properties and subnodes, and will not alter or move any other part of the tree.

returns: 0, on success -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED, standard meanings

Definition at line 83 of file fdt_wip.c.

+ Here is the call graph for this function: