diff options
Diffstat (limited to 'drivers/net/wireless/bcmdhd/include/bcmnvram.h')
-rw-r--r-- | drivers/net/wireless/bcmdhd/include/bcmnvram.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/net/wireless/bcmdhd/include/bcmnvram.h b/drivers/net/wireless/bcmdhd/include/bcmnvram.h index ce0e035..ba22bec 100644 --- a/drivers/net/wireless/bcmdhd/include/bcmnvram.h +++ b/drivers/net/wireless/bcmdhd/include/bcmnvram.h @@ -21,7 +21,7 @@ * software in any way with any other Broadcom software provided under a license * other than the GPL, without Broadcom's express prior written consent. * - * $Id: bcmnvram.h 320632 2012-03-12 19:22:42Z $ + * $Id: bcmnvram.h 364705 2012-10-25 00:42:42Z $ */ #ifndef _bcmnvram_h_ @@ -51,6 +51,7 @@ extern char *nvram_default_get(const char *name); extern int nvram_init(void *sih); +extern int nvram_deinit(void *sih); extern int nvram_append(void *si, char *vars, uint varsz); @@ -80,7 +81,7 @@ nvram_safe_get(const char *name) static INLINE int -nvram_match(char *name, char *match) +nvram_match(const char *name, const char *match) { const char *value = nvram_get(name); return (value && !strcmp(value, match)); @@ -88,7 +89,7 @@ nvram_match(char *name, char *match) static INLINE int -nvram_invmatch(char *name, char *invmatch) +nvram_invmatch(const char *name, const char *invmatch) { const char *value = nvram_get(name); return (value && strcmp(value, invmatch)); @@ -109,6 +110,8 @@ extern int nvram_getall(char *nvram_buf, int count); uint8 nvram_calc_crc(struct nvram_header * nvh); +extern int nvram_space; + #endif @@ -120,6 +123,13 @@ uint8 nvram_calc_crc(struct nvram_header * nvh); #define NVRAM_VERSION 1 #define NVRAM_HEADER_SIZE 20 #define NVRAM_SPACE 0x8000 +#define DEF_NVRAM_SPACE 0x8000 +#ifdef MAX_NVRAM_SPACE +#undef MAX_NVRAM_SPACE +#endif +#define MAX_NVRAM_SPACE NVRAM_SPACE +#define ROM_ENVRAM_SPACE 0x1000 +#define NVRAM_LZMA_MAGIC 0x4c5a4d41 #define NVRAM_MAX_VALUE_LEN 255 #define NVRAM_MAX_PARAM_LEN 64 |