| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
Scope (_GPE) |
| 4 |
{ |
| 5 |
/* The event numbers correspond to the bit numbers in the |
| 6 |
* GPE0_EN register PMBASE + 0x2C. |
| 7 |
*/ |
| 8 |
|
| 9 |
// Hot Plug |
| 10 |
Method (_L01, 0) |
| 11 |
{ |
| 12 |
// TODO |
| 13 |
} |
| 14 |
|
| 15 |
// Software GPE |
| 16 |
Method (_L02, 0) |
| 17 |
{ |
| 18 |
GPEC = 0 |
| 19 |
} |
| 20 |
|
| 21 |
// USB1 |
| 22 |
Method (_L03, 0) |
| 23 |
{ |
| 24 |
Notify (\_SB.PCI0.USB1, 2) |
| 25 |
} |
| 26 |
|
| 27 |
// USB2 |
| 28 |
Method (_L04, 0) |
| 29 |
{ |
| 30 |
Notify (\_SB.PCI0.USB2, 2) |
| 31 |
} |
| 32 |
|
| 33 |
// AC97 |
| 34 |
Method (_L05, 0) |
| 35 |
{ |
| 36 |
Notify (\_SB.PCI0.MODM, 2) |
| 37 |
Notify (\_SB.PCI0.HDEF, 2) |
| 38 |
} |
| 39 |
|
| 40 |
// _L06 TCOSCI |
| 41 |
|
| 42 |
// SMBus (Reserved!) |
| 43 |
Method (_L07, 0) |
| 44 |
{ |
| 45 |
// \_SB.PCI0.SBUS.HSTS = 0x20 |
| 46 |
} |
| 47 |
|
| 48 |
// COM1/COM2 (RI) |
| 49 |
Method (_L08, 0) |
| 50 |
{ |
| 51 |
// Don't care |
| 52 |
} |
| 53 |
|
| 54 |
// PCIe |
| 55 |
Method (_L09, 0) |
| 56 |
{ |
| 57 |
// TODO |
| 58 |
} |
| 59 |
|
| 60 |
// _L0A BatLow / Quick Resume |
| 61 |
|
| 62 |
// PME |
| 63 |
Method (_L0B, 0) |
| 64 |
{ |
| 65 |
Notify (\_SB.PCI0.PCIB.LANR, 0x02) |
| 66 |
} |
| 67 |
|
| 68 |
// USB3 |
| 69 |
Method (_L0C, 0) |
| 70 |
{ |
| 71 |
Notify(\_SB.PCI0.USB3, 2) |
| 72 |
} |
| 73 |
|
| 74 |
// PME B0 |
| 75 |
Method (_L0D, 0) |
| 76 |
{ |
| 77 |
Notify(\_SB.PCI0.EHC1, 2) |
| 78 |
} |
| 79 |
|
| 80 |
// USB4 |
| 81 |
Method (_L0E, 0) |
| 82 |
{ |
| 83 |
Notify(\_SB.PCI0.USB4, 2) |
| 84 |
} |
| 85 |
} |