From 52e32b2c9f0e5ac7cfb31fd2306e6536340955e1 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 17 Nov 2015 18:23:48 +0100 Subject: Support for 64-bit registes --- pcilib/timing.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pcilib/timing.h (limited to 'pcilib/timing.h') diff --git a/pcilib/timing.h b/pcilib/timing.h new file mode 100644 index 0000000..630df44 --- /dev/null +++ b/pcilib/timing.h @@ -0,0 +1,25 @@ +#ifndef _PCILIB_TIMING_H +#define _PCILIB_TIMING_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +int pcilib_add_timeout(struct timeval *tv, pcilib_timeout_t timeout); +int pcilib_calc_deadline(struct timeval *tv, pcilib_timeout_t timeout); +int pcilib_check_deadline(struct timeval *tve, pcilib_timeout_t timeout); +pcilib_timeout_t pcilib_calc_time_to_deadline(struct timeval *tve); +int pcilib_sleep_until_deadline(struct timeval *tv); +int pcilib_timecmp(struct timeval *tv1, struct timeval *tv2); +pcilib_timeout_t pcilib_timediff(struct timeval *tve, struct timeval *tvs); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _PCILIB_TIMING_H */ -- cgit v1.2.3