corrections to scren bar rendering offsets
[AROS.git] / rom / devs / sdcard / timer.h
blobcf01e6c6f503658da31dd999b08bc9d4d0c6fbd9
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 struct SDCardBase;
8 ULONG sdcard_CurrentTime();
9 void sdcard_Udelay(ULONG);
12 * sdcard_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 *sdcard_OpenTimer(struct SDCardBase *SDCardBase);
22 * sdcard_CloseTimer
23 * dispose timerequest; most likely never used ;)
24 * params
25 * tmr - obtained via sdcard_OpenTimer()
26 * result
27 * none
29 void sdcard_CloseTimer(struct IORequest *tmr);
32 * sdcard_Wait
33 * wait for a period of time or a signal
34 * params
35 * tmr - obtained via sdcard_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 sdcard_WaitTO(struct IORequest* tmr, ULONG secs, ULONG micro, ULONG sigs);
45 * sdcard_WaitNano
46 * waits for (pretty much) specified amount of time. benchmarked.
47 * params
48 * ns - amount of nanoseconds;
49 * result
50 * none
51 * note
52 * rounds up ns to nearest multiple of 100
54 void sdcard_WaitNano(ULONG ns, struct SDCardBase *SDCardBase);