version 1.1.2.2, 2014/01/28 08:57:43
|
version 1.1.2.3, 2014/01/28 22:03:01
|
Line 2
|
Line 2
|
#include "ub_env.h" |
#include "ub_env.h" |
|
|
|
|
|
static int |
|
ub_flash_io(env_t * __restrict e, int mode) |
|
{ |
|
int f, ret = 0; |
|
|
|
FTRACE(4); |
|
|
|
f = open(DRV_UB_ENV_MAP, mode); |
|
if (f == -1) { |
|
printf("Error:: Can't access u-boot-env device %s\n", DRV_UB_ENV_MAP); |
|
return -1; |
|
} |
|
|
|
if (mode & O_RDWR) { |
|
} else { |
|
} |
|
|
|
close(f); |
|
return ret; |
|
} |
|
|
const char* |
const char* |
ub_getenv(const char *csName) |
ub_getenv(const char *csName) |
{ |
{ |
const char *str = NULL; |
const char *str = NULL; |
|
|
|
FTRACE(3); |
|
|
return str; |
return str; |
} |
} |
|
|
int |
int |
ub_setenv(const char *csName, const char *csValue) |
ub_setenv(const char *csName, const char *csValue) |
{ |
{ |
|
FTRACE(3); |
|
|
return 0; |
return 0; |
} |
} |