Angel Pons | 47f26db | 2020-04-05 13:22:34 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 2 | |
| 3 | Scope (\_SB.PCI0.XHCI.RHUB.PRT1) |
| 4 | { |
| 5 | // Left USB 2.0 |
| 6 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 7 | { |
| 8 | 0xFF, // Connectable |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 9 | 0, // USB Port |
| 10 | 0, // Reserved |
| 11 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 12 | }) |
| 13 | |
| 14 | // Visible |
| 15 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 16 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame] | 17 | Return (GPLD (1)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 18 | } |
| 19 | } |
| 20 | Scope (\_SB.PCI0.XHCI.RHUB.PRT2) |
| 21 | { |
| 22 | // USB HUB |
| 23 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 24 | { |
| 25 | 0xFF, // Connectable |
| 26 | 0xFF, // OEM Connector |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 27 | 0, // Reserved |
| 28 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 29 | }) |
| 30 | |
| 31 | // Not Visible |
| 32 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 33 | { |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 34 | Return (GPLD (0)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | Device (USB1) |
| 38 | { |
| 39 | Name (_ADR, 4) |
| 40 | |
| 41 | // Right USB 2.0 |
| 42 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 43 | { |
| 44 | 0xFF, // Connectable |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 45 | 0, // USB Port |
| 46 | 0, // Reserved |
| 47 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 48 | }) |
| 49 | |
| 50 | // Visible |
| 51 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 52 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame] | 53 | Return (GPLD (1)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 54 | } |
| 55 | } |
| 56 | |
| 57 | Device (USB3) |
| 58 | { |
| 59 | Name (_ADR, 5) |
| 60 | |
| 61 | // SIM Card Slot |
| 62 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 63 | { |
| 64 | 0xFF, // Connectable |
| 65 | 0xFF, // OEM Connector |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 66 | 0, // Reserved |
| 67 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 68 | }) |
| 69 | |
| 70 | // Not Visible |
| 71 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 72 | { |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 73 | Return (GPLD (0)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 74 | } |
| 75 | } |
| 76 | } |
| 77 | Scope (\_SB.PCI0.XHCI.RHUB.PRT3) |
| 78 | { |
| 79 | // Webcam |
| 80 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 81 | { |
| 82 | 0xFF, // Connectable |
| 83 | 0xFF, // OEM Connector |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 84 | 0, // Reserved |
| 85 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 86 | }) |
| 87 | |
| 88 | // Not Visible |
| 89 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 90 | { |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 91 | Return (GPLD (0)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 92 | } |
| 93 | } |
| 94 | Scope (\_SB.PCI0.XHCI.RHUB.PRT4) |
| 95 | { |
| 96 | // Bluetooth |
| 97 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 98 | { |
| 99 | 0xFF, // Connectable |
| 100 | 0xFF, // OEM Connector |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 101 | 0, // Reserved |
| 102 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 103 | }) |
| 104 | |
| 105 | // Not Visible |
| 106 | Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device |
| 107 | { |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 108 | Return (GPLD (0)) |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 109 | } |
| 110 | } |
| 111 | Scope (\_SB.PCI0.XHCI.RHUB.SSP1) |
| 112 | { |
| 113 | // Left USB 3.0 |
| 114 | Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities |
| 115 | { |
| 116 | 0xFF, // Connectable |
| 117 | 0x03, // USB 3.0 Port |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 118 | 0, // Reserved |
| 119 | 0 // Reserved |
Matt DeVillier | 74e1fb0 | 2017-04-17 18:49:50 -0500 | [diff] [blame] | 120 | }) |
| 121 | } |