-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed battery status red indicator issue, remove some code in BTST me…
…thod that access the second variable of NBST.
- Loading branch information
Showing
22 changed files
with
143 additions
and
22 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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,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) | ||
} | ||
} | ||
} | ||
} |
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,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) | ||
} | ||
} | ||
} | ||
} | ||
} |
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