Device (XHC2)
{
Name (_ADR, Zero) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
\RMDT.PUSH("_SB.PCI0.RP01.PXSX.DSB2.XHC2: Entering _DSM")
If (Arg2 == Zero) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"USBBusNumber", Zero,
"AAPL,xhci-clock-id", One,
"UsbCompanionControllerPresent", One,
"device-id", Buffer() { 0xb6, 0x15, 0x00, 0x00 },
})
}
Device (RHUB)
{
Name (_ADR, Zero) // _ADR: Address
Method (GPLD, 2, Serialized)
{
Name (PCKG, Package (0x01)
{
Buffer (0x10) {}
})
CreateField (DerefOf (PCKG [Zero]), Zero, 0x07, REV)
REV = One
CreateField (DerefOf (PCKG [Zero]), 0x40, One, VISI)
VISI = Arg0
CreateField (DerefOf (PCKG [Zero]), 0x57, 0x08, GPOS)
GPOS = Arg1
Return (PCKG)
}
Method (GUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0xFF,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG)
}
Method (TPLD, 2, Serialized)
{
Name (PCKG, Package (0x01)
{
Buffer (0x10) {}
})
CreateField (DerefOf (PCKG [Zero]), Zero, 0x07, REV)
REV = One
CreateField (DerefOf (PCKG [Zero]), 0x40, One, VISI)
VISI = Arg0
CreateField (DerefOf (PCKG [Zero]), 0x57, 0x08, GPOS)
GPOS = Arg1
CreateField (DerefOf (PCKG [Zero]), 0x4A, 0x04, SHAP)
SHAP = One
CreateField (DerefOf (PCKG [Zero]), 0x20, 0x10, WID)
WID = 0x08
CreateField (DerefOf (PCKG [Zero]), 0x30, 0x10, HGT)
HGT = 0x03
Return (PCKG)
}
Method (TUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
One,
Zero,
Zero,
Zero
})
PCKG [One] = Arg0
Return (PCKG)
}
Device (SSP1)
{
Name (_ADR, One) // _ADR: Address
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities
{
Return (TUPC (0x09))
}
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{
Return (TPLD (One, One))
}
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
\RMDT.PUSH("_SB.PCI0.RP01.PXSX.DSB2.XHC2.SSP1: Entering _DSM")
If (Arg2 == Zero) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"UsbCPortNumber", 0x02,
"UsbCompanionPortPresent", One
})
}
}
Device (SSP2)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities
{
Return (TUPC (0x09))
}
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{
Return (TPLD (One, One))
}
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
\RMDT.PUSH("_SB.PCI0.RP01.PXSX.DSB2.XHC2.SSP2: Entering _DSM")
If (Arg2 == Zero) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"UsbCPortNumber", One,
"UsbCompanionPortPresent", One
})
}
}
}
}