2 Copyright © 2009, The AROS Development Team. All rights reserved
11 * ---------- ------------------ -------------------------------------------------------------------
12 * 2005-03-05 T. Wiszkowski created file; initial benchmarked nanowait and timer-based micro/sec wait
17 * create timerequest to manage timed operations
19 * timerequest to be used with any of the calls below
21 * only one task can use given timerequest
23 struct IORequest
*ahci_OpenTimer();
27 * dispose timerequest; most likely never used ;)
29 * tmr - obtained via ahci_OpenTimer()
33 void ahci_CloseTimer(struct IORequest
*tmr
);
37 * wait for a period of time or a signal
39 * tmr - obtained via ahci_OpenTimer()
40 * secs - number of seconds to wait
41 * micro - number of microseconds to wait
42 * sigs - additionally - signal to wait for
44 * ULONG signals - if caught before timeout
46 ULONG
ahci_WaitTO(struct IORequest
* tmr
, ULONG secs
, ULONG micro
, ULONG sigs
);
50 * waits for (pretty much) specified amount of time. benchmarked.
52 * ns - amount of nanoseconds;
56 * rounds up ns to nearest multiple of 100
58 void ahci_WaitNano(ULONG ns
);