mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] nvram: handle nvram at varying offsets within the eraseblock (fixes Edimax PS-1208mfg with FLSH at offset 0)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22299 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -46,7 +46,8 @@ struct nvram_tuple {
|
||||
struct nvram_handle {
|
||||
int fd;
|
||||
char *mmap;
|
||||
unsigned long length;
|
||||
unsigned int length;
|
||||
unsigned int offset;
|
||||
struct nvram_tuple *nvram_hash[257];
|
||||
struct nvram_tuple *nvram_dead;
|
||||
};
|
||||
@@ -113,7 +114,6 @@ char * nvram_find_staging(void);
|
||||
|
||||
/* NVRAM constants */
|
||||
#define NVRAM_SPACE 0x8000
|
||||
#define NVRAM_START(x) x - NVRAM_SPACE
|
||||
#define NVRAM_MAGIC 0x48534C46 /* 'FLSH' */
|
||||
#define NVRAM_VERSION 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user