1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 OperationRegion (XPRT, SystemMemory, BASE(_ADR), 0x100)
4 Field (XPRT, ByteAcc, NoLock, Preserve)
7 Offset(0x74), /* 0x74, XHCI CFG Power Control And Status */
8 D0D3, 2, /* 0x74 BIT[1:0] */
10 PMEE, 1, /* PME Enable */
12 PMES, 1, /* PME Status */
15 Method (_PS0, 0, Serialized)
17 If (\_SB.PCI0.TXHC.PMEE == 1) {
18 /* Clear PME_EN of CPU xHCI */
19 \_SB.PCI0.TXHC.PMEE = 0
23 Method (_PS3, 0, Serialized)
25 If (\_SB.PCI0.TXHC.PMEE == 0) {
26 /* Set PME_EN of CPU xHCI */
27 \_SB.PCI0.TXHC.PMEE = 1
31 Method (_S0W, 0x0, NotSerialized)
33 #if CONFIG(D3COLD_SUPPORT)
37 #endif // D3COLD_SUPPORT
41 * Variable to skip TCSS/TBT D3 cold; 1+: Skip D3CE, 0 - Enable D3CE
42 * TCSS D3 Cold and TBT RTD3 is only available when system power state is in S0.
46 #if CONFIG(D3COLD_SUPPORT)
49 Return (Package () { \_SB.PCI0.D3C })
54 Return (Package () { \_SB.PCI0.D3C })
56 #endif // D3COLD_SUPPORT
59 * XHCI controller _DSM method
61 Method (_DSM, 4, serialized)
63 Return (Buffer() { 0 })
67 * _SXD and _SXW methods
69 Method (_S3D, 0, NotSerialized)
74 Method (_S4D, 0, NotSerialized)
79 Method (_S3W, 0, NotSerialized)
84 Method (_S4W, 0, NotSerialized)
90 * Power resource for wake
94 Return (Package() { 0x6D, 4 })
102 C2PM (Arg0, Arg1, Arg2, DCPM)
103 /* If entering Sx (Arg1 > 1), need to skip TCSS D3Cold & TBT RTD3/D3Cold. */
108 * xHCI Root Hub Device
114 /* High Speed Ports */
120 /* Super Speed Ports */
124 Method (_DSD, 0, NotSerialized)
128 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
131 Package (2) { "usb4-host-interface", \_SB.PCI0.TDM0 },
132 Package (2) { "usb4-port-number", 0 }
141 Method (_DSD, 0, NotSerialized)
145 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
148 Package (2) { "usb4-host-interface", \_SB.PCI0.TDM0 },
149 Package (2) { "usb4-port-number", 1 }
158 Method (_DSD, 0, NotSerialized)
162 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
165 Package (2) { "usb4-host-interface", \_SB.PCI0.TDM1 },
166 Package (2) { "usb4-port-number", 0 }
175 Method (_DSD, 0, NotSerialized)
179 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
182 Package (2) { "usb4-host-interface", \_SB.PCI0.TDM1 },
183 Package (2) { "usb4-port-number", 1 }