Debian Codegraph @

src/soc/amd/common/acpi/platform.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* Callback methods to be implemented by mainboard */
4 External(\_SB.MPTS, MethodObj)
5 External(\_SB.MWAK, MethodObj)
6 External(\_SB.MINI, MethodObj)
7
8 Scope (\_SB){
9 /* Platform initialization methods */
10 Method (_INI, 0, NotSerialized)
11 {
12 If (CondRefOf (\_SB.MINI)) {
13 \_SB.MINI()
14 }
15 }
16 }
17
18 /* Platform-wide wake methods */
19 Method (\_WAK, 1, NotSerialized)
20 {
21 PNOT ()
22
23 If (CondRefOf (\_SB.MWAK)) {
24 \_SB.MWAK()
25 }
26 Return (Package (){ 0, 0 })
27 }
28
29 /* Platform-wide Put To Sleep (suspend) methods */
30 Method (\_PTS, 1, NotSerialized)
31 {
32 If (CondRefOf (\_SB.MPTS)) {
33 \_SB.MPTS()
34 }
35 }