SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Functions
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:

Functions

static int fdt_cells (const void *fdt, int nodeoffset, const char *name)
 
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
 
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
 
int fdt_appendprop_addrrange (void *fdt, int parent, int nodeoffset, const char *name, uint64_t addr, uint64_t size)
 

Function Documentation

◆ 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

◆ fdt_appendprop_addrrange()

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

◆ fdt_cells()

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

◆ 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