blob: 6c7785254074ddc063f740ac5fe32b6f416af1a4 [file] [log] [blame]
Gerald Van Baren7cd5da02007-03-31 11:59:59 -04001#ifndef _LIBFDT_ENV_H
2#define _LIBFDT_ENV_H
3
4#include <stddef.h>
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -04005#include <linux/types.h>
6#include <asm/byteorder.h>
7#include <linux/string.h>
Gerald Van Baren7cd5da02007-03-31 11:59:59 -04008
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -04009struct fdt_header *fdt; /* Pointer to the working fdt */
10
11#define fdt32_to_cpu(x) __be32_to_cpu(x)
12#define cpu_to_fdt32(x) __cpu_to_be32(x)
13#define fdt64_to_cpu(x) __be64_to_cpu(x)
14#define cpu_to_fdt64(x) __cpu_to_be64(x)
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040015
16#endif /* _LIBFDT_ENV_H */