全哥1993 发表于 2016-11-12 15:14

dsdt修错:7540, 6126, syntax error, unexpected PARSEOP_OPERATIONREGION, expectin

错误1:7540, 6126, syntax error, unexpected PARSEOP_OPERATIONREGION, expecting ',' or ')'错误2:7544, 6126, syntax error, unexpected ')'
错误3:7553, 6126, syntax error, unexpected PARSEOP_ELSE

原文: Method (_Q90, 0, NotSerialized)
                  {
                        If (LEqual (\_SB.GGIV (0x02010005), 0x01))
                        {
                            If (LEqual (\_SB.PCI0.LPC.EC.ASBF, One))
                            {
                              If (LNotEqual (\_SB.PCI0.RP09.PEGP.BADR (0xFFFFFFFF OperationRegion (AMSA, SystemMemory), \_SB.PCI0.RP09.PEGP.BADR (0x00010000), Field (AMSA, AnyAcc, NoLock, Preserve)
                                                {
                                                    Offset (0x53F0),
                                                    ASBT,   8
                                              }))
                              {
                                    If (LNotEqual (ASBT, 0x83))
                                    {
                                        Store (0x83, ASBT)
                                    }
                              }
                            }
                        }
                      Else
                        {
                            Store (Zero, \_SB.PCI0.LPC.EC.ASBF)
                        }
                  }
错误4:10256, 6126, syntax error, unexpected PARSEOP_SCOPE, expecting $end and premature End-Of-File

原文: Device (HDEF)
            {
                Name (_ADR, 0x001F0003)
                Name (_S3D, 0x03)
                Name (RID, 0x00)
                Method (_DSM, 4, NotSerialized)
                {
                  ADBG ("HDAS _DSM")
                  If (PCIC (Arg0))
                  {
                        Return (PCID (Arg0, Arg1, Arg2, Arg3))
                  }

                  Return (0x00)
                }
            }

            Device (HECI)
            {
                Name (_ADR, 0x00160000)
                Name (_S3D, 0x03)
                Name (RID, 0x00)
                Method (_DSM, 4, Serialized)
                {
                  If (PCIC (Arg0))
                  {
                        Return (PCID (Arg0, Arg1, Arg2, Arg3))
                  }

                  Return (0x00)
                }
            }
      }


   Scope (\_SB.PCI0.LPC.EC)
      {
            Name (BDEV, 0xFF)
            Name (BSTS, 0x00)
            Name (BHKE, 0x00)
            Method (_Q2C, 0, NotSerialized)
            {
                If (LEqual (BSTS, 0x00))
                {
                  Store (BGID (0x00), BDEV)
                  NBRE (BDEV)
                }
            }

            Method (_Q2D, 0, NotSerialized)
            {
                Store (BGID (0x00), BDEV)
                NBIN (BDEV)
            }

            Method (_Q38, 0, NotSerialized)
            {
                Store (BGID (0x00), Local0)
                If (LEqual (Local0, 0x0F))
                {
                  BDIS ()
                  \BHDP (0x01, 0x00)
                  NBEJ (BDEV)
                  Store (Local0, BDEV)
                  If (LEqual (\BIDE, 0x03))
                  {
                        Store (0x00, \_SB.PCI0.SAT1.PRIM.GTME)
                        Store (0x00, \_SB.PCI0.SAT1.SCND.GTME)
                  }
                }
                Else
                {
                  If (HPBU) {}
                  Else
                  {
                        Store (Local0, BDEV)
                        NBIN (Local0)
                  }
                }
            }

limurphy 发表于 2016-11-12 18:47


試試:

zsjyzx 发表于 2016-11-12 21:33

修改了一下,看看吧。

全哥1993 发表于 2017-5-23 22:38

看到了!谢谢大家

dyflying 发表于 2018-7-23 17:16

谢谢分享看一下。。。

happy_D 发表于 2019-5-13 23:29

谢谢分享!!!!!

metalmanic 发表于 2020-1-21 14:11

谢谢分享!!!!!

metalmanic 发表于 2020-1-21 14:16

谢谢分享!!!!!

supperzl 发表于 2020-1-22 15:41

试一下 谢谢楼主

momojack 发表于 2020-2-26 20:58

同样的报错。学习了
页: [1]
查看完整版本: dsdt修错:7540, 6126, syntax error, unexpected PARSEOP_OPERATIONREGION, expectin