1/*
2 * Broadcom Home Networking Division (HND) srom stubs
3 *
4 * Should be called bcmsromstubs.c .
5 *
6 * Copyright (C) 2015, 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.
11 *
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.
19 *
20 * $Id: sromstubs.c 419467 2013-08-21 09:19:48Z $
21 */
22
23#include <typedefs.h>
24#include <osl.h>
25#include <bcmutils.h>
26#include <siutils.h>
27#include <bcmsrom.h>
28
29uint8 patch_pair = 0;
30
31int
32srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh, char **vars, uint *count)
33{
34	return 0;
35}
36
37int
38srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf,
39          bool check_crc)
40{
41	return 0;
42}
43
44int
45srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf)
46{
47	return 0;
48}
49
50void
51srom_var_deinit(si_t *sih)
52{
53}
54
55int
56srom_otp_write_region_crc(si_t *sih, uint nbytes, uint16* buf16, bool write)
57{
58	return 0;
59}
60