Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
libfdt-wrapper.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <page.h>
#include <libfdt.h>
#include "ops.h"

Go to the source code of this file.

Macros

#define DEBUG   0
 
#define BAD_ERROR(err)
 
#define check_err(err)
 
#define offset_devp(off)
 
#define devp_offset_find(devp)   (((int)(devp))-1)
 
#define devp_offset(devp)   (devp ? ((int)(devp))-1 : 0)
 
#define EXPAND_GRANULARITY   1024
 

Functions

void fdt_init (void *blob)
 

Macro Definition Documentation

#define BAD_ERROR (   err)
Value:
(((err) < 0) \
&& ((err) != -FDT_ERR_NOTFOUND) \
&& ((err) != -FDT_ERR_EXISTS))

Definition at line 31 of file libfdt-wrapper.c.

#define check_err (   err)
Value:
({ \
if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \
printf("%s():%d %s\n\r", __func__, __LINE__, \
if (BAD_ERROR(err)) \
exit(); \
(err < 0) ? -1 : 0; \
})

Definition at line 35 of file libfdt-wrapper.c.

#define DEBUG   0

Definition at line 30 of file libfdt-wrapper.c.

#define devp_offset (   devp)    (devp ? ((int)(devp))-1 : 0)

Definition at line 52 of file libfdt-wrapper.c.

#define devp_offset_find (   devp)    (((int)(devp))-1)

Definition at line 51 of file libfdt-wrapper.c.

#define EXPAND_GRANULARITY   1024

Definition at line 57 of file libfdt-wrapper.c.

#define offset_devp (   off)
Value:
({ \
int _offset = (off); \
check_err(_offset) ? NULL : (void *)(_offset+1); \
})

Definition at line 45 of file libfdt-wrapper.c.

Function Documentation

void fdt_init ( void blob)

Definition at line 170 of file libfdt-wrapper.c.