-
Notifications
You must be signed in to change notification settings - Fork 477
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
1 parent
1ac2c24
commit 67088a8
Showing
20 changed files
with
14,168 additions
and
1,236 deletions.
There are no files selected for viewing
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,172 @@ | ||
// Necessary hotpatch | ||
// Maintained by: stevezhengshiqi | ||
// Reference: https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311 by Rehabman | ||
// USB power injection and patch USB ports, pair with USBInjectAll.kext | ||
|
||
DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000) | ||
{ | ||
Device (_SB.USBX) | ||
{ | ||
Name (_ADR, Zero) // _ADR: Address | ||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | ||
{ | ||
If (!Arg2) | ||
{ | ||
Return (Buffer (One) | ||
{ | ||
0x03 // . | ||
}) | ||
} | ||
|
||
Return (Package (0x04) | ||
{ | ||
"kUSBSleepPortCurrentLimit", | ||
0x0BB8, | ||
"kUSBWakePortCurrentLimit", | ||
0x0BB8 | ||
}) | ||
} | ||
} | ||
|
||
Device (UIAC) | ||
{ | ||
Name (_HID, "UIA00000") // _HID: Hardware ID | ||
Name (RMCF, Package (0x02) | ||
{ | ||
"8086_9d2f", | ||
Package (0x04) | ||
{ | ||
"port-count", | ||
Buffer (0x04) | ||
{ | ||
0x12, 0x00, 0x00, 0x00 // .... | ||
}, | ||
|
||
"ports", | ||
Package (0x14) | ||
{ | ||
"HS01", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x01, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"HS03", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x03, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"HS04", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x04, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"HS05", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0xFF, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x05, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"HS06", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0xFF, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x06, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"HS09", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x09, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"SS01", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x0D, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"SS02", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x0E, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"SS03", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x0F, 0x00, 0x00, 0x00 // .... | ||
} | ||
}, | ||
|
||
"SS04", | ||
Package (0x04) | ||
{ | ||
"UsbConnector", | ||
0x03, | ||
"port", | ||
Buffer (0x04) | ||
{ | ||
0x10, 0x00, 0x00, 0x00 // .... | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
} | ||
} | ||
|
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
Oops, something went wrong.