| Mark A. Greer | 6fb4efc | 2006-10-16 13:50:05 -0700 | [diff] [blame] | 1 | /* | 
 | 2 |  * This file adds the header file glue so that the shared files | 
 | 3 |  * flatdevicetree.[ch] can compile and work in the powerpc bootwrapper. | 
 | 4 |  * | 
| Johann Felix Soden | 889c94a | 2008-01-20 14:41:18 +0100 | [diff] [blame] | 5 |  * strncmp & strchr copied from <file:lib/string.c> | 
| Mark A. Greer | 6fb4efc | 2006-10-16 13:50:05 -0700 | [diff] [blame] | 6 |  * Copyright (C) 1991, 1992  Linus Torvalds | 
 | 7 |  * | 
 | 8 |  * Maintained by: Mark A. Greer <mgreer@mvista.com> | 
 | 9 |  */ | 
 | 10 | #ifndef _PPC_BOOT_FLATDEVTREE_ENV_H_ | 
 | 11 | #define _PPC_BOOT_FLATDEVTREE_ENV_H_ | 
 | 12 |  | 
 | 13 | #include <stdarg.h> | 
 | 14 | #include <stddef.h> | 
 | 15 | #include "types.h" | 
 | 16 | #include "string.h" | 
 | 17 | #include "stdio.h" | 
 | 18 | #include "ops.h" | 
 | 19 |  | 
 | 20 | #define be16_to_cpu(x)		(x) | 
 | 21 | #define cpu_to_be16(x)		(x) | 
 | 22 | #define be32_to_cpu(x)		(x) | 
 | 23 | #define cpu_to_be32(x)		(x) | 
 | 24 | #define be64_to_cpu(x)		(x) | 
 | 25 | #define cpu_to_be64(x)		(x) | 
 | 26 |  | 
| Mark A. Greer | 6fb4efc | 2006-10-16 13:50:05 -0700 | [diff] [blame] | 27 | #endif /* _PPC_BOOT_FLATDEVTREE_ENV_H_ */ |