您的位置:首页 > 其它

Documentation/timers/hpet.txt

2013-10-16 13:57 756 查看
如果想评论或更新本文的内容,请直接联系原文档的维护者。

如果你使用英文交流有困难的话,也可以向中文版维护者求助。

如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。

中文版维护者: 姚家珺AriosYao
ks666dejia@163.com

中文版翻译者: 姚家珺AriosYao
ks666dejia@163.com

中文版校译者: 姚家珺AriosYao
ks666dejia@163.com

High Precision Event Timer Driver for Linux

The High Precision Event Timer (HPET) hardware follows a specification

by Intel and Microsoft which can be found at

高精度事件定时器(HPET)硬件遵循规范,出处:
http://www.intel.com/hardwaredesign/hpetspec_1.pdf
Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")

and up to 32 comparators.

每个HPET有一个固定速率的计数器(频率在10 MHz以上,因此称为“高精度的计数器”)

以及最多32个比较器。

Normally three or more comparators are provided,each of which can generate oneshot interrupts and at least one of which has

additional hardware to support periodic interrupts.

正常情况下,三个或更多个比较器提供一组服务,其中的每一个比较器都可以产生单稳中断,并且至少其中之一有

额外的硬件支持周期性中断。

The comparators arealso called "timers", which can be misleading since usually timers are

independent of each other ... these share a counter, complicating resets.

该比较器也被称为“定时器”,它容易产生错误,因为通常,定时器是相互独立的...但是这些共用一个计数器和复杂的复位。

HPET devices can support two interrupt routing modes.

HPET设备可以支持两个中断路由模式。

In one mode, the comparators are additional interrupt sources with no particular system role.

在其中一种模式中,比较器是没有特殊系统角色的额外的中断源。

Many x86 BIOS writers don't route HPET interrupts at all, which prevents use of that mode.

许多X86的BIOS写入器不支持的HPET中断,禁止使用该模式。

They support the other "legacy replacement"

mode where the first two comparators block interrupts from 8254 timers and from the RTC.

他们支持另外的“legacy replacement/遗留替换”模式,使得其前两个比较器阻止从8254定时器和的RTC发出的中断。

The driver supports detection of HPET driver allocation and initialization

of the HPET before the driver module_init routine is called.

驱动程序支持的HPET驱动分配和初始化检测前,HPET驱动宏module_init例程会被调用。

This enable splatform code which uses timer 0 or 1 as the main timer to intercept HPET

initialization.

这使splatform的代码使用定时器0或1作为主定时器,拦截HPET初始化。

An example of this initialization can be found in arch/x86/kernel/hpet.c.

这个初始化的一个例子,在arch/x86/kernel/hpet.c。

The driver provides a userspace API which resembles the API found in the

RTC driver framework.

驱动程序提供了一个类似RTC驱动框架API的用户空间API。

An example user space program is provided in file:Documentation/timers/hpet_example.c

一个文件中提供的用户空间的例子:Documentation/timers/hpet_example.c
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: