Reapplication of sonic's patches originally done in r29201 and r29210:
[tangerine.git] / rom / devs / filesys / afs / os_aros_support.h
blobacf46938eb5ae2ee465da3ed20f9159a50e41bf6
1 #ifndef OS_AROS_H
2 #define OS_AROS_H
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <aros/macros.h>
10 #include <devices/trackdisk.h>
11 #include <dos/dos.h>
12 #include <dos/dosextens.h>
13 #include <dos/exall.h>
14 #include <dos/filehandler.h>
15 #include <dos/filesystem.h>
16 #include <dos/stdio.h>
17 #include <exec/interrupts.h>
18 #include <exec/types.h>
19 #include <aros/debug.h>
20 #include <proto/dos.h>
21 #include "afshandler.h"
23 #define OS_BE2LONG AROS_BE2LONG
24 #define OS_LONG2BE AROS_LONG2BE
26 #define OS_PTRALIGN AROS_PTRALIGN
28 struct IOHandle {
29 STRPTR blockdevice;
30 ULONG unit;
31 ULONG flags;
32 struct MsgPort *mp;
33 struct IOExtTD *ioreq;
34 struct IOExtTD *iochangeint;
35 struct Interrupt mc_int;
36 struct Interrupt vbl_int;
37 struct AFSBase *afsbase; /* for interrupt code */
38 ULONG ioflags;
39 UWORD cmdread;
40 UWORD cmdwrite;
41 UWORD cmdseek;
42 UWORD cmdformat;
45 #define IOHF_MOTOR_OFF (1<<0)
46 #define IOHF_MEDIA_CHANGE (1<<1)
47 #define IOHF_DISK_IN (1<<2)
49 void checkDeviceFlags(struct AFSBase *);
50 void motorOff(struct AFSBase *afsbase, struct IOHandle *ioh);
52 #endif