grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / filesys / afs / os.h
bloba57637686d76c037ed0dc8cdfea4554d367ce396
1 #ifndef OS_SUPPORT_H
2 #define OS_SUPPORT_H
4 /*
5 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #ifdef __AROS__
10 #include "os_aros_support.h"
11 #else
12 #include "os_unix_support.h"
13 #endif
15 struct BlockCache;
16 struct Volume;
18 LONG osMediumInit(struct AFSBase *, struct Volume *, struct BlockCache *);
19 void osMediumFree(struct AFSBase *, struct Volume *, LONG);
20 void remDosNode(struct AFSBase *afsbase, struct DosList *dl);
21 LONG readDisk(struct AFSBase *, struct Volume *, ULONG, ULONG, APTR);
22 LONG writeDisk(struct AFSBase *, struct Volume *, ULONG, ULONG, APTR);
23 UBYTE diskPresent(struct AFSBase *, struct IOHandle *);
24 BOOL diskWritable(struct AFSBase *, struct IOHandle *);
25 ULONG sectorSize(struct AFSBase *, struct IOHandle *);
26 BOOL flush(struct AFSBase *, struct Volume *);
27 struct IOHandle *openBlockDevice(struct AFSBase *, struct IOHandle *);
28 void closeBlockDevice(struct AFSBase *, struct IOHandle *);
29 void check64BitSupport(struct AFSBase *, struct Volume *);
30 LONG attemptAddDosVolume(struct AFSBase *afsbase, struct Volume *volume);
32 #endif