summaryrefslogtreecommitdiffstats
path: root/src/include/unistd.h
diff options
context:
space:
mode:
authorAlexey Zaytsev2007-12-01 05:07:01 +0100
committerAlexey Zaytsev2008-03-02 01:15:07 +0100
commit4006d229e50204c93c1aa04c58385ce2e66d597e (patch)
tree1c07ed3523e40304e0c4b81aaa33c6316d1bd11a /src/include/unistd.h
parent[DHCP] Fix RFC4390 client identifier constructions. (diff)
downloadipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.tar.gz
ipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.tar.xz
ipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.zip
Introduce the new timer subsystem.
Timer subsystem initialization code in core/timer.c Split the BIOS and RTDSC timer drivers from i386_timer.c Split arch/i386/firmware/pcbios/bios.c into the RTSDC timer driver and arch/i386/core/nap.c Split the headers properly: include/unistd.h - delay functions to be used by the gPXE core and drivers. include/gpxe/timer.h - the fimer subsystem interface to be used by the timer drivers and currticks() to be used by the code gPXE subsystems. include/latch.h - removed include/timer.h - scheduled for removal. Some driver are using currticks, which is only for core subsystems. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Diffstat (limited to 'src/include/unistd.h')
-rw-r--r--src/include/unistd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/unistd.h b/src/include/unistd.h
index 35dcf584..7c44a0ce 100644
--- a/src/include/unistd.h
+++ b/src/include/unistd.h
@@ -4,7 +4,7 @@
#include <stddef.h>
#include <stdarg.h>
-extern unsigned int sleep ( unsigned int seconds );
+unsigned int sleep ( unsigned int seconds );
extern int execv ( const char *command, char * const argv[] );
/**
@@ -22,4 +22,10 @@ extern int execv ( const char *command, char * const argv[] );
rc; \
} )
+void udelay(unsigned int usecs);
+void mdelay(unsigned int msecs);
+
+#define usleep(x) udelay(x)
+
+
#endif /* _UNISTD_H */