blob: c4987598839e653038c40961dafa51507337fe0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _IPXE_EFI_TIMER_H
#define _IPXE_EFI_TIMER_H
/** @file
*
* iPXE timer API for EFI
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#ifdef TIMER_EFI
#define TIMER_PREFIX_efi
#else
#define TIMER_PREFIX_efi __efi_
#endif
/**
* Number of ticks per second
*
* This is a policy decision.
*/
#define EFI_TICKS_PER_SEC 20
/**
* Get number of ticks per second
*
* @ret ticks_per_sec Number of ticks per second
*/
static inline __attribute__ (( always_inline )) unsigned long
TIMER_INLINE ( efi, ticks_per_sec ) ( void ) {
return EFI_TICKS_PER_SEC;
}
#endif /* _IPXE_EFI_TIMER_H */
|