-
-
Save meurkens/ad3cb736e01d1701c7b1e727d6e9beaa to your computer and use it in GitHub Desktop.
X250 Hackintosh Battery
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
<dict> | |
<key>ACPI</key> | |
<dict> | |
<key>Add</key> | |
<array> | |
<dict> | |
<key>Comment</key> | |
<string>DSDT.aml</string> | |
<key>Path</key> | |
<string>DSDT.aml</string> | |
<key>Enabled</key> | |
<true/> | |
</dict> |
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
<dict> | |
<key>Comment</key> | |
<string>EC to EC0</string> | |
<key>Count</key> | |
<integer>0</integer> | |
<key>Enabled</key> | |
<true/> | |
<key>Find</key> | |
<data>RUNfXw==</data> | |
<key>Limit</key> | |
<integer>0</integer> | |
<key>Mask</key> | |
<data></data> | |
<key>OemTableId</key> | |
<data>AAAAAA==</data> | |
<key>Replace</key> | |
<data>RUMwXw==</data> | |
<key>ReplaceMask</key> | |
<data></data> | |
<key>Skip</key> | |
<integer>0</integer> | |
<key>TableLength</key> | |
<integer>0</integer> | |
<key>TableSignature</key> | |
<data>AAAAAA==</data> | |
</dict> |
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
4179c4179 | |
< AC10,8,AC11,8, | |
--- | |
> HWAC, 16, | |
4224c4224 | |
< AK00,8,AK01,8, | |
--- | |
> HWAK, 16, | |
5179,5180c5179,5180 | |
< RC00,8,RC01,8, | |
< FC00,8,FC01,8, | |
--- | |
> SBRC, 16, | |
> SBFC, 16, | |
5183,5184c5183,5184 | |
< AC00,8,AC01,8, | |
< BV00,8,BV01,8, | |
--- | |
> SBAC, 16, | |
> SBVO, 16, | |
5192c5192 | |
< SB00,8,SB01,8, | |
--- | |
> SBBM, 16, | |
5194c5194 | |
< CC00,8,CC01,8, | |
--- | |
> SBCC, 16 | |
5200,5201c5200,5201 | |
< DC00,8,DC01,8, | |
< DV00,8,DV01,8, | |
--- | |
> SBDC, 16, | |
> SBDV, 16, | |
5205c5205 | |
< SN00,8,SN01,8 | |
--- | |
> SBSN, 16 | |
5211c5211 | |
< CH00,8,CH01,8,CH02,8,CH03,8 | |
--- | |
> SBCH, 32 | |
5217c5217 | |
< BMNX,128,//SBMN,128 | |
--- | |
> SBMN, 128 | |
5223c5223 | |
< BDNX,128,//SBDN,128 | |
--- | |
> SBDN, 128 | |
5233c5233 | |
< Store (B1B2(SB00,SB01), Local7) | |
--- | |
> Store (SBBM, Local7) | |
5239c5239 | |
< Multiply (B1B2(FC00,FC01), 0x0A, Local1) | |
--- | |
> Multiply (SBFC, 0x0A, Local1) | |
5243c5243 | |
< Store (B1B2(FC00,FC01), Local1) | |
--- | |
> Store (SBFC, Local1) | |
5250c5250 | |
< Multiply (B1B2(DC00,DC01), 0x0A, Local0) | |
--- | |
> Multiply (SBDC, 0x0A, Local0) | |
5254c5254 | |
< Store (B1B2(DC00,DC01), Local0) | |
--- | |
> Store (SBDC, Local0) | |
5263c5263 | |
< ElseIf (B1B2(DV00,DV01)) | |
--- | |
> ElseIf (SBDV) | |
5265c5265 | |
< Divide (0x00030D40, B1B2(DV00,DV01), Local2, Index (Arg1, 0x06)) | |
--- | |
> Divide (0x00030D40, SBDV, Local2, Index (Arg1, 0x06)) | |
5272,5273c5272,5273 | |
< Store (B1B2(DV00,DV01), Index (Arg1, 0x04)) | |
< Store (B1B2(SN00,SN01), Local0) | |
--- | |
> Store (SBDV, Index (Arg1, 0x04)) | |
> Store (SBSN, Local0) | |
5288c5288 | |
< Store (RECB(0xA0,128), Index (Arg1, 0x09)) | |
--- | |
> Store (SBDN, Index (Arg1, 0x09)) | |
5294c5294 | |
< Store (B1B4(CH00,CH01,CH02,CH03), BTYP) /* \_SB_.PCI0.LPC_.EC0_.GBIF.BTYP */ | |
--- | |
> Store (SBCH, BTYP) /* \_SB_.PCI0.LPC_.EC0_.GBIF.BTYP */ | |
5297c5297 | |
< Store (RECB(0xA0,128), Index (Arg1, 0x0C)) | |
--- | |
> Store (SBMN, Index (Arg1, 0x0C)) | |
5343c5343 | |
< Store (B1B2(BV00,BV01), Local3) | |
--- | |
> Store (SBVO, Local3) | |
5346c5346 | |
< Multiply (B1B2(RC00,RC01), 0x0A, Local2) | |
--- | |
> Multiply (SBRC, 0x0A, Local2) | |
5350c5350 | |
< Store (B1B2(RC00,RC01), Local2) | |
--- | |
> Store (SBRC, Local2) | |
5353c5353 | |
< Store (B1B2(AC00,AC01), Local1) | |
--- | |
> Store (SBAC, Local1) | |
6500,6522d6499 | |
< Method (RE1B, 1, NotSerialized) | |
< // Arg0 - offset in bytes from zero-based EC0 | |
< { | |
< OperationRegion(ECOR, EmbeddedControl, Arg0, 1) | |
< Field(ECOR, ByteAcc, NoLock, Preserve) { BYTE, 8 } | |
< Return(BYTE) | |
< } | |
< Method (RECB, 2, Serialized) | |
< // Arg0 - offset in bytes from zero-based EC0 | |
< // 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) | |
< } | |
14819c14796 | |
< If (LOr (And (\RRBF, 0x02), And (B1B2(\_SB.PCI0.LPC.EC0.AC10,\_SB.PCI0.LPC.EC0.AC11), 0x02))) | |
--- | |
> If (LOr (And (\RRBF, 0x02), And (\_SB.PCI0.LPC.EC0.HWAC, 0x02))) | |
14925c14902 | |
< Store (B1B2(\_SB.PCI0.LPC.EC0.AC10,\_SB.PCI0.LPC.EC0.AC11), Local0) | |
--- | |
> Store (\_SB.PCI0.LPC.EC0.HWAC, Local0) | |
16166,16174d16142 | |
< Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) } | |
< Method (B1B4, 4, NotSerialized) | |
< { | |
< Store(Arg3, Local0) | |
< Or(Arg2, ShiftLeft(Local0, 8), Local0) | |
< Or(Arg1, ShiftLeft(Local0, 8), Local0) | |
< Or(Arg0, ShiftLeft(Local0, 8), Local0) | |
< Return(Local0) | |
< } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment