Debian Codegraph @

src/soc/intel/skylake/acpi/dptf/fan.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 Device (TFN1)
4 {
5 Name (_HID, "INT3404")
6 Name (_UID, 0)
7 Name (_STR, Unicode("Fan Control"))
8
9 /* _FIF: Fan Information */
10 Name (_FIF, Package ()
11 {
12 0, // Revision
13 1, // Fine Grained Control
14 2, // Step Size
15 0 // No Low Speed Notification
16 })
17
18 /* Return Fan Performance States defined by mainboard */
19 Method (_FPS)
20 {
21 Return (\_SB.DFPS)
22 }
23
24 Name (TFST, Package ()
25 {
26 0, // Revision
27 0x00, // Control
28 0x00 // Speed
29 })
30
31 /* _FST: Fan current Status */
32 Method (_FST, 0, Serialized,,PkgObj)
33 {
34 /* Fill in TFST with current control. */
35 TFST [1] = \_SB.PCI0.LPCB.EC0.FAND
36 Return (TFST)
37 }
38
39 /* _FSL: Fan Speed Level */
40 Method (_FSL, 1, Serialized)
41 {
42 \_SB.PCI0.LPCB.EC0.FAND = Arg0
43 }
44
45 Method (_STA)
46 {
47 If (\DPTE == 1)
48 {
49 Return (0xF)
50 } Else {
51 Return (0x0)
52 }
53 }
54 }