added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / devs / afs / os_aros_support.h
blob8a009aca65efbfe966475b0f41c3cf3d578f8a1b
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;
43 UBYTE moff_time;
46 #define IOHF_MOTOR_OFF (1<<0)
47 #define IOHF_MEDIA_CHANGE (1<<1)
48 #define IOHF_DISK_IN (1<<2)
49 #define IOHF_TRACKDISK (1<<3)
51 void checkDeviceFlags(struct AFSBase *);
53 #endif