
Go to the source code of this file.
Data Structures | |
| struct | nvram_header |
| struct | nvram_tuple |
Defines | |
| #define | NVRAM_LOCATION 0xbc3f8000 |
| NVRAM variables are located at base flash + size of flash - 0x8000. | |
| #define | NVRAM_MAGIC 0x48534c46 |
| 'FLSH' in little-endian | |
| #define | NVRAM_SIZE 0x8000 |
| bytes reserved for nvram space | |
| #define | NVRAM_PAIRS 256 |
| maximum number of name=value pairs | |
Functions | |
| devcall | nvramInit (void) |
| Initialize the nvram variable structures for editing. | |
| char * | nvramGet (char *name) |
| Find the value of a variable. | |
Variables | |
| struct nvram_header * | nvram_header |
| header data for nvram | |
| struct nvram_tuple * | nvram_tuples [NVRAM_PAIRS] |
| array of pointers to tuples | |
Definition in file nvram.h.
| char* nvramGet | ( | char * | name | ) |
Find the value of a variable.
| *name | name of variable to find |
Definition at line 117 of file nvram.c.
References NULL, nvram_tuples, nvramHash(), nvramInit(), OK, and strlen().
Referenced by etherInit(), and xsh_nvram().


| devcall nvramInit | ( | void | ) |
Initialize the nvram variable structures for editing.
Definition at line 26 of file nvram.c.
References memcpy(), memget(), NULL, nvram_header, NVRAM_LOCATION, NVRAM_MAGIC, NVRAM_PAIRS, nvram_tuples, nvramInsert(), OK, strlen(), and SYSERR.
Referenced by nvramGet(), sysinit(), and xsh_nvram().


1.5.5