DragonFly-2.3.0.834.gbea6e master sys/dev/acpica5 Makefile acpi_hpet.c acpi_hpet.h sys/sys systimer.h

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Apr 29 07:52:48 PDT 2009


commit bea6e27816f976132ff7ad7446c0e90406378f9b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Apr 29 22:27:27 2009 +0800

    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 at 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.

Summary of changes:
 sys/dev/acpica5/Makefile    |    2 +-
 sys/dev/acpica5/acpi_hpet.c |  380 +++++++++++++++++++++++++++++++++++++++++++
 sys/dev/acpica5/acpi_hpet.h |   66 ++++++++
 sys/sys/systimer.h          |    2 +
 4 files changed, 449 insertions(+), 1 deletions(-)
 create mode 100644 sys/dev/acpica5/acpi_hpet.c
 create mode 100644 sys/dev/acpica5/acpi_hpet.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bea6e27816f976132ff7ad7446c0e90406378f9b


-- 
DragonFly BSD source repository





More information about the Commits mailing list