time question

From: Bart Vandewoestyne (Bart.Vandewoestyne@pandora.be)
Date: Mon Aug 27 2001 - 02:25:10 EST


I'm trying to port the DOS driver for a data aquisition card to linux
(http::/mc303.ulyssis.org). It is my first linux driver writing
attempt. Somewhere in the code i have the following lines of DOS-code
that do some busy waiting:

_bios_timeofday(_TIME_GETCLOCK,&tb); l = tb;
  while(l-tb < 2) _bios_timeofday(_TIME_GETCLOCK,&l);

What is the best linux equivalent for this?

Thanks,
mc303

-- 
Ing. Bart Vandewoestyne			 Bart.Vandewoestyne@pandora.be
Hugo Verrieststraat 48			       GSM: +32 (0)478 397 697
B-8550 Zwevegem			 http://users.pandora.be/vandewoestyne
----------------------------------------------------------------------
"Any fool can know, the point is to understand." - Albert Einstein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:22 EST