ACPI 描述符示例
本主题包含 ACPI 描述符示例。
注意 对于设备定义(如 CONV) ),仅使用 4 个字符的 ACPI 描述符长度 (。
按钮数组的 ACPI 说明
Device(BTT00N)
{
Method(_HID, 0x0, NotSerialized)
{
Return("ID9000")
}
Name(_CID, "PNP0C40")
Name(_CRS, ResourceTemplate()
{
GpioInt(Edge,
ActiveLow,
SharedAndWake,
PullDefault,
0, "\\_SB.GPIO",
0, ResourceConsumer, ,
RawDataBuffer() {})
{0xE1}
GpioInt(Edge,
ActiveBoth,
SharedAndWake,
PullDefault,
0, "\\_SB.GPIO",
0, ResourceConsumer, ,
RawDataBuffer() {})
{0xE2}
GpioInt(Edge,
ActiveBoth,
Exclusive,
PullDefault,
0, "\\_SB.GPIO",
0, ResourceConsumer, ,
RawDataBuffer() {})
{0xE3}
GpioInt(Edge,
ActiveBoth,
Exclusive,
PullDefault,
0, "\\_SB.GPIO",
0, ResourceConsumer, ,
RawDataBuffer() {})
{0xE4}
GpioInt(Edge,
ActiveBoth,
Exclusive,
PullDefault,
0, "\\_SB.GPIO",
0, ResourceConsumer, ,
RawDataBuffer() {})
{0xE5}
})
}
笔记本电脑/平板电脑模式指示器的 ACPI 说明
Device(CONV)
{
Method(_HID, 0x0, NotSerialized)
{
Return("ID9001")
}
Name(_CID, "PNP0C60")
}
停靠模式指示器的 ACPI 说明
Device(DOCK)
{
Method(_HID, 0x0, NotSerialized)
{
Return("ID9002")
}
Name(_CID, "PNP0C70")
}