Debian Codegraph @

src/mainboard/lenovo/t60/acpi/platform.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
5 */
6
7 Method(_PTS,1)
8 {
9 \_SB.PCI0.LPCB.EC.MUTE(1)
10 \_SB.PCI0.LPCB.EC.USBP(0)
11 \_SB.PCI0.LPCB.EC.RADI(0)
12 }
13
14 /* The _WAK method is called on system wakeup */
15
16 Method(_WAK,1)
17 {
18 /* Wake the HKEY to init BT/WWAN */
19 \_SB.PCI0.LPCB.EC.HKEY.WAKE (Arg0)
20
21 Return(Package(){0,0})
22 }
23
24 /* System Bus */
25
26 Scope(\_SB)
27 {
28 /* This method is placed on the top level, so we can make sure it's the
29 * first executed _INI method.
30 */
31 Method(_INI, 0)
32 {
33 \GOS()
34 }
35 }