2 Copyright © 2009-2013, The AROS Development Team. All rights reserved
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
*ata_OpenTimer(struct ataBase
*base
);
23 * dispose timerequest; most likely never used ;)
25 * tmr - obtained via ata_OpenTimer()
29 void ata_CloseTimer(struct IORequest
*tmr
);
33 * wait for a period of time or a signal
35 * tmr - obtained via ata_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
ata_WaitTO(struct IORequest
* tmr
, ULONG secs
, ULONG micro
, ULONG sigs
);
44 BOOL
ata_Calibrate(struct IORequest
* tmr
, struct ataBase
*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 ata_WaitNano(ULONG ns
, struct ataBase
*base
);