LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Macros | Functions
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)   (((x) + (a) - 1) & ~((a) - 1))
 
#define FDT_TAGALIGN(x)   (FDT_ALIGN((x), FDT_TAGSIZE))
 
#define FDT_CHECK_HEADER(fdt)
 
#define FDT_SW_MAGIC   (~FDT_MAGIC)
 

Functions

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)
 

Macro Definition Documentation

◆ FDT_ALIGN

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

Definition at line 55 of file libfdt_internal.h.

◆ FDT_CHECK_HEADER

#define FDT_CHECK_HEADER (   fdt)
Value:
{ \
int err; \
if ((err = fdt_check_header(fdt)) != 0) \
return err; \
}
int fdt_check_header(const void *fdt)
Definition: fdt.c:58

Definition at line 58 of file libfdt_internal.h.

◆ FDT_SW_MAGIC

#define FDT_SW_MAGIC   (~FDT_MAGIC)

Definition at line 93 of file libfdt_internal.h.

◆ FDT_TAGALIGN

#define FDT_TAGALIGN (   x)    (FDT_ALIGN((x), FDT_TAGSIZE))

Definition at line 56 of file libfdt_internal.h.

Function Documentation

◆ _fdt_check_node_offset()

int _fdt_check_node_offset ( const void *  fdt,
int  offset 
)

Definition at line 143 of file fdt.c.

◆ _fdt_check_prop_offset()

int _fdt_check_prop_offset ( const void *  fdt,
int  offset 
)

Definition at line 152 of file fdt.c.

◆ _fdt_find_string()

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

Definition at line 201 of file fdt.c.

◆ _fdt_node_end_offset()

int _fdt_node_end_offset ( void *  fdt,
int  nodeoffset 
)

Definition at line 97 of file fdt_wip.c.