mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +03:00
[timer] Formalise the timer API
We now have two implementations for the timer API: one using the time-of-day counter at 40:70 and one using RDTSC. Both make use of timer2_udelay().
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#define IOAPI_X86
|
||||
#define PCIAPI_PCBIOS
|
||||
#define TIMER_PCBIOS
|
||||
#define CONSOLE_PCBIOS
|
||||
|
||||
#endif /* CONFIG_DEFAULTS_PCBIOS_H */
|
||||
|
||||
15
src/config/timer.h
Normal file
15
src/config/timer.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef CONFIG_TIMER_H
|
||||
#define CONFIG_TIMER_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Timer configuration.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config/defaults.h>
|
||||
|
||||
//#undef TIMER_PCBIOS
|
||||
//#define TIMER_RDTSC
|
||||
|
||||
#endif /* CONFIG_TIMER_H */
|
||||
Reference in New Issue
Block a user