SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Setup Design Guide<br />
DRAFT<br />
devicepath = 1,<br />
key = RaidControllerNvDataKey;<br />
For additional information on the nvstorage command see section 4.2.7.<br />
The following snapshot is from the definition file containing the #define values as well as the NV<br />
structure definitions. This example shows a structure NvRamMap with the VFR_NV_KEY macro.<br />
The macro uses an NvRamMapKey which has a definition of 0. This then defines a system NV store<br />
structure. Followed immediately after it is a RaidControllerNvData structure definition with the same<br />
macro and the RaidControllerNvDataKey. Since the macro input evaluates to a non-zero value, it by<br />
definition is defining a non-system NV store structure.<br />
#define NvRamMapKey 0<br />
#define RaidControllerNvDataKey 1<br />
struct {<br />
UINT16<br />
SystemPassword[20];<br />
UINT16<br />
ModemInitializationString[60];<br />
UINT8<br />
SerialPortEnable;<br />
UINT16<br />
SamplePieceOfData;<br />
UINT32<br />
MyFavoriteNumber;<br />
} NvRamMap VFR_NV_KEY(NvRamMapKey);<br />
struct {<br />
UINT16<br />
SamplePieceOfData;<br />
UINT32<br />
MyFavoriteNumber;<br />
} RaidControllerNvData VFR_NV_KEY(RaidControllerNvDataKey);<br />
45