MOS Source Code
Loading...
Searching...
No Matches
libfdt_internal.h File Reference
#include <fdt.h>
+ Include dependency graph for libfdt_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FDT_ALIGN(x, a)
 
#define FDT_TAGALIGN(x)
 
#define FDT_RO_PROBE(fdt)
 
#define FDT_SW_MAGIC   (~FDT_MAGIC)
 
#define FDT_ASSUME_MASK   0
 
#define can_assume(_assume)
 

Enumerations

enum  {
  ASSUME_PERFECT = 0xff , ASSUME_VALID_DTB = 1 << 0 , ASSUME_VALID_INPUT = 1 << 1 , ASSUME_LATEST = 1 << 2 ,
  ASSUME_NO_ROLLBACK = 1 << 3 , ASSUME_LIBFDT_ORDER = 1 << 4 , ASSUME_LIBFDT_FLAWLESS = 1 << 5
}
 

Functions

int32_t fdt_ro_probe_ (const void *fdt)
 
int fdt_check_node_offset_ (const void *fdt, int offset)
 
int fdt_check_prop_offset_ (const void *fdt, int offset)
 
const char * fdt_find_string_ (const char *strtab, int tabsize, const char *s)
 
int fdt_node_end_offset_ (void *fdt, int nodeoffset)
 
static const voidfdt_offset_ptr_ (const void *fdt, int offset)
 
static voidfdt_offset_ptr_w_ (void *fdt, int offset)
 
static const struct fdt_reserve_entryfdt_mem_rsv_ (const void *fdt, int n)
 
static struct fdt_reserve_entryfdt_mem_rsv_w_ (void *fdt, int n)
 
static uint32_t fdt32_ld_ (const fdt32_t *p)
 
static uint64_t fdt64_ld_ (const fdt64_t *p)
 
static bool can_assume_ (int mask)
 

Macro Definition Documentation

◆ FDT_ALIGN

#define FDT_ALIGN ( x,
a )
Value:
(((x) + (a) - 1) & ~((a) - 1))

Definition at line 10 of file libfdt_internal.h.

Referenced by fdt_blocks_misordered_(), fdt_create_with_flags(), fdt_open_into(), and fdt_packblocks_().

◆ FDT_TAGALIGN

#define FDT_TAGALIGN ( x)

◆ FDT_RO_PROBE

#define FDT_RO_PROBE ( fdt)

◆ FDT_SW_MAGIC

#define FDT_SW_MAGIC   (~FDT_MAGIC)

◆ FDT_ASSUME_MASK

#define FDT_ASSUME_MASK   0

Definition at line 75 of file libfdt_internal.h.

Referenced by can_assume_().

◆ can_assume

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ASSUME_PERFECT 
ASSUME_VALID_DTB 
ASSUME_VALID_INPUT 
ASSUME_LATEST 
ASSUME_NO_ROLLBACK 
ASSUME_LIBFDT_ORDER 
ASSUME_LIBFDT_FLAWLESS 

Definition at line 89 of file libfdt_internal.h.

Function Documentation

◆ fdt_ro_probe_()

int32_t fdt_ro_probe_ ( const void * fdt)

Definition at line 18 of file fdt.c.

Referenced by fdt_get_name(), and fdt_get_string().

◆ fdt_check_node_offset_()

int fdt_check_node_offset_ ( const void * fdt,
int offset )

Definition at line 223 of file fdt.c.

Referenced by fdt_add_property_(), fdt_first_property_offset(), fdt_get_name(), and fdt_next_node().

+ Here is the call graph for this function:

◆ fdt_check_prop_offset_()

int fdt_check_prop_offset_ ( const void * fdt,
int offset )

Definition at line 235 of file fdt.c.

Referenced by fdt_get_property_by_offset_(), and fdt_next_property_offset().

+ Here is the call graph for this function:

◆ fdt_find_string_()

const char * fdt_find_string_ ( const char * strtab,
int tabsize,
const char * s )

Definition at line 315 of file fdt.c.

Referenced by fdt_find_add_string_(), and fdt_find_add_string_().

+ Here is the call graph for this function:

◆ fdt_node_end_offset_()

int fdt_node_end_offset_ ( void * fdt,
int nodeoffset )

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_offset_ptr_()

static const void * fdt_offset_ptr_ ( const void * fdt,
int offset )
inlinestatic

◆ fdt_offset_ptr_w_()

static void * fdt_offset_ptr_w_ ( void * fdt,
int offset )
inlinestatic

Definition at line 31 of file libfdt_internal.h.

Referenced by fdt_add_property_(), fdt_add_subnode_namelen(), fdt_del_node(), fdt_finish(), and fdt_grab_space_().

+ Here is the call graph for this function:

◆ fdt_mem_rsv_()

static const struct fdt_reserve_entry * fdt_mem_rsv_ ( const void * fdt,
int n )
inlinestatic

Definition at line 36 of file libfdt_internal.h.

Referenced by fdt_mem_rsv(), and fdt_mem_rsv_w_().

◆ fdt_mem_rsv_w_()

static struct fdt_reserve_entry * fdt_mem_rsv_w_ ( void * fdt,
int n )
inlinestatic

Definition at line 44 of file libfdt_internal.h.

Referenced by fdt_add_mem_rsv(), and fdt_del_mem_rsv().

+ Here is the call graph for this function:

◆ fdt32_ld_()

static uint32_t fdt32_ld_ ( const fdt32_t * p)
inlinestatic

Definition at line 58 of file libfdt_internal.h.

Referenced by fdt_get_phandle(), fdt_get_property_by_offset_(), fdt_get_property_namelen_(), fdt_getprop_by_offset(), and fdt_getprop_namelen().

+ Here is the call graph for this function:

◆ fdt64_ld_()

static uint64_t fdt64_ld_ ( const fdt64_t * p)
inlinestatic

Definition at line 63 of file libfdt_internal.h.

Referenced by fdt_get_mem_rsv(), and fdt_num_mem_rsv().

+ Here is the call graph for this function:

◆ can_assume_()

static bool can_assume_ ( int mask)
inlinestatic

can_assume_() - check if a particular assumption is enabled

@mask: Mask to check (ASSUME_...)

Returns
true if that assumption is enabled, else false

Definition at line 184 of file libfdt_internal.h.