libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / include / flashutl.h
blob25ff252ca1fe02ae09fee5385b9080b43edb0573
1 /*
2 * BCM47XX FLASH driver interface
4 * Copyright 2004, 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_ */