Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
libfdt_internal.h File Reference
#include <fdt.h>

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

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

Definition at line 55 of file libfdt_internal.h.

#define FDT_CHECK_HEADER (   fdt)
Value:
{ \
int err; \
if ((err = fdt_check_header(fdt)) != 0) \
return err; \
}

Definition at line 58 of file libfdt_internal.h.

#define FDT_SW_MAGIC   (~FDT_MAGIC)

Definition at line 93 of file libfdt_internal.h.

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

Definition at line 56 of file libfdt_internal.h.

Function Documentation

int _fdt_check_node_offset ( const void fdt,
int  offset 
)

Definition at line 143 of file fdt.c.

int _fdt_check_prop_offset ( const void fdt,
int  offset 
)

Definition at line 152 of file fdt.c.

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

Definition at line 201 of file fdt.c.

int _fdt_node_end_offset ( void fdt,
int  nodeoffset 
)

Definition at line 97 of file fdt_wip.c.