diff --git a/EFI/OC/ACPI/SSDT-ALS0.aml b/EFI/OC/ACPI/SSDT-ALS0.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-BATT.aml b/EFI/OC/ACPI/SSDT-BATT.aml old mode 100755 new mode 100644 index 8fc3f9b..d2fd9a4 Binary files a/EFI/OC/ACPI/SSDT-BATT.aml and b/EFI/OC/ACPI/SSDT-BATT.aml differ diff --git a/EFI/OC/ACPI/SSDT-DMAC.aml b/EFI/OC/ACPI/SSDT-DMAC.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-FREQ.aml b/EFI/OC/ACPI/SSDT-FREQ.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-GPIO.aml b/EFI/OC/ACPI/SSDT-GPIO.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-GPRW.aml b/EFI/OC/ACPI/SSDT-GPRW.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-HPE0.aml b/EFI/OC/ACPI/SSDT-HPE0.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-MCHC.aml b/EFI/OC/ACPI/SSDT-MCHC.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-MEM2.aml b/EFI/OC/ACPI/SSDT-MEM2.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-PMCR.aml b/EFI/OC/ACPI/SSDT-PMCR.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-PNLF.aml b/EFI/OC/ACPI/SSDT-PNLF.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-PPMC.aml b/EFI/OC/ACPI/SSDT-PPMC.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-PWRB.aml b/EFI/OC/ACPI/SSDT-PWRB.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-RTC0.aml b/EFI/OC/ACPI/SSDT-RTC0.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-SBUS.aml b/EFI/OC/ACPI/SSDT-SBUS.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-SLPB.aml b/EFI/OC/ACPI/SSDT-SLPB.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-TIM0.aml b/EFI/OC/ACPI/SSDT-TIM0.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-XOSI.aml b/EFI/OC/ACPI/SSDT-XOSI.aml old mode 100755 new mode 100644 diff --git a/EFI/OC/ACPI/SSDT-XSPI.aml b/EFI/OC/ACPI/SSDT-XSPI.aml old mode 100755 new mode 100644 diff --git a/USB-hotpatch/SSDT-UIAC.dsl b/USB-hotpatch/SSDT-UIAC.dsl new file mode 100644 index 0000000..fd7de3f --- /dev/null +++ b/USB-hotpatch/SSDT-UIAC.dsl @@ -0,0 +1,73 @@ +// SSDT UIAC +DefinitionBlock ("", "SSDT", 2, "ACDT", "UIAC", 0) +{ + Device (UIAC) + { + Name (_HID, "UIA00000") + + Name (RMCF, Package () + { + // XHC (8086_9d2f) + "XHC", Package () + { + "port-count", Buffer () { 0x0F, 0x00, 0x00, 0x00 }, + "ports", Package () + { + "HS01", Package () + { + "name", Buffer () { "HS01" }, + "UsbConnector", 0, + "port", Buffer () { 0x01, 0x00, 0x00, 0x00 }, + }, + + "HS04", Package () + { + "name", Buffer () { "HS04" }, + "UsbConnector", 0, + "port", Buffer () { 0x04, 0x00, 0x00, 0x00 }, + }, + + "HS06", Package () + { + "name", Buffer () { "HS06" }, + "UsbConnector", 255, + "port", Buffer () { 0x06, 0x00, 0x00, 0x00 }, + }, + + "SS01", Package () + { + "name", Buffer () { "SS01" }, + "UsbConnector", 3, + "port", Buffer () { 0x0D, 0x00, 0x00, 0x00 }, + }, + + "SS02", Package () + { + "name", Buffer () { "SS02" }, + "UsbConnector", 10, + "port", Buffer () { 0x0E, 0x00, 0x00, 0x00 }, + }, + + "SS03", Package () + { + "name", Buffer () { "SS03" }, + "UsbConnector", 3, + "port", Buffer () { 0x0F, 0x00, 0x00, 0x00 }, + }, + }, + }, + }) + + Method (_STA, 0, NotSerialized) + { + If (_OSI ("Darwin")) + { + Return (0x0F) + } + Else + { + Return (Zero) + } + } + } +} diff --git a/USB-hotpatch/SSDT-USBX.dsl b/USB-hotpatch/SSDT-USBX.dsl new file mode 100644 index 0000000..74a436a --- /dev/null +++ b/USB-hotpatch/SSDT-USBX.dsl @@ -0,0 +1,46 @@ +// SSDT USBX +DefinitionBlock ("", "SSDT", 2, "ACDT", "USBX", 0) +{ + Scope (_SB) + { + Device (USBX) + { + Name (_ADR, Zero) // _ADR: Address + + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + If ((Arg2 == Zero)) + { + Return (Buffer (One) + { + 0x03 + }) + } + + Return (Package (0x08) + { + "kUSBSleepPowerSupply", + 0x13EC, + "kUSBSleepPortCurrentLimit", + 0x0834, + "kUSBWakePowerSupply", + 0x13EC, + "kUSBWakePortCurrentLimit", + 0x0834 + }) + } + + Method (_STA, 0, NotSerialized) + { + If (_OSI ("Darwin")) + { + Return (0x0F) + } + Else + { + Return (Zero) + } + } + } + } +} diff --git a/hotpatch/SSDT-BATT.dsl b/hotpatch/SSDT-BATT.dsl index 8396817..fbd9382 100755 --- a/hotpatch/SSDT-BATT.dsl +++ b/hotpatch/SSDT-BATT.dsl @@ -456,29 +456,31 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "BATT", 0) } Store (Local0, Index (DerefOf (Index (NBST, Arg0)), Zero)) - If (And (Local0, One)) - { - If (LOr (LLess (Local3, 0x0190), LGreater (Local3, 0x1964))) - { - Store (DerefOf (Index (DerefOf (Index (NBST, Arg0)), One)), Local5) - If (LOr (LLess (Local5, 0x0190), LGreater (Local5, 0x1964))) - { - Store (0x0D7A, Local3) - } - Else - { - Store (Local5, Local3) - } - } - - Store (0xFFFFFFFF, Local3) - } - ElseIf (LEqual (And (Local0, 0x02), Zero)) - { - Store (Zero, Local3) - } - + //If (And (Local0, One)) + //{ + // If (LOr (LLess (Local3, 0x0190), LGreater (Local3, 0x1964))) + // { + // Store (DerefOf (Index (DerefOf (Index (NBST, Arg0)), One)), Local5) + // If (LOr (LLess (Local5, 0x0190), LGreater (Local5, 0x1964))) + // { + // Store (0x0D7A, Local3) + // } + // Else + // { + // Store (Local5, Local3) + // } + // } + // + // Store (0xFFFFFFFF, Local3) + //} + //ElseIf (LEqual (And (Local0, 0x02), Zero)) + //{ + // Store (Zero, Local3) + //} + + Store (Zero, Local3) Store (Local3, Index (DerefOf (Index (NBST, Arg0)), One)) + Acquire (BTMX, 0xFFFF) And (NGBT, Not (Local7), NGBT) Release (BTMX)