ws00336812 发表于 2017-6-25 18:41

遇上一个错误。不知道怎么改SSDT的错误

提示错误的地方均为0x04。

            Method (_PRW, 0, NotSerialized)// _PRW: Power Resources for Wake
            {
                Return (GPRW)
                0x09
                0x04

----------=-------------------------------------------------代码如下---------------附上ssdt/////

Scope (\_SB.PCI0)
    {
      Name (LTRS, Zero)
      Name (OBFS, Zero)
      Device (PEG0)
      {
            Name (_ADR, 0x00010000)// _ADR: Address
            OperationRegion (PEGR, PCI_Config, 0xC0, 0x30)
            Field (PEGR, DWordAcc, NoLock, Preserve)
            {
                Offset (0x02),
                PSTS,   1,
                Offset (0x2C),
                GENG,   1,
                  ,   1,
                PMEG,   1
            }

            Method (_PRW, 0, NotSerialized)// _PRW: Power Resources for Wake
            {
                Return (GPRW)
                0x09
                0x04
            }

            Method (_PSW, 1, NotSerialized)// _PSW: Power State Wake
            {
                If (Arg0)
                {
                  Store (One, GENG)
                  Store (One, PMEG)
                }
                Else
                {
                  Store (Zero, GENG)
                  Store (Zero, PMEG)
                }
            }

            Method (HPME, 0, Serialized)
            {
                Store (One, PSTS)
            }

            Method (_PRT, 0, NotSerialized)// _PRT: PCI Routing Table
            {
                If (PICM)
                {
                  Return (AR02)
                }

                Return (PR02)
            }

            Method (_INI, 0, NotSerialized)// _INI: Initialize
            {
                Store (LTRA, LTRS)
                Store (OBFA, OBFS)
            }

            Name (LTRV, Package (0x04)
            {
                Zero,
                Zero,
                Zero,
                Zero
            })
            Name (OPTS, Zero)
            Method (_DSM, 4, Serialized)// _DSM: Device-Specific Method
            {
                Name (_T_1, Zero)// _T_x: Emitted by ASL Compiler
                Name (_T_0, Zero)// _T_x: Emitted by ASL Compiler
                While (One)
                {
                  Store (ToInteger (Arg0), _T_0)
                  If (LEqual (_T_0, ToUUID ("e5c937d0-3553-4d7a-9117-ea4d19c3434d") /* Device Labeling Interface */))
                  {
                        While (One)
                        {
                            Store (ToInteger (Arg2), _T_1)
                            If (LEqual (_T_1, Zero))
                            {
                              If (LEqual (Arg1, 0x02))
                              {
                                    Store (One, OPTS)
                                    If (LTRS)
                                    {
                                        Or (OPTS, 0x40, OPTS)
                                    }

                                    If (OBFS)
                                    {
                                        Or (OPTS, 0x10, OPTS)
                                    }

                                    Return (OPTS)
                              }
                              Else
                              {
                                    Return (Zero)
                              }
                            }
                            ElseIf (LEqual (_T_1, 0x04))
                            {
                              If (LEqual (Arg1, 0x02))
                              {
                                    If (OBFS)
                                    {
                                        Return (Buffer (0x10)
                                        {
                                          /* 0000 */0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                          /* 0008 */0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00
                                        })
                                    }
                                    Else
                                    {
                                        Return (Buffer (0x10)
                                        {
                                          /* 0000 */0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                          /* 0008 */0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                                        })
                                    }
                              }
                            }
                            ElseIf (LEqual (_T_1, 0x06))
                            {
                              If (LEqual (Arg1, 0x02))
                              {
                                    If (LTRS)
                                    {
                                        Store (And (ShiftRight (SMSL, 0x0A), 0x07), Index (LTRV, Zero))
                                        Store (And (SMSL, 0x03FF), Index (LTRV, One))
                                        Store (And (ShiftRight (SNSL, 0x0A), 0x07), Index (LTRV, 0x02))
                                        Store (And (SNSL, 0x03FF), Index (LTRV, 0x03))
                                        Return (LTRV)
                                    }
                                    Else
                                    {
                                        Return (Zero)
                                    }
                              }
                            }

                            Break
                        }
                  }

                  Break
                }

                Return (Buffer (One)
                {
                     0x00                                          
                })
            }

            Device (PEGP)
            {
                Name (_ADR, Zero)// _ADR: Address
                Method (_PRW, 0, NotSerialized)// _PRW: Power Resources for Wake
                {
                  Return (GPRW)
                  0x09
                  0x04
                }
            }
      }


ws00336812 发表于 2017-6-27 20:47

{:5_280:}来人看看把。

ws00336812 发表于 2017-6-27 21:17

看样子是没有大神来了。。
页: [1]
查看完整版本: 遇上一个错误。不知道怎么改SSDT的错误