12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef NVRAMPEEK_SOURCE
- #define NVRAMPEEK_SOURCE
- #include <stdio.h>
- #include "../ram/nvram.h"
- #include "../tools/memory.h"
- #include "../tools/symbol.h"
- void nvrampeek (struct config_nvram * config_nvram)
- {
- printf ("TYPE=0x%02X ", LE32TOH (config_nvram->NVRAMTYPE));
- printf ("(%s) ", NVRAMName (LE32TOH (config_nvram->NVRAMTYPE)));
- printf ("PAGE=0x%04X ", LE32TOH (config_nvram->NVRAMPAGE));
- printf ("BLOCK=0x%04X ", LE32TOH (config_nvram->NVRAMBLOCK));
- printf ("SIZE=0x%04X ", LE32TOH (config_nvram->NVRAMSIZE));
- printf ("(%d) ", LE32TOH (config_nvram->NVRAMSIZE));
- printf ("\n");
- return;
- }
- #endif
|