2 * Stubs for NVRAM functions for platforms without flash
4 * Copyright (C) 2013, Broadcom Corporation. All Rights Reserved.
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: nvramstubs.c 401759 2013-05-13 16:08:08Z $
25 #define strcmp(s1,s2) 0 /* always match */
34 #if defined(_CFE_) && defined(BCM_DEVINFO)
36 devinfo_nvram_init(void *sih
)
43 nvram_append(void *sb
, char *vars
, uint varsz
)
54 nvram_get(const char *name
)
60 nvram_set(const char *name
, const char *value
)
66 nvram_unset(const char *name
)
78 nvram_getall(char *buf
, int count
)
80 /* add null string as terminator */
82 return BCME_BUFTOOSHORT
;