找回密码
 加入计匠网
搜索
热搜: BIOS ACPI CPU Windows
查看: 7066|回复: 2

ACPI的问题

[复制链接]
发表于 2008-8-26 14:42:33 | 显示全部楼层 |阅读模式
Control Method的define:% N$ j$ W9 E/ q9 k. j3 f
A control method is a definition of how the OS can perform a simple hardware task. For example, the OS invokes control methods to read the temperature of a thermal zone. Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS. An ACPI-compatible system must provide a minimal set of control methods in the ACPI tables. The OS provides a set of well-defined control methods that ACPI table developers can reference in their control methods. OEMs can support different revisions of chip sets with one BIOS by either including control methods in the BIOS that test configurations and respond as needed or including a different set of control methods for each chip set revision.8 h' H* O* {0 k+ c  s
0 D) y' f8 i, j1 P/ ]; }- R+ w
不好意思,我不是BIOS,可是对BIOS很感兴趣,最近在读ACPI Spec,脑子一团乱。。。; J; z7 \6 v3 k8 P0 L
问题:1,Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS.3 v$ x& G# A& }( P4 g' a
control methods不再在ACPI table里面定义吗?而据我所致ACPI table是用ASL写的呀,那上面control method的定义怎末说control methods是用AML写的呢???
' c9 ~6 R  [) U0 c      2,An ACPI-compatible system must provide a minimal set of control methods in the ACPI tables. The OS provides a set of well-defined control methods that ACPI table developers can reference in their control methods.
. z6 z: [6 A5 o, b. ?! Y2 k到底是谁在提供control methods??  一会儿ACPI table,一会儿OS的
 楼主| 发表于 2008-8-29 17:08:38 | 显示全部楼层
自问自答一个好了。。。
  |/ H  N* [; G5 u$ o* Y1,ACPI control methods can be written in AML, but humans ordinarily write control methods in ASL., T( @" C7 I5 E/ v7 A: O, R
2, 第二个琢磨ing.....
回复

使用道具 举报

发表于 2008-8-30 16:00:38 | 显示全部楼层
1. 写Table的时候用ASL Code,然后用编译器,如iasl,将其编译成AML。OS中的解释器只认识AML Code。
% x( }" e: x1 h- J0 C, I2. Control Mehod是什么?该怎么理解呢?我觉着可以认为他就是一个Method。如果你开发过OS的Driver的话,这就很好理解了。可Driver的时候,你可能会调用OS提供的API,但是你也要向OS提供函数或方法。
9 N- y1 Y" H) y, Z& K, h7 O. Z1 X+ I' G. d' z: {
不知道回答到点上了没有?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入计匠网

本版积分规则

Archiver|手机版|小黑屋|计匠网

GMT+8, 2024-5-19 06:56 , Processed in 0.025113 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表