Fix MARK module
[tomato.git] / release / src / shared / nvramstubs.c
blob7d9917edcf33d47222fe9c21b4eb095322e39cfa
1 /*
2 * Stubs for NVRAM functions for platforms without flash
4 * Copyright 2004, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 * $Id$
15 #include <typedefs.h>
16 #include <bcmutils.h>
17 #undef strcmp
18 #define strcmp(s1,s2) 0 /* always match */
19 #include <bcmnvram.h>
21 int
22 nvram_init(void *sbh)
24 return 0;
27 int
28 nvram_append(void *sb, char *vars, uint varsz)
30 return 0;
33 void
34 nvram_exit(void *sbh)
38 char *
39 nvram_get(const char *name)
41 return (char *) 0;
44 int
45 nvram_set(const char *name, const char *value)
47 return 0;
50 int
51 nvram_unset(const char *name)
53 return 0;
56 int
57 nvram_commit(void)
59 return 0;
62 int
63 nvram_getall(char *buf, int count)
65 /* add null string as terminator */
66 if (count < 1)
67 return BCME_BUFTOOSHORT;
68 *buf = '\0';
69 return 0;