mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
env: Move env_valid to env.h
This enum is somewhat widely used to determine if the environment is valid or not. Move it to the common environment header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
1
env/flash.c
vendored
1
env/flash.c
vendored
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <env.h>
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <linux/stddef.h>
|
#include <linux/stddef.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
1
env/nowhere.c
vendored
1
env/nowhere.c
vendored
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <env.h>
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <linux/stddef.h>
|
#include <linux/stddef.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
|
* (C) Copyright 2000-2009
|
||||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
* 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
|
||||||
*
|
*
|
||||||
|
@@ -165,13 +165,6 @@ extern const unsigned char default_environment[];
|
|||||||
#include <env_flags.h>
|
#include <env_flags.h>
|
||||||
#include <search.h>
|
#include <search.h>
|
||||||
|
|
||||||
/* 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 */
|
|
||||||
};
|
|
||||||
|
|
||||||
enum env_location {
|
enum env_location {
|
||||||
ENVL_UNKNOWN,
|
ENVL_UNKNOWN,
|
||||||
ENVL_EEPROM,
|
ENVL_EEPROM,
|
||||||
|
Reference in New Issue
Block a user