From 16f1e35775c972ba8e02bc2d97d7a2eb333eae1b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 12 Oct 2008 19:56:52 +0100 Subject: [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(). --- src/config/defaults/pcbios.h | 1 + src/config/timer.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/config/timer.h (limited to 'src/config') diff --git a/src/config/defaults/pcbios.h b/src/config/defaults/pcbios.h index df6e93ce2..4cf2d7e42 100644 --- a/src/config/defaults/pcbios.h +++ b/src/config/defaults/pcbios.h @@ -9,6 +9,7 @@ #define IOAPI_X86 #define PCIAPI_PCBIOS +#define TIMER_PCBIOS #define CONSOLE_PCBIOS #endif /* CONFIG_DEFAULTS_PCBIOS_H */ diff --git a/src/config/timer.h b/src/config/timer.h new file mode 100644 index 000000000..7c3f3521d --- /dev/null +++ b/src/config/timer.h @@ -0,0 +1,15 @@ +#ifndef CONFIG_TIMER_H +#define CONFIG_TIMER_H + +/** @file + * + * Timer configuration. + * + */ + +#include + +//#undef TIMER_PCBIOS +//#define TIMER_RDTSC + +#endif /* CONFIG_TIMER_H */ -- cgit v1.2.3-55-g7522