Documentation/timers/hpet.txt

2024-06-22 07:58
文章标签 documentation timers hpet txt

本文主要是介绍Documentation/timers/hpet.txt,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

如果想评论或更新本文的内容,请直接联系原文档的维护者。
如果你使用英文交流有困难的话,也可以向中文版维护者求助。
如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。
中文版维护者: 姚家珺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

 

这篇关于Documentation/timers/hpet.txt的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1083710

相关文章

oracle数据导出txt及导入txt

oracle数据导出txt及导入txt ORACLE数据导出TXT及从TXT导入: 导出到TXT文件: 1、用PL/SQL DEV打开CMD窗口。 2、spool d:/output.txt; 3、set heading off; --去掉表头 4、select * from usergroup; 5、spool off; www.2ct

c++写txt文件

// Txt_Write.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"#include<iostream>#include<fstream>using namespace std;//将int _tmain(int argc, _TCHAR* argv[]){ofstream in;in.open("shuchu.txt",ios::trunc);/

c++ 读取txt文件

1,按行读取 // TEST_Read.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"#include<iostream>#include<string>#include<fstream>//读取文件所需的文件头//以下为读取文件的一种方法:将文件每行内容存储到字符串中,再输出字符串using namespace std;int _tmain(int

ChatTTS增强版V3【已开源】,长文本修复,中英混读,导入音色,批量SRT、TXT

ChatTTS增强版V3来啦!本次更新增加支持导入SRT、导入音色等功能。结合上次大家反馈的问题,修复了长文本、中英混读等问题。 项目已开源(https://github.com/CCmahua/ChatTTS-Enhanced) 项目介绍 V3 ChatTTS增强版V3,长文本修复,中英混读,导入音色,批量SRT、TXT,代码开源_哔哩哔哩_bilibili V2 ChatTTS

关于ROS包中CMakeList.txt中几个常用的命令的作用 ——————(二)

目录 (5)catkin_package() (6)add_library()    (7)add_dependencies( []...) 接(一)关于ROS包中CMakeList.txt中几个常用的命令的作用 ——————(一)_u012057432的博客-CSDN博客,以下是其他相关的配置命令,有些不是必要的,但是却十分常用,但是也是十分重要的。 (5)catkin_packa

关于ROS包中CMakeList.txt中几个常用的命令的作用 ——————(一)

目录 (1)find_package(catkin REQUIRED  COMPONENTS  ...) (2)include_directories()  (3)add_executable(  src1 src2 ...)   (简易写法) (4)target_link_libraries( lib1  lib2 ...) (简易写法,lib是依赖库的路径) 重点的命令总结:

Documentation/input/cd32.txt

如果想评论或更新本文的内容,请直接联系原文档的维护者。 如果你使用英文交流有困难的话,也可以向中文版维护者求助。 如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。 中文版维护者: 姚家珺AriosYao   ks666dejia@163.com 中文版翻译者: 姚家珺AriosYao   ks666dejia@163.com 中文版校译者: 姚家珺AriosYao   ks666d

Documentation/Filesystem_ext3的中文翻译

Linux内核 文档 翻译Filesystem_ext3Chinese translated version of Documentation/Filesystem_ext3 If you have any comment or update to the content, please contact the original document maintainer directly.  Ho

Documentation_scheduler_sched-rt-group.txt

如果想评论或更新本文的内容,请直接联系原文档的维护者。 如果你使用英文交流有困难的话,也可以向中文版维护者求助。 如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。 中文版维护者: 陶莹莉  tyl18768122426@163.com 中文版翻译者:  陶莹莉  tyl18768122426@163.com 中文版校译者:  陶莹莉  tyl18768122426@163.co

Documentation_lockup-watchdogs.txt

如果想评论或更新本文的内容,请直接联系原文档的维护者。 如果你使用英文交流有困难的话,也可以向中文版维护者求助。 如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。 中文版维护者: 姚家珺AriosYao   ks666dejia@163.com 中文版翻译者: 姚家珺AriosYao   ks666dejia@163.com 中文版校译者: 姚家珺AriosYao