5 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include <aros/libcall.h>
10 #include <exec/devices.h>
11 #include <exec/semaphores.h>
12 #include <exec/lists.h>
13 #include <exec/ports.h>
19 struct SignalSemaphore sigsem
;
26 struct HostInterface
*iface
;
30 #define HostLibBase hdskBase->HostLibBase
35 struct HostDiskBase
*hdskBase
;
41 struct MinList changeints
;
44 #define filename n.ln_Name
47 #define UNIT_READONLY 0x01
48 #define UNIT_DEVICE 0x02
49 #define UNIT_FREENAME 0x04
51 ULONG
Host_Open(struct unit
*Unit
);
52 void Host_Close(struct unit
*Unit
);
53 LONG
Host_Read(struct unit
*Unit
, APTR buf
, ULONG size
, ULONG
*ioerr
);
54 LONG
Host_Write(struct unit
*Unit
, APTR buf
, ULONG size
, ULONG
*ioerr
);
55 ULONG
Host_Seek(struct unit
*Unit
, ULONG pos
);
56 ULONG
Host_Seek64(struct unit
*Unit
, ULONG pos
, ULONG pos_hi
);
57 ULONG
Host_GetGeometry(struct unit
*Unit
, struct DriveGeometry
*dg
);
58 int Host_ProbeGeometry(struct HostDiskBase
*hdskBase
, char *name
, struct DriveGeometry
*dg
);