nvram.h File Reference

Contains various values used for reading/writing nvram settings. More...

This graph shows which files directly or indirectly include this file:

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_headernvram_header
 header data for nvram
struct nvram_tuple * nvram_tuples [NVRAM_PAIRS]
 array of pointers to tuples


Detailed Description

Contains various values used for reading/writing nvram settings.

Id
nvram.h 1485 2008-08-15 19:44:02Z brylow

Definition in file nvram.h.


Function Documentation

char* nvramGet ( char *  name  ) 

Find the value of a variable.

Parameters:
*name name of variable to find
Returns:
pointer to beginning of value

Definition at line 117 of file nvram.c.

References NULL, nvram_tuples, nvramHash(), nvramInit(), OK, and strlen().

Referenced by etherInit(), and xsh_nvram().

Here is the call graph for this function:

Here is the caller graph for this function:

devcall nvramInit ( void   ) 

Initialize the nvram variable structures for editing.

Returns:
OK on success, SYSERR on failure

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Wed Aug 27 06:08:57 2008 for Embedded XINU by  doxygen 1.5.5