2 Copyright © 2013, The AROS Development Team. All rights reserved
6 #include <exec/types.h>
8 #include <hardware/cia.h>
9 #include <aros/debug.h>
14 BOOL
ata_Calibrate(struct IORequest
* tmr
, struct ataBase
*base
)
16 base
->ata_ItersPer100ns
= 1;
20 static void busywait(UWORD cnt
)
31 : : "m" (cnt
) : "d0", "a0");
34 /* Single CIA access = 1 E-clock */
35 void ata_WaitNano(ULONG ns
, struct ataBase
*base
)
38 if (!(SysBase
->AttnFlags
& AFF_68020
))
40 while (ns
>= 65536 * 4) {