Tomato-ND 1.21
[tomato.git] / release / src / include / flashutl.h
blob08defcd1bfab3d32e552318d577c13cd70e613e8
1 /*
2 * BCM47XX FLASH driver interface
4 * Copyright 2006, 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.
11 * $Id$
14 #ifndef _flashutl_h_
15 #define _flashutl_h_
18 #ifndef _LANGUAGE_ASSEMBLY
20 int sysFlashInit(char *flash_str);
21 int sysFlashRead(uint off, uchar *dst, uint bytes);
22 int sysFlashWrite(uint off, uchar *src, uint bytes);
23 void nvWrite(unsigned short *data, unsigned int len);
24 void nvWriteChars(unsigned char *data, unsigned int len);
26 #endif /* _LANGUAGE_ASSEMBLY */
28 #endif /* _flashutl_h_ */