Skip to content

Commit

Permalink
Update ACPI
Browse files Browse the repository at this point in the history
  • Loading branch information
banhbaoxamlan committed Jun 9, 2021
1 parent 875d7e5 commit 1aaa78e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 19 deletions.
15 changes: 8 additions & 7 deletions Other/Disassembled ACPI/SSDT-DEVICE.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ DefinitionBlock ("", "SSDT", 2, "X230", "DEVICE", 0)
Name (_ALI, 0x012C)
Name (_ALR, Package ()
{
Package ()
{
Package () {
0x64,
0x012C
}
})

Method (_STA, 0, NotSerialized) // _STA: Status
Method (_STA, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
Expand Down Expand Up @@ -53,10 +52,10 @@ DefinitionBlock ("", "SSDT", 2, "X230", "DEVICE", 0)

}

External (_SB.PCI0, DeviceObj)
External (_SB.PCI0.SMBU, DeviceObj)
External (\_SB.PCI0, DeviceObj)
External (\_SB.PCI0.SMBU, DeviceObj)

Scope (_SB.PCI0)
Scope (\_SB.PCI0)
{
Device (MCHC)
{
Expand All @@ -76,12 +75,13 @@ DefinitionBlock ("", "SSDT", 2, "X230", "DEVICE", 0)
}
}

Scope (_SB.PCI0.SMBU)
Scope (\_SB.PCI0.SMBU)
{
Device (BUS0)
{
Name (_CID, "smbus")
Name (_ADR, Zero)

Device (DVL0)
{
Name (_ADR, 0x57)
Expand All @@ -103,6 +103,7 @@ DefinitionBlock ("", "SSDT", 2, "X230", "DEVICE", 0)
})
}
}

Method (_STA, 0, NotSerialized)
{
If (_OSI ("Darwin"))
Expand Down
54 changes: 49 additions & 5 deletions Other/Disassembled ACPI/SSDT-HPET.dsl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
DefinitionBlock ("", "SSDT", 2, "X230", "HPET", 0)
{
External (_SB.PCI0.LPC, DeviceObj)
External (_SB.PCI0.LPC.PIC, DeviceObj)
External (_SB.PCI0.LPC.RTC, DeviceObj)
External (_SB.PCI0.LPC.TIMR, DeviceObj)
External (_SB.PCI0.LPC.HPET, DeviceObj)
External (\_SB.PCI0.LPC, DeviceObj)
External (\_SB.PCI0.LPC.FPU, DeviceObj)
External (\_SB.PCI0.LPC.PIC, DeviceObj)
External (\_SB.PCI0.LPC.RTC, DeviceObj)
External (\_SB.PCI0.LPC.TIMR, DeviceObj)
External (\_SB.PCI0.LPC.HPET, DeviceObj)
External (\HPET, FieldUnitObj)

Scope (\_SB.PCI0.LPC.PIC)
Expand All @@ -21,6 +22,21 @@ DefinitionBlock ("", "SSDT", 2, "X230", "HPET", 0)
}
}
}

Scope (\_SB.PCI0.LPC.FPU)
{
Method (_STA, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
Return (Zero)
}
Else
{
Return (0x0F)
}
}
}

Scope (\_SB.PCI0.LPC.RTC)
{
Expand Down Expand Up @@ -130,6 +146,34 @@ DefinitionBlock ("", "SSDT", 2, "X230", "HPET", 0)
}
}

Device (MATH)
{
Name (_HID, EisaId ("PNP0C04"))
Name (_CRS, ResourceTemplate ()
{
IO (Decode16,
0x00F0, // Range Minimum
0x00F0, // Range Maximum
0x01, // Alignment
0x01, // Length
)
IRQNoFlags ()
{13}
})

Method (_STA, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}

Device (RTC0)
{
Name (_HID, EisaId ("PNP0B00"))
Expand Down
12 changes: 5 additions & 7 deletions Other/Disassembled ACPI/SSDT-PNLF.dsl
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
DefinitionBlock ("", "SSDT", 2, "X230", "PNLF", 0)
{
External (RMCF.LEVW, IntObj)

External (_SB.PCI0.VID, DeviceObj)
{
External (\_SB.PCI0.VID, DeviceObj)

Scope (_SB.PCI0.VID)
Scope (\_SB.PCI0.VID)
{
OperationRegion (RMP3, PCI_Config, Zero, 0x14)
}

Scope (_SB)
Scope (\_SB)
{
Device (PNLF)
{
Expand All @@ -34,7 +32,7 @@ DefinitionBlock ("", "SSDT", 2, "X230", "PNLF", 0)
BAR1, 32
}

OperationRegion (RMB1, SystemMemory, And (BAR1, 0xFFFFFFFFFFFFFFF0), 0x000E1184)
OperationRegion (RMB1, SystemMemory, And (BAR1, 0xFFFFFFF0), 0x000E1184)
Field (RMB1, AnyAcc, Lock, Preserve)
{
Offset (0x48250),
Expand Down

0 comments on commit 1aaa78e

Please sign in to comment.