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

Go to the source code of this file.

Functions

static int fdt_cells (const void *fdt, int nodeoffset, const char *name)
 
int fdt_address_cells (const void *fdt, int nodeoffset)
 
int fdt_size_cells (const void *fdt, int nodeoffset)
 
int fdt_appendprop_addrrange (void *fdt, int parent, int nodeoffset, const char *name, uint64_t addr, uint64_t size)
 

Function Documentation

◆ fdt_cells()

static int fdt_cells ( const void * fdt,
int nodeoffset,
const char * name )
static

Definition at line 14 of file fdt_addresses.c.

Referenced by fdt_address_cells(), and fdt_size_cells().

+ Here is the call graph for this function:

◆ fdt_address_cells()

int fdt_address_cells ( const void * fdt,
int nodeoffset )

fdt_address_cells - retrieve address size for a bus represented in the tree @fdt: pointer to the device tree blob @nodeoffset: offset of the node to find the address size for

When the node has a valid #address-cells property, returns its value.

returns: 0 <= n < FDT_MAX_NCELLS, on success 2, if the node has no #address-cells property -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid #address-cells property -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED, standard meanings

Definition at line 34 of file fdt_addresses.c.

Referenced by fdt_appendprop_addrrange().

+ Here is the call graph for this function:

◆ fdt_size_cells()

int fdt_size_cells ( const void * fdt,
int nodeoffset )

fdt_size_cells - retrieve address range size for a bus represented in the tree @fdt: pointer to the device tree blob @nodeoffset: offset of the node to find the address range size for

When the node has a valid size-cells property, returns its value.

returns: 0 <= n < FDT_MAX_NCELLS, on success 1, if the node has no size-cells property -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid size-cells property -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED, standard meanings

Definition at line 46 of file fdt_addresses.c.

Referenced by fdt_appendprop_addrrange().

+ Here is the call graph for this function:

◆ fdt_appendprop_addrrange()

int fdt_appendprop_addrrange ( void * fdt,
int parent,
int nodeoffset,
const char * name,
uint64_t addr,
uint64_t size )

Definition at line 57 of file fdt_addresses.c.

+ Here is the call graph for this function: