usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src-rt / shared / sromstubs.c
blobe9e0d83dedd17550e1b57995ad684e53d4b83a7f
1 /*
2 * Broadcom Home Networking Division (HND) srom stubs
4 * Should be called bcmsromstubs.c .
6 * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved.
7 *
8 * Permission to use, copy, modify, and/or distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
15 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
17 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
18 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 * $Id: sromstubs.c,v 1.19 2008-12-17 13:32:15 Exp $
23 #include <typedefs.h>
24 #include <osl.h>
25 #include <bcmutils.h>
26 #include <siutils.h>
27 #include <bcmsrom.h>
29 uint8 patch_pair = 0;
31 int
32 srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh, char **vars, uint *count)
34 return 0;
37 int
38 srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf,
39 bool check_crc)
41 return 0;
44 int
45 srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf)
47 return 0;
50 #if defined(WLTEST) || defined(BCMDBG)
51 int
52 srom_otp_write_region_crc(si_t *sih, uint nbytes, uint16* buf16, bool write)
54 return 0;
56 #endif