1 #ifndef _CACHEDIO_PROTOS_H
2 #define _CACHEDIO_PROTOS_H
4 #include <exec/types.h>
5 #include <dos/filehandler.h>
6 #include "blockstructure.h"
8 LONG
read(BLCK block
, UBYTE
*buffer
, ULONG blocks
);
9 LONG
write(BLCK block
, UBYTE
*buffer
, ULONG blocks
);
11 LONG
readbytes(BLCK block
, UBYTE
*buffer
, UWORD offsetinblock
, UWORD bytes
);
12 LONG
writebytes(BLCK block
, UBYTE
*buffer
, UWORD offsetinblock
, UWORD bytes
);
14 LONG
initcachedio(UBYTE
*devicename
, IPTR unit
, ULONG flags
, struct DosEnvec
*de
);
15 void cleanupcachedio(void);
17 LONG
setiocache(ULONG lines
, ULONG readahead
, BYTE copyback
);
18 ULONG
queryiocache_lines(void);
19 ULONG
queryiocache_readaheadsize(void);
20 BYTE
queryiocache_copyback(void);
22 LONG
flushiocache(void);
23 void invalidateiocaches(void);
25 #endif // _CACHEDIO_PROTOS_H