
Hackintosh_From_A_to_Z
.pdfUSB1 - 0x0aa5
USB2 - 0x0aa7
EHC1 - 0x0aa6
EHC2 - 0x0aa9
Пример прописи USB - устройств с комментариями.
В примере USB - устройства переименованы в соответствии с названиями в нативных Маках, это указано в комментариях,
ориентироваться удобно по адресам - например по адресу Name (_ADR, 0x001D0000) в Вашем dsdt будет USB0
Код:
}
Device (UHC1) // Renamed from: USB0
{
Name (_ADR, 0x001D0000)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
disable.
}
}
Name (_PRW, Package (0x02) // Power Resources for
Wake
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
Method
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x34, 0x3a, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (UHC2) // Renamed from: USB1
{
Name (_ADR, 0x001D0001)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
disable.
}
}
Name (_PRW, Package (0x02) // Power Resources for
Wake
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
Method
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x35, 0x3a, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (UHC3) // Renamed from: USB2
{
Name (_ADR, 0x001D0002)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
}
}
Name (_PRW, Package (0x02) // Power Resources for
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
|
}, Local0) |
|
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) |
|
Return (Local0) |
|
} |
|
} |
/* |
Device (USB3) |
{ |
|
disable. |
Name (_ADR, 0x001D0003) |
Method (_S3D, 0, NotSerialized) |
|
{ |
|
If (LEqual (OSFL, 0x02)) |
|
{ |
|
Return (0x02) |
|
} |
|
Return (0x03) |
|
} |
|
Wake |
|
Method |
|
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x36, 0x3a, 0x00, 0x00
}
Name (_PRW, Package (0x02)
{
0x0E,
0x03
})
}
*/
Device (UHC4) // Renamed from: US31
{
Name (_ADR, 0x001A0000)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
disable.
}
}
Name (_PRW, Package (0x02) // Power Resources for
Wake
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
Method
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x37, 0x3a, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (UHC5) // Renamed from: USB4
{
Name (_ADR, 0x001A0001)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
disable.
}
}
Name (_PRW, Package (0x02) // Power Resources for
Wake
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
Method
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x38, 0x3a, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (UHC6) // Renamed from: USB5
{
Name (_ADR, 0x001A0002)
// Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642).
OperationRegion (BAR0, PCI_Config, 0xC4, One) Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2, Offset (0x01)
}
Method (_S3D, 0, NotSerialized) // S3 Device State
{
Return (0x02)
}
Method (_PSW, 1, NotSerialized) // Power State Wake
{
If (Arg0)
{
Store (0x03, USBW) // Monitor port for remote wakeup and connect/disconnect events.
}
Else
{
Store (Zero, USBW) // Monitoring
disable.
}
}
Name (_PRW, Package (0x02) // Power Resources for
Wake
{
0x03,
0x04 // Lowest supported sleep state. })
Method (_DSM, 4, NotSerialized) // Device Specific
Method
{
Store (Package (0x02)
{
"device-id", Buffer (0x02)
{
0x39, 0x3a, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (EHCI) // Renamed from: USBE - Extended with Power Management and Port Wake Capabilities.
{
Name (_ADR, 0x001D0007)
OperationRegion (PMCS, PCI_Config, 0x54, 0x02) // Power Management Control/Status (ICH9R-3169722.pdf / 17.1.19 / page 664).
Field (PMCS, WordAcc, NoLock, Preserve)
{
, 15, PMES, 1
} // Bit 15, PME Status, single bit.
OperationRegion (PWCR, PCI_Config, 0x62, 0x02) // Port Wake Capabilities Register (ICH9R-316972.pdf / 17.1.25 / page 667).
Field (PWCR, AnyAcc, NoLock, Preserve)
{
URE2, 9
}
Method (_PSW, 1, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Store (Zero, URE2) // Clear all bits.
}
If (LEqual (Arg0, One))
{
Store (0x01FF, URE2) // Set bits 0-8
}
}
Name (_PRW, Package (0x02)
{
0x0D,
0x03
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x06)
{
"AAPL,current-available", 0x05DC,
"AAPL,current-extra", 0x04B0,
"AAPL,current-in-sleep", 0x09C4
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}
}
Device (UHCI) // Renamed from: USE2 - Extended with Power Management and Port Wake Capabilities.
{
Name (_ADR, 0x001A0007)
OperationRegion (PMCS, PCI_Config, 0x54, 0x02) // Power Management Control/Status (ICH9R-3169722.pdf / 17.1.19 / page 664).
Field (PMCS, WordAcc, NoLock, Preserve)
{
, 15, PMES, 1
} // Bit 15, PME Status, single bit.
OperationRegion (PWCR, PCI_Config, 0x62, 0x02) // Port Wake Capabilities Register (ICH9R-316972.pdf / 17.1.25 / page 667).
Field (PWCR, AnyAcc, NoLock, Preserve)
{
URE2, 9
}
Method (_PSW, 1, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Store (Zero, URE2) // Clear all bits.
}
If (LEqual (Arg0, One))
{
Store (0x01FF, URE2) // Set bits 0-8
}
}
Name (_PRW, Package (0x02)
{
0x0D,
0x03
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x06)
{
"AAPL,current-available", 0x05DC,
"AAPL,current-extra", 0x04B0,
"AAPL,current-in-sleep", 0x09C4
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0)
}