CaseySJ
Moderator
- Joined
- Nov 11, 2018
- Messages
- 13,463
- Motherboard
- Gigabyte Z490 Vision D
- CPU
- i5-10400
- Graphics
- RX 580
- Mac
-
- Classic Mac
-
- Mobile Phone
-
Those ports are very easy to add. Let me show you how to add HS02, and you can add the rest by yourself. First let's have a look at the first two ports:thanks for the reply.
Yes, USB SSDT is this one in the attach (directly from your OC 0.6.5's EFI) and, even if it's in compiled form, I can see that HS01, HS02, HS08, HS13 and HS14 are all missing for staying under the 15 ports' limit. That's why I've been asking you the complete .dsl file, I'd like to make different choices according to my BT and my case.
Code:
"ports",
Package (0x1E)
{
"HS03",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x03, 0x00, 0x00, 0x00 // ....
}
},
"HS04",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x04, 0x00, 0x00, 0x00 // ....
}
},
Then we see that there's a Buffer of 4 bytes: 0x03, 0x00, 0x00, 0x00. The first byte 0x03 is the address of this port. Look through all of the ports and you'll see that this is just a serial number that increments by one.
Now look at the Package statement above, which is "Package (0x1E)". This means that inside those curly braces "{ }" there are 0x1E (decimal 30) entries. Each port entry consists of a name such as HS03 and a description block "Package (0x04)". The name is counted as 1 item. The description block (Package) is also counted as 1 item. So each USB port has two items.
Because there are 30 total items in the outermost "Package" statement (0x1E = 30), it means there are 15 ports defined (30 divided by 2 items per port). This is the 15 port limit.
With this little introduction, we can add HS02 easily, like this:
Code:
"HS02",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00 // ....
}
},
We will therefore insert HS02 before HS03 as follows:
Code:
"ports",
Package (0x20)
{
"HS02",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x02, 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 // ....
}
},
After making your own custom SSDT feel free to post it here if you'd like us to verify it. For HS08 and HS13 the "UsbConnector" should be 0x09 because those are USB Type C ports.