projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
env: Move env_valid to env.h
[oweals/u-boot.git]
/
include
/
env.h
diff --git
a/include/env.h
b/include/env.h
index 42d8bcfa5052623c1b8e957be06ccb36b73579fa..b59c3c36f20238ccd61f38cb1a3772c45e925b24 100644
(file)
--- a/
include/env.h
+++ b/
include/env.h
@@
-1,6
+1,6
@@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
/* SPDX-License-Identifier: GPL-2.0+ */
/*
- * Common environment functions
+ * Common environment functions
and definitions
*
* (C) Copyright 2000-2009
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* (C) Copyright 2000-2009
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@
-14,6
+14,13
@@
struct environment_s;
struct environment_s;
+/* Value for environment validity */
+enum env_valid {
+ ENV_INVALID, /* No valid environment */
+ ENV_VALID, /* First or only environment is valid */
+ ENV_REDUND, /* Redundant environment is valid */
+};
+
/**
* env_get_id() - Gets a sequence number for the environment
*
/**
* env_get_id() - Gets a sequence number for the environment
*
@@
-278,4
+285,11
@@
void env_set_default(const char *s, int flags);
*/
int env_get_char(int index);
*/
int env_get_char(int index);
+/**
+ * env_reloc() - Relocate the 'env' sub-commands
+ *
+ * This is used for those unfortunate archs with crappy toolchains
+ */
+void env_reloc(void);
+
#endif
#endif