Skip to content

Commit

Permalink
Update DSDT, Kext
Browse files Browse the repository at this point in the history
Update DSDT, XOSI to _OSI, AR9462’s Bluetooth cause sleep issue. Use
DSDT-XOSI.aml instead
Upload kext, USBInjectAll Fix usb
  • Loading branch information
Ardentwheel committed Dec 24, 2016
1 parent fc4d634 commit a1998cc
Show file tree
Hide file tree
Showing 21 changed files with 18,288 additions and 79 deletions.
Binary file added EFI/CLOVER/ACPI/patched/DSDT-XOSI.aml
Binary file not shown.
11,706 changes: 11,706 additions & 0 deletions EFI/CLOVER/ACPI/patched/DSDT-XOSI.dsl

Large diffs are not rendered by default.

Binary file modified EFI/CLOVER/ACPI/patched/DSDT.aml
Binary file not shown.
86 changes: 62 additions & 24 deletions EFI/CLOVER/ACPI/patched/DSDT.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
External (PDC6, IntObj)
External (PDC7, IntObj)
External (TNOT, MethodObj) // Warning: Unknown method, guessing 0 arguments
External (XOSI, MethodObj) // 1 Arguments (from opcode)

Name (SS1, Zero)
Name (SS2, Zero)
Expand Down Expand Up @@ -1497,7 +1496,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
{
Return (^XHC.POSC (Arg1, Arg2, Arg3))
}
ElseIf (XOSI ("Windows 2012"))
ElseIf(LOr(_OSI("Darwin"),_OSI("Windows 2012")))
{
If (LEqual (XCNT, Zero))
{
Expand Down Expand Up @@ -2292,7 +2291,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
SMST, 8,
SMAD, 8,
SMCM, 8,
SMD0, 256,
SMDX,256,//SMD0,256,
BCNT, 8,
SMAA, 8,
BATD, 16,
Expand Down Expand Up @@ -3349,6 +3348,46 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
Store (0xB3, SSMP)
}
}
Method (RE1B, 1, NotSerialized)
{
OperationRegion(ERAM, EmbeddedControl, Arg0, 1)
Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }
Return(BYTE)
}
Method (RECB, 2, Serialized)
{
ShiftRight(Arg1, 3, Arg1)
Name(TEMP, Buffer(Arg1) { })
Add(Arg0, Arg1, Arg1)
Store(0, Local0)
While (LLess(Arg0, Arg1))
{
Store(RE1B(Arg0), Index(TEMP, Local0))
Increment(Arg0)
Increment(Local0)
}
Return(TEMP)
}
Method (WE1B, 2, NotSerialized)
{
OperationRegion(ERAM, EmbeddedControl, Arg0, 1)
Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }
Store(Arg1, BYTE)
}
Method (WECB, 3, Serialized)
{
ShiftRight(Arg1, 3, Arg1)
Name(TEMP, Buffer(Arg1) { })
Store(Arg2, TEMP)
Add(Arg0, Arg1, Arg1)
Store(0, Local0)
While (LLess(Arg0, Arg1))
{
WE1B(Arg0, DerefOf(Index(TEMP, Local0)))
Increment(Arg0)
Increment(Local0)
}
}
}

Device (DMAC)
Expand Down Expand Up @@ -5433,7 +5472,8 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)

Method (_WAK, 1, Serialized) // _WAK: Wake
{
Store (Zero, P80D)
If (LOr(LLess(Arg0,1),LGreater(Arg0,5))) { Store(3,Arg0) }
Store (Zero, P80D)
If (IGDS)
{
If (\_SB.PCI0.LPCB.EC0.LIDT)
Expand Down Expand Up @@ -5724,45 +5764,45 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
Store (0x07D0, OSYS)
If (CondRefOf (\XOSI, Local0))
If (CondRefOf (\_OSI, Local0))
{
If (XOSI ("Linux"))
If (_OSI ("Linux"))
{
Store (0x03E8, OSYS)
Store (One, LINX)
}

If (XOSI ("Windows 2001"))
If (_OSI ("Windows 2001"))
{
Store (0x07D1, OSYS)
}

If (XOSI ("Windows 2001 SP1"))
If (_OSI ("Windows 2001 SP1"))
{
Store (0x07D1, OSYS)
}

If (XOSI ("Windows 2001 SP2"))
If (_OSI ("Windows 2001 SP2"))
{
Store (0x07D2, OSYS)
}

If (XOSI ("Windows 2001.1"))
If (_OSI ("Windows 2001.1"))
{
Store (0x07D3, OSYS)
}

If (XOSI ("Windows 2006"))
If (_OSI ("Windows 2006"))
{
Store (0x07D6, OSYS)
}

If (XOSI ("Windows 2009"))
If (_OSI ("Windows 2009"))
{
Store (0x07D9, OSYS)
}

If (XOSI ("Windows 2012"))
If(LOr(_OSI("Darwin"),_OSI("Windows 2012")))
{
Store (0x07DC, OSYS)
}
Expand Down Expand Up @@ -6778,7 +6818,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
Return (UPCA)
}

Device (PR11)
Device (PR21)
{
Name (_ADR, One) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand Down Expand Up @@ -6808,7 +6848,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}
}

Device (PR12)
Device (PR22)
{
Name (_ADR, 0x02) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand All @@ -6824,7 +6864,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}
}

Device (PR13)
Device (PR23)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand All @@ -6840,7 +6880,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}
}

Device (PR14)
Device (PR24)
{
Name (_ADR, 0x04) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand All @@ -6856,7 +6896,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}
}

Device (PR15)
Device (PR25)
{
Name (_ADR, 0x05) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand All @@ -6872,7 +6912,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}
}

Device (PR16)
Device (PR26)
{
Name (_ADR, 0x06) // _ADR: Address
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
Expand Down Expand Up @@ -7165,7 +7205,7 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0D,
0x03
0
})
}

Expand Down Expand Up @@ -11658,10 +11698,8 @@ DefinitionBlock ("", "DSDT", 1, "APPLE", "ACRPRDCT", 0x00000000)
}, Arg4)
Return (Zero)
}
Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }

Method (B1B2, 2, NotSerialized)
{
Return (Or (Arg0, ShiftLeft (Arg1, 0x08)))
}

}

30 changes: 30 additions & 0 deletions EFI/CLOVER/config-install.plist
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,47 @@
</dict>
<key>RtVariables</key>
<dict>
<key>ROM</key>
<string>UseMacAddr0</string>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>BiosReleaseDate</key>
<string>05/10/12</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP101.88Z.00EE.B00.1205101839</string>
<key>Board-ID</key>
<string>Mac-C3EC7CD22292981F</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardType</key>
<integer>10</integer>
<key>ChassisAssetTag</key>
<string>MacBook-Aluminum</string>
<key>ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>ChassisType</key>
<string>08</string>
<key>Family</key>
<string>MacBook Pro</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>Mobile</key>
<true/>
<key>ProductName</key>
<string>MacBookPro10,1</string>
<key>SerialNumber</key>
<string>C02K5TV9DKQ1</string>
<key>Trust</key>
<true/>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>
Expand Down
30 changes: 30 additions & 0 deletions EFI/CLOVER/config-noxcpm.plist
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,47 @@
</dict>
<key>RtVariables</key>
<dict>
<key>ROM</key>
<string>UseMacAddr0</string>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>BiosReleaseDate</key>
<string>05/10/12</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP101.88Z.00EE.B00.1205101839</string>
<key>Board-ID</key>
<string>Mac-C3EC7CD22292981F</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardType</key>
<integer>10</integer>
<key>ChassisAssetTag</key>
<string>MacBook-Aluminum</string>
<key>ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>ChassisType</key>
<string>08</string>
<key>Family</key>
<string>MacBook Pro</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>Mobile</key>
<true/>
<key>ProductName</key>
<string>MacBookPro10,1</string>
<key>SerialNumber</key>
<string>C02K5TV9DKQ1</string>
<key>Trust</key>
<true/>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>
Expand Down
30 changes: 30 additions & 0 deletions EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,47 @@
</dict>
<key>RtVariables</key>
<dict>
<key>ROM</key>
<string>UseMacAddr0</string>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>BiosReleaseDate</key>
<string>05/10/12</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP101.88Z.00EE.B00.1205101839</string>
<key>Board-ID</key>
<string>Mac-C3EC7CD22292981F</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardType</key>
<integer>10</integer>
<key>ChassisAssetTag</key>
<string>MacBook-Aluminum</string>
<key>ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>ChassisType</key>
<string>08</string>
<key>Family</key>
<string>MacBook Pro</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>Mobile</key>
<true/>
<key>ProductName</key>
<string>MacBookPro10,1</string>
<key>SerialNumber</key>
<string>C02K5TV9DKQ1</string>
<key>Trust</key>
<true/>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>
Expand Down
Loading

0 comments on commit a1998cc

Please sign in to comment.