Add HPET cputimer.
commitbea6e27816f976132ff7ad7446c0e90406378f9b
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 29 Apr 2009 14:27:27 +0000 (29 22:27 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 29 Apr 2009 14:49:47 +0000 (29 22:49 +0800)
treef89c03a49732017901d64fde91eed917ee4288bc
parent14a023b8d18ae518228cb3f1f22e93296717732e
Add HPET cputimer.

HPET - High Precision Event Timers.  Only main counter is used
currently.  This cputimer should be faster than ACPI-fast24 and
ACPI-safe, so give it highest priority.

HPET is not enabled by default.  You could add "hpet" to
debug.acpi.enabled to enable it.

Obtained-from: FreeBSD
Submitted-by: Dmitry Komissaroff <aunoor@gmail.com> w/ mod from me
Local change:
Try mapping 0x100 bytes HPET register space, if broken ACPI tables
are encountered (like one of my testing box); 0x100 is large enough
to cover the main counter.
sys/dev/acpica5/Makefile
sys/dev/acpica5/acpi_hpet.c [new file with mode: 0644]
sys/dev/acpica5/acpi_hpet.h [new file with mode: 0644]
sys/sys/systimer.h