diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/timer/hpet.c | 12 | ||||
-rw-r--r-- | sys/include/dev/timer/hpet.h | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/timer/hpet.c b/sys/dev/timer/hpet.c index ab30f63..9e9180f 100644 --- a/sys/dev/timer/hpet.c +++ b/sys/dev/timer/hpet.c @@ -128,6 +128,18 @@ hpet_msleep(size_t ms) } int +hpet_usleep(size_t us) +{ + return hpet_sleep(us, 1000000000); +} + +int +hpet_nsleep(size_t ns) +{ + return hpet_sleep(ns, 1000000); +} + +int hpet_init(void) { struct acpi_gas *gas; diff --git a/sys/include/dev/timer/hpet.h b/sys/include/dev/timer/hpet.h index 513444e..98ffb4a 100644 --- a/sys/include/dev/timer/hpet.h +++ b/sys/include/dev/timer/hpet.h @@ -33,6 +33,8 @@ #include <sys/types.h> int hpet_init(void); -void hpet_msleep(size_t ms); +int hpet_msleep(size_t ms); +int hpet_usleep(size_t us); +int hpet_nsleep(size_t ns); #endif /* !_TIMER_HPET_H_ */ |