]> git.sur5r.net Git - u-boot/blobdiff - include/environment.h
Standalone Apps: Standalone apps should need only exports.h.
[u-boot] / include / environment.h
index 2c8c4f1575254773bf596521afe8e9feedef6982..3c145af938ab99c98934815bdd09a017e2d7a1dd 100644 (file)
@@ -143,6 +143,9 @@ extern unsigned long nand_env_oob_offset;
 # define ENV_HEADER_SIZE       (sizeof(uint32_t))
 #endif
 
+#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE)
+extern char *env_name_spec;
+#endif
 
 #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
 
@@ -154,6 +157,20 @@ typedef struct environment_s {
        unsigned char   data[ENV_SIZE]; /* Environment data             */
 } env_t;
 
+#ifdef ENV_IS_EMBEDDED
+extern env_t environment;
+#endif /* ENV_IS_EMBEDDED */
+
+extern const unsigned char default_environment[];
+extern env_t *env_ptr;
+
+extern void env_relocate_spec(void);
+extern unsigned char env_get_char_spec(int);
+
+#if defined(CONFIG_NEEDS_MANUAL_RELOC)
+extern void env_reloc(void);
+#endif
+
 #ifndef DO_DEPS_ONLY
 
 #include <search.h>