From 50d1478622eaf0e532ec6f3ce6cc06dc8a459369 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sun, 10 Jul 2005 18:00:12 +0000 Subject: [PATCH] added via accelerant, a copy of skeleton driver yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13609 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/via/engine/support.c | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/add-ons/accelerants/via/engine/support.c diff --git a/src/add-ons/accelerants/via/engine/support.c b/src/add-ons/accelerants/via/engine/support.c new file mode 100644 index 0000000000..56eece349f --- /dev/null +++ b/src/add-ons/accelerants/via/engine/support.c @@ -0,0 +1,34 @@ +/* Some commmon support functions */ +/* Mark Watson 2/2000; + * Rudolf Cornelissen 1/2004 */ + +#define MODULE_BIT 0x00000800 + +#include +#include "std.h" + +/*delays in multiple of microseconds*/ +void delay(bigtime_t i) +{ + bigtime_t start=system_time(); + while(system_time()-start