w.i.p sdcard device driver for raspi. detects cards but isnt able to send commands...
[AROS.git] / arch / arm-raspi / devs / sdcard / timer.h
blobeebcac36632251dd24afd21774bd568cb9ba36c4
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 struct SDCardBase;
8 /*
9 * sdcard_OpenTimer
10 * create timerequest to manage timed operations
11 * result
12 * timerequest to be used with any of the calls below
13 * note
14 * only one task can use given timerequest
16 struct IORequest *sdcard_OpenTimer(struct SDCardBase *SDCardBase);
19 * sdcard_CloseTimer
20 * dispose timerequest; most likely never used ;)
21 * params
22 * tmr - obtained via sdcard_OpenTimer()
23 * result
24 * none
26 void sdcard_CloseTimer(struct IORequest *tmr);
29 * sdcard_Wait
30 * wait for a period of time or a signal
31 * params
32 * tmr - obtained via sdcard_OpenTimer()
33 * secs - number of seconds to wait
34 * micro - number of microseconds to wait
35 * sigs - additionally - signal to wait for
36 * result
37 * ULONG signals - if caught before timeout
39 ULONG sdcard_WaitTO(struct IORequest* tmr, ULONG secs, ULONG micro, ULONG sigs);
42 * sdcard_WaitNano
43 * waits for (pretty much) specified amount of time. benchmarked.
44 * params
45 * ns - amount of nanoseconds;
46 * result
47 * none
48 * note
49 * rounds up ns to nearest multiple of 100
51 void sdcard_WaitNano(ULONG ns, struct SDCardBase *SDCardBase);