DSDT和SSDT联合编译发生如下错误,该如何处理,求教!
1、10142 6126systax error,unexpected PARSEOP_NAMESEG,expecting'('2、10197 6126systax error,unexpected PARSEOP_NAMESEG,expecting'('3、102326126 systax error,unexpected PARSEOP_DEVICE,expecting $end and premature End-Of-File
10128 Scope (I2C0) 0129{
Device (ACD0)
{
Name (_ADR, 0x1C)// _ADR: Address
Name (_HID, "INT33CA")// _HID: Hardware ID
Name (_CID, "INT33CA")// _CID: Compatible ID
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33CA")// _DDN: DOS Device Name
Name (_UID, One)// _UID: Unique ID
Name (MCLK, Zero)
Name (SCLK, 0x09)
Name (SSPM, Zero)
Name (RBUF, ResourceTemplate ()
{
10142 I2cSerialBusV2 (0x001C, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, )
{
0x00000025,
}
})
Name (EOD, One)
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Return (RBUF)
}
Method (_SRS, 1, Serialized)// _SRS: Set Resource Settings
{
Store (One, EOD)
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LOr (LNotEqual (CODS, Zero), LNotEqual (ADSD, Zero)))
{
Return (Zero)
}
If (And (EOD, One, EOD))
{
Return (0x0F)
}
Else
{
Return (0x0D)
}
}
Method (_DIS, 0, NotSerialized)// _DIS: Disable Device
{
Store (Zero, EOD)
}
}
Device (ACD1)
{
Name (_ADR, 0x4A)// _ADR: Address
Name (_HID, "INT33C9")// _HID: Hardware ID
Name (_CID, "INT33C9")// _CID: Compatible ID
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33C9")// _DDN: DOS Device Name
Name (_UID, One)// _UID: Unique ID
Name (MCLK, 0x06)
Name (SCLK, Zero)
Name (SSPM, One)
Name (RBUF, ResourceTemplate ()
{
10197 I2cSerialBusV2 (0x004A, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
})
Name (EOD, One)
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Store (One, EOD)
Return (RBUF)
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LOr (LNotEqual (CODS, One), LNotEqual (ADSD, Zero)))
{
Return (Zero)
}
If (And (EOD, One, EOD))
{
Return (0x0F)
}
Else
{
Return (0x0D)
}
}
Method (_DIS, 0, NotSerialized)// _DIS: Disable Device
{
Store (Zero, EOD)
}
}
10232 Device (ACD2)
{
Name (_ADR, 0x69)// _ADR: Address
Name (_HID, "INT33CB")// _HID: Hardware ID
Name (_CID, "INT33CB")// _CID: Compatible ID
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33CB")// _DDN: DOS Device Name
Name (_UID, One)// _UID: Unique ID
Name (MCLK, 0x18)
Name (SCLK, 0x09)
Name (SSPM, Zero)
Name (RBUF, ResourceTemplate ()
{
I2cSerialBusV2 (0x0069, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly,
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x0033
}
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly,
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x0035
}
Interrupt (ResourceConsumer, Edge, ActiveHigh, ExclusiveAndWake, ,, )
{
0x00000023,
}
Interrupt (ResourceConsumer, Edge, ActiveHigh, ExclusiveAndWake, ,, )
{
0x00000025,
}
})
Name (EOD, One)
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Return (RBUF)
}
Method (_SRS, 1, Serialized)// _SRS: Set Resource Settings
{
Store (One, EOD)
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LOr (LNotEqual (CODS, 0x02), LNotEqual (ADSD, Zero)))
{
Return (Zero)
}
If (And (EOD, One, EOD))
{
Return (0x0F)
}
Else
{
Return (0x0D)
}
}
Method (_DIS, 0, NotSerialized)// _DIS: Disable Device
{
Store (Zero, EOD)
}
}
Device (SHUB)
{
Name (_HID, "INT33D1")// _HID: Hardware ID
Name (_CID, "PNP0C50")// _CID: Compatible ID
Name (_ADR, Zero)// _ADR: Address
Name (_UID, One)// _UID: Unique ID
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LNotEqual (And (SDS0, One), One))
{
Return (Zero)
}
If (LNotEqual (RDGP (0x2E), One))
{
Return (Zero)
}
If (LNotEqual (RDGP (0x2E), One))
{
Return (Zero)
}
If (LAnd (LEqual (RDGP (0x2C), One), LEqual (_HID, "INT33D1")))
{
Return (0x0F)
}
If (LAnd (LEqual (RDGP (0x2C), Zero), LEqual (_HID, "INT33D7")))
{
Return (0x0F)
}
Return (Zero)
}
Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
{
If (LEqual (Arg0, ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
{
If (LEqual (Arg2, Zero))
{
If (LEqual (Arg1, One))
{
Return (Buffer (One)
{
0x03
})
}
}
If (LEqual (Arg2, One))
{
Return (One)
}
}
Else
{
Return (Buffer (One)
{
0x00
})
}
}
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Name (SBFI, ResourceTemplate ()
{
I2cSerialBusV2 (0x0040, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
{
0x0000001C,
}
})
Return (SBFI)
}
}
Device (DFUD)
{
Name (_HID, "INT33D7")// _HID: Hardware ID
Name (_ADR, Zero)// _ADR: Address
Name (_UID, One)// _UID: Unique ID
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LNotEqual (And (SDS0, One), One))
{
Return (Zero)
}
If (LNotEqual (RDGP (0x2E), One))
{
Return (Zero)
}
If (LNotEqual (RDGP (0x2E), One))
{
Return (Zero)
}
If (LAnd (LEqual (RDGP (0x2C), One), LEqual (_HID, "INT33D1")))
{
Return (0x0F)
}
If (LAnd (LEqual (RDGP (0x2C), Zero), LEqual (_HID, "INT33D7")))
{
Return (0x0F)
}
Return (Zero)
}
Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
{
If (LEqual (Arg0, ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
{
If (LEqual (Arg2, Zero))
{
If (LEqual (Arg1, One))
{
Return (Buffer (One)
{
0x03
})
}
}
If (LEqual (Arg2, One))
{
Return (One)
}
}
Else
{
Return (Buffer (One)
{
0x00
})
}
}
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Name (SBFI, ResourceTemplate ()
{
I2cSerialBusV2 (0x0040, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
{
0x0000001C,
}
})
Return (SBFI)
}
}
Device (TPD4)
{
Name (_ADR, Zero)// _ADR: Address
Name (_HID, "MSFT1111")// _HID: Hardware ID
Name (_CID, "PNP0C50")// _CID: Compatible ID
Name (_UID, One)// _UID: Unique ID
Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
{
If (LEqual (Arg0, ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
{
If (LEqual (Arg2, Zero))
{
If (LEqual (Arg1, One))
{
Return (Buffer (One)
{
0x03
})
}
}
If (LEqual (Arg2, One))
{
Return (One)
}
}
Else
{
Return (Buffer (One)
{
0x00
})
}
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LEqual (And (SDS0, 0x04), 0x04))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Name (SBFI, ResourceTemplate ()
{
I2cSerialBusV2 (0x0060, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
{
0x0000001C,
}
})
Return (SBFI)
}
Method (_PRW, 0, NotSerialized)// _PRW: Power Resources for Wake
{
Return (Package (0x02)
{
0x0E,
0x04
})
}
Method (_S3W, 0, NotSerialized)// _S3W: S3 Device Wake State
{
Return (0x03)
}
Method (_S4W, 0, NotSerialized)// _S4W: S4 Device Wake State
{
Return (0x03)
}
Method (_PS0, 0, Serialized)// _PS0: Power State 0
{
ADBG ("TPD4 Ctrlr D0")
WTIN (0x0E, Zero)
Store (One, GO14)
}
Method (_PS3, 0, Serialized)// _PS3: Power State 3
{
ADBG ("TPD4 Ctrlr D3")
WTIN (0x0E, One)
Store (Zero, GO14)
}
}
}
Scope (I2C0)
{
Device (ACD0)
{
Name (_ADR, 0x1C)// _ADR: Address
Name (_HID, "INT33CA")// _HID: Hardware ID
Name (_CID, "INT33CA")// _CID: Compatible ID
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33CA")// _DDN: DOS Device Name
Name (_UID, One)// _UID: Unique ID
Name (MCLK, Zero)
Name (SCLK, 0x09)
Name (SSPM, Zero)
Name (RBUF, ResourceTemplate ()
{
I2cSerialBusV2 (0x001C, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, )
{
0x00000025,
}
})
Name (EOD, One)
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Return (RBUF)
}
Method (_SRS, 1, Serialized)// _SRS: Set Resource Settings
{
Store (One, EOD)
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LOr (LNotEqual (CODS, Zero), LNotEqual (ADSD, Zero)))
{
Return (Zero)
}
If (And (EOD, One, EOD))
{
Return (0x0F)
}
Else
{
Return (0x0D)
}
}
Method (_DIS, 0, NotSerialized)// _DIS: Disable Device
{
Store (Zero, EOD)
}
}
Device (ACD1)
{
Name (_ADR, 0x4A)// _ADR: Address
Name (_HID, "INT33C9")// _HID: Hardware ID
Name (_CID, "INT33C9")// _CID: Compatible ID
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33C9")// _DDN: DOS Device Name
Name (_UID, One)// _UID: Unique ID
Name (MCLK, 0x06)
Name (SCLK, Zero)
Name (SSPM, One)
Name (RBUF, ResourceTemplate ()
{
I2cSerialBusV2 (0x004A, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
})
Name (EOD, One)
Method (_CRS, 0, NotSerialized)// _CRS: Current Resource Settings
{
Store (One, EOD)
Return (RBUF)
}
Method (_STA, 0, NotSerialized)// _STA: Status
{
If (LOr (LNotEqual (CODS, One), LNotEqual (ADSD, Zero)))
{
Return (Zero)
}
If (And (EOD, One, EOD))
{
Return (0x0F)
}
Else
{
Return (0x0D)
}
}
Method (_DIS, 0, NotSerialized)// _DIS: Disable Device
{
Store (Zero, EOD)
}
}
}
我也遇到了这两个error,楼主解决了没?
页:
[1]