Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 881 |
theseven |
1 |
#ifndef __SYS_TIME_H__
|
|
|
2 |
#define __SYS_TIME_H__
|
|
|
3 |
|
|
|
4 |
#include "global.h"
|
|
|
5 |
|
|
|
6 |
#define TIME_AFTER(a, b) ((long)(b) - (long)(a) < 0)
|
|
|
7 |
#define TIME_BEFORE(a, b) TIME_AFTER(b, a)
|
|
|
8 |
#define TIMEOUT_SETUP(a) (read_usec_timer() + a)
|
|
|
9 |
#define TIMEOUT_EXPIRED(a) TIME_AFTER(read_usec_timer(), a)
|
|
|
10 |
|
|
|
11 |
extern void time_init();
|
|
|
12 |
extern unsigned int read_usec_timer();
|
|
|
13 |
extern int64_t read_usec_timer64();
|
|
|
14 |
extern void udelay(unsigned int microseconds);
|
|
|
15 |
|
|
|
16 |
#endif
|