Skip to content

Commit

Permalink
libfdt_env.h: add fdt type definitions
Browse files Browse the repository at this point in the history
fdt types are big endian.

Signed-off-by: Kim Phillips <[email protected]>
Cc: Jerry Van Baren <[email protected]>
  • Loading branch information
kimphill authored and gvb committed Feb 8, 2013
1 parent 12e06fe commit 25aca0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/libfdt_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
#define _LIBFDT_ENV_H

#include "compiler.h"
#include "linux/types.h"

extern struct fdt_header *working_fdt; /* Pointer to the working fdt */

typedef __be16 fdt16_t;
typedef __be32 fdt32_t;
typedef __be64 fdt64_t;

#define fdt32_to_cpu(x) be32_to_cpu(x)
#define cpu_to_fdt32(x) cpu_to_be32(x)
#define fdt64_to_cpu(x) be64_to_cpu(x)
Expand Down

0 comments on commit 25aca0f

Please sign in to comment.