-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 218ddbc
Showing
3,276 changed files
with
135,356 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
/POST-EFI/EFI/OC/Config-DualBoot-temp.plist |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,389 @@ | ||
// Instead of providing patched DSDT/SSDT, just include a single SSDT | ||
// and do the rest of the work in config.plist | ||
|
||
// A bit experimental, and a bit more difficult with laptops, but | ||
// still possible. | ||
|
||
// Note: No solution for missing IAOE here, but so far, not a problem. | ||
|
||
DefinitionBlock("", "SSDT", 2, "hack", "_HACK", 0) | ||
{ | ||
|
||
|
||
// External (AR02, IntObj) | ||
// External (PR02, IntObj) | ||
// External (AR0A, IntObj) | ||
// External (PR0A, IntObj) | ||
// External (AR0B, IntObj) | ||
// External (PR0B, IntObj) | ||
|
||
// External (PR03, IntObj) | ||
// External (PR04, IntObj) | ||
// External (PR05, IntObj) | ||
// External (PICM, IntObj) | ||
// External(_SB.PCI0.PEG0, DeviceObj) | ||
// | ||
// Scope(\_SB.PCI0.PEG0) | ||
// { | ||
// Method (_PRT, 0, NotSerialized) | ||
// { | ||
// If (_OSI ("Darwin")) | ||
// { | ||
// Return (PR03) | ||
// } | ||
// Else | ||
// { | ||
// If (PICM) | ||
// { | ||
// Return (AR02) | ||
// } | ||
|
||
// Return (PR02) | ||
// } | ||
|
||
// } | ||
// } | ||
// | ||
// External(_SB.PCI0.PEG1, DeviceObj) | ||
// | ||
// Scope(\_SB.PCI0.PEG1) | ||
// { | ||
// Method (_PRT, 0, NotSerialized) | ||
// { | ||
// If (_OSI ("Darwin")) | ||
// { | ||
// Return (PR04) | ||
// } | ||
// Else | ||
// { | ||
// If (PICM) | ||
// { | ||
// Return (AR0A) | ||
// } | ||
|
||
// Return (PR0A) | ||
// } | ||
|
||
// } | ||
// } | ||
// | ||
// External(_SB.PCI0.PEG2, DeviceObj) | ||
// | ||
// Scope(\_SB.PCI0.PEG2) | ||
// { | ||
// Method (_PRT, 0, NotSerialized) | ||
// { | ||
// If (_OSI ("Darwin")) | ||
// { | ||
// Return (PR05) | ||
// } | ||
// Else | ||
// { | ||
// If (PICM) | ||
// { | ||
// Return (AR0B) | ||
// } | ||
|
||
// Return (PR0B) | ||
// } | ||
// | ||
// } | ||
// } | ||
|
||
|
||
|
||
// | ||
// Keyboard/Trackpad | ||
// | ||
|
||
External(_SB.PCI0.LPCB.PS2K, DeviceObj) | ||
External(_SB.PCI0.LPCB.EC0, DeviceObj) | ||
External(_SB.PCI0.LPCB.EC0.XQ11, MethodObj) | ||
External(_SB.PCI0.LPCB.EC0.XQ12, MethodObj) | ||
External(TPDF, FieldUnitObj) | ||
|
||
Scope(_SB.PCI0.LPCB.EC0) | ||
{ | ||
// The native _Qxx methods in DSDT are renamed XQxx, | ||
// so notifications from the EC driver will land here. | ||
|
||
// _Q11 called on brightness down key | ||
Method(_Q11) | ||
{ | ||
If (_OSI ("Darwin")) | ||
{ | ||
// Brightness Down | ||
If (LNotEqual(TPDF,0x08)) | ||
{ | ||
// Synaptics/ALPS | ||
Notify(\_SB.PCI0.LPCB.PS2K, 0x0405) | ||
} | ||
Else | ||
{ | ||
// Other(ELAN) | ||
Notify(\_SB.PCI0.LPCB.PS2K, 0x20) | ||
} | ||
} Else { | ||
\_SB.PCI0.LPCB.EC0.XQ11() | ||
} | ||
} | ||
//_Q12 called on brightness up key | ||
Method(_Q12) | ||
{ | ||
If (_OSI ("Darwin")) | ||
{ | ||
// Brightness Up | ||
If (LNotEqual(TPDF,0x08)) | ||
{ | ||
// Synaptics/ALPS | ||
Notify(\_SB.PCI0.LPCB.PS2K, 0x0406) | ||
} | ||
Else | ||
{ | ||
// Other(ELAN) | ||
Notify(\_SB.PCI0.LPCB.PS2K, 0x10) | ||
} | ||
} Else { | ||
\_SB.PCI0.LPCB.EC0.XQ12() | ||
} | ||
} | ||
} | ||
|
||
// | ||
// Battery Status | ||
// | ||
|
||
// External(_SB.PCI0.LPCB.EC, DeviceObj) | ||
|
||
// Scope(_SB.PCI0.LPCB.EC) | ||
// { | ||
// // This is an override for battery methods that access EC fields | ||
// // larger than 8-bit. | ||
// | ||
// External(ERBD, FieldUnitObj) | ||
|
||
// OperationRegion (RMEC, EmbeddedControl, 0x5D, 2) | ||
// Field (RMEC, ByteAcc, Lock, Preserve) | ||
// { | ||
// ERI0,8,ERI1,8, | ||
// } | ||
// | ||
// External(FAMX, MutexObj) | ||
// | ||
// // FANG and FANW are renamed to XANG and XANW | ||
// // calls to them will land here | ||
// Method (FANG, 1, NotSerialized) | ||
// { | ||
// Acquire (FAMX, 0xFFFF) | ||
// Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) | ||
// Store (ERBD, Local0) | ||
// Release (FAMX) | ||
// Return (Local0) | ||
// } | ||
|
||
// Method (FANW, 2, NotSerialized) | ||
// { | ||
// Acquire (FAMX, 0xFFFF) | ||
// Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) | ||
// Store (Arg1, ERBD) | ||
// Release (FAMX) | ||
// Return (Arg1) | ||
// } | ||
// | ||
// Method (\B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) } | ||
// | ||
// Method (WE1B, 2, Serialized) | ||
// { | ||
// OperationRegion(ERAM, EmbeddedControl, Arg0, 1) | ||
// Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 } | ||
// Store(Arg1, BYTE) | ||
// } | ||
// Method (WECB, 3, Serialized) | ||
// // Arg0 - offset in bytes from zero-based EC | ||
// // Arg1 - size of buffer in bits | ||
// // Arg2 - value to write | ||
// { | ||
// 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) | ||
// } | ||
// } | ||
// Method (RE1B, 1, Serialized) | ||
// { | ||
// OperationRegion(ERAM, EmbeddedControl, Arg0, 1) | ||
// Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 } | ||
// Return(BYTE) | ||
// } | ||
// Method (RECB, 2, Serialized) | ||
// // Arg0 - offset in bytes from zero-based EC | ||
// // Arg1 - size of buffer in bits | ||
// { | ||
// 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) | ||
// } | ||
|
||
// External(CTSL, PkgObj) | ||
// External(CFMX, MutexObj) | ||
// External(\SMID, FieldUnitObj) | ||
// External(\SMIC, FieldUnitObj) | ||
// External(\SFNO, FieldUnitObj) | ||
// External(\BFDT, FieldUnitObj) | ||
// External(\CAVR, FieldUnitObj) | ||
// External(\STDT, FieldUnitObj) | ||
// | ||
// External(SMAD, FieldUnitObj) | ||
// External(SMCM, FieldUnitObj) | ||
// External(SMPR, FieldUnitObj) | ||
// External(SMST, FieldUnitObj) | ||
|
||
// External(\P80H, FieldUnitObj) | ||
// External(BCNT, FieldUnitObj) | ||
|
||
// // CFUN is renamed XFUN | ||
// // calls to it will land here | ||
|
||
// Method (CFUN, 4, Serialized) | ||
// { | ||
// Store(Arg3, Local0) //REVIEW: just to remove the warning (Arg3 is not used) | ||
|
||
// Name (ESRC, 0x05) | ||
// If (LNotEqual (Match (CTSL, MEQ, DerefOf (Index (Arg0, Zero)), MTR, | ||
// Zero, Zero), Ones)) | ||
// { | ||
// Acquire (CFMX, 0xFFFF) | ||
// Store (Arg0, SMID) | ||
// Store (Arg1, SFNO) | ||
// Store (Arg2, BFDT) | ||
// Store (0xCE, SMIC) | ||
// Release (CFMX) | ||
// } | ||
// Else | ||
// { | ||
// If (LEqual (DerefOf (Index (Arg0, Zero)), 0x10)) | ||
// { | ||
// If (LEqual (DerefOf (Index (Arg1, Zero)), One)) | ||
// { | ||
// CreateByteField (Arg2, Zero, CAPV) | ||
// Store (CAPV, CAVR) | ||
// Store (One, STDT) | ||
// } | ||
// Else | ||
// { | ||
// If (LEqual (DerefOf (Index (Arg1, Zero)), 0x02)) | ||
// { | ||
// Store (Buffer (0x80) {}, Local0) | ||
// CreateByteField (Local0, Zero, BFD0) | ||
// Store (0x11, BFD0) | ||
// Store (One, STDT) | ||
// Store (Local0, BFDT) | ||
// } | ||
// Else | ||
// { | ||
// Store (Zero, STDT) | ||
// } | ||
// } | ||
// } | ||
// Else | ||
// { | ||
// If (LEqual (DerefOf (Index (Arg0, Zero)), 0x18)) | ||
// { | ||
// Acquire (CFMX, 0xFFFF) | ||
// If (LEqual (DerefOf (Index (Arg1, Zero)), 0x02)) | ||
// { | ||
// WECB(0x64,256,Zero) | ||
// Store (DerefOf (Index (Arg2, One)), SMAD) | ||
// Store (DerefOf (Index (Arg2, 0x02)), SMCM) | ||
// Store (DerefOf (Index (Arg2, Zero)), SMPR) | ||
// While (LAnd (Not (LEqual (ESRC, Zero)), Not (LEqual (And (SMST, 0x80), 0x80)))) | ||
// { | ||
// Sleep (0x14) | ||
// Subtract (ESRC, One, ESRC) | ||
// } | ||
|
||
// Store (SMST, Local2) | ||
// If (LEqual (And (Local2, 0x80), 0x80)) | ||
// { | ||
// Store (Buffer (0x80) {}, Local1) | ||
// Store (Local2, Index (Local1, Zero)) | ||
// If (LEqual (Local2, 0x80)) | ||
// { | ||
// Store (0xC4, P80H) | ||
// Store (BCNT, Index (Local1, One)) | ||
// Store (RECB(0x64,256), Local3) | ||
// Store (DerefOf (Index (Local3, Zero)), Index (Local1, 0x02)) | ||
// Store (DerefOf (Index (Local3, One)), Index (Local1, 0x03)) | ||
// Store (DerefOf (Index (Local3, 0x02)), Index (Local1, 0x04)) | ||
// Store (DerefOf (Index (Local3, 0x03)), Index (Local1, 0x05)) | ||
// Store (DerefOf (Index (Local3, 0x04)), Index (Local1, 0x06)) | ||
// Store (DerefOf (Index (Local3, 0x05)), Index (Local1, 0x07)) | ||
// Store (DerefOf (Index (Local3, 0x06)), Index (Local1, 0x08)) | ||
// Store (DerefOf (Index (Local3, 0x07)), Index (Local1, 0x09)) | ||
// Store (DerefOf (Index (Local3, 0x08)), Index (Local1, 0x0A)) | ||
// Store (DerefOf (Index (Local3, 0x09)), Index (Local1, 0x0B)) | ||
// Store (DerefOf (Index (Local3, 0x0A)), Index (Local1, 0x0C)) | ||
// Store (DerefOf (Index (Local3, 0x0B)), Index (Local1, 0x0D)) | ||
// Store (DerefOf (Index (Local3, 0x0C)), Index (Local1, 0x0E)) | ||
// Store (DerefOf (Index (Local3, 0x0D)), Index (Local1, 0x0F)) | ||
// Store (DerefOf (Index (Local3, 0x0E)), Index (Local1, 0x10)) | ||
// Store (DerefOf (Index (Local3, 0x0F)), Index (Local1, 0x11)) | ||
// Store (DerefOf (Index (Local3, 0x10)), Index (Local1, 0x12)) | ||
// Store (DerefOf (Index (Local3, 0x11)), Index (Local1, 0x13)) | ||
// Store (DerefOf (Index (Local3, 0x12)), Index (Local1, 0x14)) | ||
// Store (DerefOf (Index (Local3, 0x13)), Index (Local1, 0x15)) | ||
// Store (DerefOf (Index (Local3, 0x14)), Index (Local1, 0x16)) | ||
// Store (DerefOf (Index (Local3, 0x15)), Index (Local1, 0x17)) | ||
// Store (DerefOf (Index (Local3, 0x16)), Index (Local1, 0x18)) | ||
// Store (DerefOf (Index (Local3, 0x17)), Index (Local1, 0x19)) | ||
// Store (DerefOf (Index (Local3, 0x18)), Index (Local1, 0x1A)) | ||
// Store (DerefOf (Index (Local3, 0x19)), Index (Local1, 0x1B)) | ||
// Store (DerefOf (Index (Local3, 0x1A)), Index (Local1, 0x1C)) | ||
// Store (DerefOf (Index (Local3, 0x1B)), Index (Local1, 0x1D)) | ||
// Store (DerefOf (Index (Local3, 0x1C)), Index (Local1, 0x1E)) | ||
// Store (DerefOf (Index (Local3, 0x1D)), Index (Local1, 0x1F)) | ||
// Store (DerefOf (Index (Local3, 0x1E)), Index (Local1, 0x20)) | ||
// Store (DerefOf (Index (Local3, 0x1F)), Index (Local1, 0x21)) | ||
// } | ||
|
||
// Store (Local1, BFDT) | ||
// Store (One, STDT) | ||
// } | ||
// Else | ||
// { | ||
// Store (0xC5, P80H) | ||
// Store (Zero, STDT) | ||
// } | ||
// } | ||
// Else | ||
// { | ||
// Store (0xC6, P80H) | ||
// Store (Zero, STDT) | ||
// } | ||
|
||
// Release (CFMX) | ||
// } | ||
// Else | ||
// { | ||
// Store (Zero, STDT) | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
} | ||
//EOF |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.