add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / rom / devs / scsi / timer.h
blobfe6de210870f769aa14c9ba1139a95d5281b106f
1 /*
2 Copyright © 2009-2013, The AROS Development Team. All rights reserved
3 $Id: timer.h 46720 2013-02-28 18:48:18Z sonic $
5 Desc:
6 Lang: English
7 */
9 struct scsiBase;
12 * scsi_OpenTimer
13 * create timerequest to manage timed operations
14 * result
15 * timerequest to be used with any of the calls below
16 * note
17 * only one task can use given timerequest
19 struct IORequest *scsi_OpenTimer(struct scsiBase *base);
22 * scsi_CloseTimer
23 * dispose timerequest; most likely never used ;)
24 * params
25 * tmr - obtained via scsi_OpenTimer()
26 * result
27 * none
29 void scsi_CloseTimer(struct IORequest *tmr);
32 * scsi_Wait
33 * wait for a period of time or a signal
34 * params
35 * tmr - obtained via scsi_OpenTimer()
36 * secs - number of seconds to wait
37 * micro - number of microseconds to wait
38 * sigs - additionally - signal to wait for
39 * result
40 * ULONG signals - if caught before timeout
42 ULONG scsi_WaitTO(struct IORequest* tmr, ULONG secs, ULONG micro, ULONG sigs);
44 BOOL scsi_Calibrate(struct IORequest* tmr, struct scsiBase *base);
47 * scsi_WaitNano
48 * waits for (pretty much) specified amount of time. benchmarked.
49 * params
50 * ns - amount of nanoseconds;
51 * result
52 * none
53 * note
54 * rounds up ns to nearest multiple of 100
56 void scsi_WaitNano(ULONG ns, struct scsiBase *base);