Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fdtdump.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <fdt.h>
#include <libfdt_env.h>
#include "util.h"

Go to the source code of this file.

Macros

#define ALIGN(x, a)   (((x) + ((a) - 1)) & ~((a) - 1))
 
#define PALIGN(p, a)   ((void *)(ALIGN((unsigned long)(p), (a))))
 
#define GET_CELL(p)   (p += 4, *((const uint32_t *)(p-4)))
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

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

Definition at line 16 of file fdtdump.c.

#define GET_CELL (   p)    (p += 4, *((const uint32_t *)(p-4)))

Definition at line 18 of file fdtdump.c.

#define PALIGN (   p,
  a 
)    ((void *)(ALIGN((unsigned long)(p), (a))))

Definition at line 17 of file fdtdump.c.

Function Documentation

int main ( int  argc,
char argv[] 
)

Definition at line 146 of file fdtdump.c.