Done with sed and God Lines. Only done for C-like code for now. Change-Id: I0f41016ea678f63f386c1ae7006b7221a05f6fd9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40188 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
141 lines
2.4 KiB
Plaintext
141 lines
2.4 KiB
Plaintext
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
|
|
{
|
|
// Hub Port 1
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
0xFF, // OEM Connector
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Not Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (Zero))
|
|
}
|
|
|
|
Device (USB2)
|
|
{
|
|
Name (_ADR, 2)
|
|
|
|
// Left USB Port
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
Zero, // USB Port
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (One))
|
|
}
|
|
|
|
}
|
|
|
|
Device (USB3)
|
|
{
|
|
Name (_ADR, 3)
|
|
|
|
// Bottom Right USB Port
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
Zero, // USB Port
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (One))
|
|
}
|
|
}
|
|
|
|
Device (USB4)
|
|
{
|
|
Name (_ADR, 4)
|
|
|
|
// Top Right USB Port
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
Zero, // USB Port
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (One))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
Scope (_SB.PCI0.EHC2.HUB7.PRT1)
|
|
{
|
|
// Hub Port 2
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
0xFF, // OEM Connector
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Not Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (Zero))
|
|
}
|
|
|
|
Device (USB1)
|
|
{
|
|
Name (_ADR, 1)
|
|
|
|
// Bluetooth
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
0xFF, // OEM Connector
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Not Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (Zero))
|
|
}
|
|
}
|
|
|
|
Device (USB3)
|
|
{
|
|
Name (_ADR, 3)
|
|
|
|
// Webcam
|
|
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
|
|
{
|
|
0xFF, // Connectable
|
|
0xFF, // OEM Connector
|
|
Zero, // Reserved
|
|
Zero // Reserved
|
|
})
|
|
|
|
// Not Visible
|
|
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
|
|
{
|
|
Return (GPLD (Zero))
|
|
}
|
|
}
|
|
}
|