OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / user / netflash / fileblock.h
1 /****************************************************************************/
2
3 /*
4  *      fileblock.h -- common file buffer list
5  */
6
7 /****************************************************************************/
8 #ifndef FILEBLOCK_H
9 #define FILEBLOCK_H 1
10 /****************************************************************************/
11
12 extern void fb_init(unsigned long maxlen);
13 extern unsigned long fb_len(void);
14 extern int fb_seek_set(unsigned long offset);
15 extern int fb_seek_end(unsigned long offset);
16 extern int fb_seek_inc(unsigned long offset);
17 extern int fb_seek_dec(unsigned long offset);
18 extern unsigned long fb_tell(void);
19 extern void fb_throw(unsigned long maxlen, void (* f)(void *, unsigned long));
20 extern int fb_write(const void *data, unsigned long len);
21 extern int fb_peek(void *data, unsigned long len);
22 extern int fb_read(void *data, unsigned long len);
23 extern void *fb_read_block(unsigned long *len);
24 extern int fb_trim(unsigned long len);
25
26 /****************************************************************************/
27 #endif /* FILEBLOCK_H */