2 Copyright © 2009-2013, The AROS Development Team. All rights reserved
3 $Id: timer.h 46720 2013-02-28 18:48:18Z sonic $
13 * create timerequest to manage timed operations
15 * timerequest to be used with any of the calls below
17 * only one task can use given timerequest
19 struct IORequest
*scsi_OpenTimer(struct scsiBase
*base
);
23 * dispose timerequest; most likely never used ;)
25 * tmr - obtained via scsi_OpenTimer()
29 void scsi_CloseTimer(struct IORequest
*tmr
);
33 * wait for a period of time or a signal
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
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
);
48 * waits for (pretty much) specified amount of time. benchmarked.
50 * ns - amount of nanoseconds;
54 * rounds up ns to nearest multiple of 100
56 void scsi_WaitNano(ULONG ns
, struct scsiBase
*base
);