blob: 905a1b82f60786ebe310fb1366d6d9c473521832 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*
* Stubs for NVRAM functions for platforms without flash
*
* Copyright 2007, Broadcom Corporation
* All Rights Reserved.
*
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
* SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
*
* $Id: nvramstubs.c,v 1.1.1.1 2008/07/21 09:20:53 james26_jang Exp $
*/
#include <typedefs.h>
#include <bcmutils.h>
#undef strcmp
#define strcmp(s1,s2) 0 /* always match */
#include <bcmnvram.h>
int
nvram_init(void *sbh)
{
return 0;
}
int
nvram_append(void *sb, char *vars, uint varsz)
{
return 0;
}
void
nvram_exit(void *sbh)
{
}
char *
nvram_get(const char *name)
{
return (char *) 0;
}
int
nvram_set(const char *name, const char *value)
{
return 0;
}
int
nvram_unset(const char *name)
{
return 0;
}
int
nvram_commit(void)
{
return 0;
}
int
nvram_getall(char *buf, int count)
{
/* add null string as terminator */
if (count < 1)
return BCME_BUFTOOSHORT;
*buf = '\0';
return 0;
}
|