Debian Codegraph @

src/mainboard/novacustom/mtl-h/acpi/dgpu/nbci.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #define NBCI_FUNC_SUPPORT 0
4 #define NBCI_FUNC_GETOBJBYTYPE 16
5 #define NBCI_FUNC_GETCALLBACKS 19
6
7 #define GPS_FUNC_GETCALLBACKS 0x13
8
9 Method (NBCI, 2, Serialized)
10 {
11 Switch (ToInteger (Arg0))
12 {
13 Case (NBCI_FUNC_SUPPORT)
14 {
15 Return (ITOB(
16 (1 << NBCI_FUNC_SUPPORT) |
17 (1 << NBCI_FUNC_GETCALLBACKS)))
18 }
19 Case (NBCI_FUNC_GETCALLBACKS)
20 {
21 /* Re-use the GPS subfunction's GETCALLBACKS Method */
22 Return (GPS (GPS_FUNC_GETCALLBACKS, Arg1))
23 }
24 }
25
26 Return (NV_ERROR_UNSUPPORTED)
27 }