Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2614220
  • 博文数量: 877
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5921
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-05 12:25
个人简介

技术的乐趣在于分享,欢迎多多交流,多多沟通。

文章分类

全部博文(877)

文章存档

2021年(2)

2016年(20)

2015年(471)

2014年(358)

2013年(26)

分类: Windows平台

2015-05-20 18:37:52

ACPI
// CreatorID=MSFT CreatorRev=4.0.0
// FileLength=376 FileChkSum=0xcf


DefinitionBlock("SSDT.AML", "SSDT", 0x01, "Intel_", "ADebTabl", 0x00001000)
{
    Scope(\)
    {
        Name(DPTR, 0x7b39b000)
        Name(EPTR, 0x7b3ab000)
        Name(CPTR, 0x7b39b010)
        Mutex(MMUT, 0x0)
        Method(MDBG, 0x1, Serialized)
        {
            Store(Acquire(MMUT, 0x3e8), Local0)
            If(LEqual(Local0, Zero))
            {
                OperationRegion(ABLK, SystemMemory, CPTR, 0x10)
                Field(ABLK, ByteAcc, NoLock, Preserve)
                {
                    AAAA, 128
                }
                Store(Arg0, AAAA)
                Add(CPTR, 0x10, CPTR)
                If(LNot(LLess(CPTR, EPTR)))
                {
                    Add(DPTR, 0x10, CPTR)
                }
                Release(MMUT)
            }
            Return(Local0)
        }
    }
Scope(\_SB.PCI0.I2C3)
    {
        Device(LED)
        {
            Name(_HID, "LEDCON")
            Name(_UID, 1)


            Method(_CRS, 0x0, NotSerialized)
            {
                Name(RBUF, ResourceTemplate()
                {          
                    I2CSerialBus(0x32, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0, ResourceConsumer) 
I2CSerialBus(0x33, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0, ResourceConsumer) 
I2CSerialBus(0x34, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0, ResourceConsumer) 
I2CSerialBus(0x35, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0, ResourceConsumer) 
                    //GpioInt(Edge, ActiveHigh, Exclusive, PullDown, 0, "\\_SB.GPO2") {0x16}
GpioIo(Exclusive, PullNone, 0, 0,, "\\_SB.GPO2", ,) {0x16}
                })


                Return(RBUF)
            }


            Method(_DSM, 0x4, NotSerialized)
            {
                If(LEqual(Arg0, Buffer(0x10)
                {
                    0x1e, 0x54, 0x81, 0x76, 0x27, 0x88, 0x39, 0x42, 0x8d, 0x9d, 0x36, 0xbe, 0x7f, 0xe1, 0x25, 0x42
                }))
                {
                    If(LEqual(Arg2, Zero))
                    {
                        Return(Buffer(One)
                        {
                            0x03
                        })
                    }


                    If(LEqual(Arg2, One))
                    {
                        Return(Buffer(0x4)
                        {
                            0x00, 0x01, 0x02, 0x03
                        })
                    }
                }
                Else
                {
                    Return(Buffer(One)
                    {
                        0x00
                    })
                }
            } // Method(_DSM ...)


        } // Device(LEDA)
}
}

阅读(684) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~