Resync with broadcom drivers 5.100.138.20 and utilities.
[tomato.git] / release / src-rt / include / flashutl.h
blob9023f27ce62dd0c58ca04f37c473b921213afa52
1 /*
2 * BCM47XX FLASH driver interface
4 * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved.
5 *
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.
9 *
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.
17 * $Id: flashutl.h,v 13.10 2005-09-07 00:57:49 Exp $
20 #ifndef _flashutl_h_
21 #define _flashutl_h_
24 #ifndef _LANGUAGE_ASSEMBLY
26 int sysFlashInit(char *flash_str);
27 int sysFlashRead(uint off, uchar *dst, uint bytes);
28 int sysFlashWrite(uint off, uchar *src, uint bytes);
29 void nvWrite(unsigned short *data, unsigned int len);
30 void nvWriteChars(unsigned char *data, unsigned int len);
32 #endif /* _LANGUAGE_ASSEMBLY */
34 #endif /* _flashutl_h_ */