Gerald Van Baren | c0577a6 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 1 | #ifndef _LIBFDT_ENV_H |
| 2 | #define _LIBFDT_ENV_H |
| 3 | |
| 4 | #include <stddef.h> |
Gerald Van Baren | 6c1da53 | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | #include <asm/byteorder.h> |
| 7 | #include <linux/string.h> |
| 8 | |
| 9 | struct fdt_header *fdt; /* Pointer to the working fdt */ |
Gerald Van Baren | c0577a6 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 10 | |
Gerald Van Baren | 6c1da53 | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 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 Baren | c0577a6 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 15 | |
| 16 | #endif /* _LIBFDT_ENV_H */ |