diff options
author | sbrissen <sbrissen@hotmail.com> | 2013-04-24 13:09:33 -0400 |
---|---|---|
committer | sbrissen <sbrissen@hotmail.com> | 2013-04-25 10:50:50 -0400 |
commit | c421809918b7106b40a81134f9fb5103146fc715 (patch) | |
tree | 89b0147d51d2b2650c5ded666a08613ba0cab3c1 /drivers/net/wireless/bcmdhd/include/bcmnvram.h | |
parent | 43aaedbcde478c8e032771d62a1956133b29b1d4 (diff) | |
download | kernel_samsung_smdk4412-c421809918b7106b40a81134f9fb5103146fc715.zip kernel_samsung_smdk4412-c421809918b7106b40a81134f9fb5103146fc715.tar.gz kernel_samsung_smdk4412-c421809918b7106b40a81134f9fb5103146fc715.tar.bz2 |
update bcmdhd driver from GT-9505 Source
drivers pulled from http://review.cyanogenmod.org/#/c/36122/
Change-Id: Ide4aef99ee1d594f4222ae69aca0bdb7d563e80a
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 |